Class VirtualMachineInventoryItem
- java.lang.Object
-
- com.azure.resourcemanager.scvmm.fluent.models.InventoryItemProperties
-
- com.azure.resourcemanager.scvmm.models.VirtualMachineInventoryItem
-
public final class VirtualMachineInventoryItem extends InventoryItemProperties
The Virtual machine inventory item.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineInventoryItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InventoryItemDetails
cloud()
Get the cloud property: Cloud inventory resource details where the VM is present.List<String>
ipAddresses()
Get the ipAddresses property: Gets or sets the nic ip addresses.String
osName()
Get the osName property: Gets or sets os name.OsType
osType()
Get the osType property: Gets or sets the type of the os.String
powerState()
Get the powerState property: Gets the power state of the virtual machine.void
validate()
Validates the instance.VirtualMachineInventoryItem
withCloud(InventoryItemDetails cloud)
Set the cloud property: Cloud inventory resource details where the VM is present.VirtualMachineInventoryItem
withIpAddresses(List<String> ipAddresses)
Set the ipAddresses property: Gets or sets the nic ip addresses.-
Methods inherited from class com.azure.resourcemanager.scvmm.fluent.models.InventoryItemProperties
inventoryItemName, managedResourceId, provisioningState, uuid
-
-
-
-
Method Detail
-
osType
public OsType osType()
Get the osType property: Gets or sets the type of the os.- Returns:
- the osType value.
-
osName
public String osName()
Get the osName property: Gets or sets os name.- Returns:
- the osName value.
-
powerState
public String powerState()
Get the powerState property: Gets the power state of the virtual machine.- Returns:
- the powerState value.
-
ipAddresses
public List<String> ipAddresses()
Get the ipAddresses property: Gets or sets the nic ip addresses.- Returns:
- the ipAddresses value.
-
withIpAddresses
public VirtualMachineInventoryItem withIpAddresses(List<String> ipAddresses)
Set the ipAddresses property: Gets or sets the nic ip addresses.- Parameters:
ipAddresses
- the ipAddresses value to set.- Returns:
- the VirtualMachineInventoryItem object itself.
-
cloud
public InventoryItemDetails cloud()
Get the cloud property: Cloud inventory resource details where the VM is present.- Returns:
- the cloud value.
-
withCloud
public VirtualMachineInventoryItem withCloud(InventoryItemDetails cloud)
Set the cloud property: Cloud inventory resource details where the VM is present.- Parameters:
cloud
- the cloud value to set.- Returns:
- the VirtualMachineInventoryItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classInventoryItemProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-