InventoryItemDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.InventoryItemDetails

Implements

public final class InventoryItemDetails
implements JsonSerializable<InventoryItemDetails>

Defines the resource properties.

Constructor Summary

Constructor Description
InventoryItemDetails()

Creates an instance of InventoryItemDetails class.

Method Summary

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

Reads an instance of InventoryItemDetails from the JsonReader.

String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

String inventoryItemName()

Get the inventoryItemName property: Gets or sets the Managed Object name in Vmm for the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InventoryItemDetails withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

InventoryItemDetails withInventoryItemName(String inventoryItemName)

Set the inventoryItemName property: Gets or sets the Managed Object name in Vmm for the resource.

Methods inherited from java.lang.Object

Constructor Details

InventoryItemDetails

public InventoryItemDetails()

Creates an instance of InventoryItemDetails class.

Method Details

fromJson

public static InventoryItemDetails fromJson(JsonReader jsonReader)

Reads an instance of InventoryItemDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the InventoryItemDetails.

inventoryItemId

public String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

Returns:

the inventoryItemId value.

inventoryItemName

public String inventoryItemName()

Get the inventoryItemName property: Gets or sets the Managed Object name in Vmm for the resource.

Returns:

the inventoryItemName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInventoryItemId

public InventoryItemDetails withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

Parameters:

inventoryItemId - the inventoryItemId value to set.

Returns:

the InventoryItemDetails object itself.

withInventoryItemName

public InventoryItemDetails withInventoryItemName(String inventoryItemName)

Set the inventoryItemName property: Gets or sets the Managed Object name in Vmm for the resource.

Parameters:

inventoryItemName - the inventoryItemName value to set.

Returns:

the InventoryItemDetails object itself.

Applies to