InventoryItemInner Class

public final class InventoryItemInner
extends ProxyResource

Defines the inventory item.

Constructor Summary

Constructor Description
InventoryItemInner()

Creates an instance of InventoryItemInner class.

Method Summary

Modifier and Type Method and Description
static InventoryItemInner fromJson(JsonReader jsonReader)

Reads an instance of InventoryItemInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

String name()

Get the name property: The name of the resource.

InventoryItemProperties properties()

Get the properties property: The resource-specific properties for this resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

InventoryItemInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

InventoryItemInner withProperties(InventoryItemProperties properties)

Set the properties property: The resource-specific properties for this resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

InventoryItemInner

public InventoryItemInner()

Creates an instance of InventoryItemInner class.

Method Details

fromJson

public static InventoryItemInner fromJson(JsonReader jsonReader)

Reads an instance of InventoryItemInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InventoryItemInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

InventoryItemInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InventoryItemInner.name()

Returns:

the name value.

properties

public InventoryItemProperties properties()

Get the properties property: The resource-specific properties for this resource.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

InventoryItemInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InventoryItemInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withKind

public InventoryItemInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Parameters:

kind - the kind value to set.

Returns:

the InventoryItemInner object itself.

withProperties

public InventoryItemInner withProperties(InventoryItemProperties properties)

Set the properties property: The resource-specific properties for this resource.

Parameters:

properties - the properties value to set.

Returns:

the InventoryItemInner object itself.

Applies to