VirtualMachineInstanceUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.VirtualMachineInstanceUpdate

Implements

public final class VirtualMachineInstanceUpdate
implements JsonSerializable<VirtualMachineInstanceUpdate>

Defines the virtualMachineInstanceUpdate.

Constructor Summary

Constructor Description
VirtualMachineInstanceUpdate()

Creates an instance of VirtualMachineInstanceUpdate class.

Method Summary

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

Reads an instance of VirtualMachineInstanceUpdate from the JsonReader.

HardwareProfile hardwareProfile()

Get the hardwareProfile property: Specifies the hardware settings for the virtual machine.

NetworkProfileUpdate networkProfile()

Get the networkProfile property: Specifies the network interfaces of the virtual machine.

StorageProfileUpdate storageProfile()

Get the storageProfile property: Specifies the storage settings for the virtual machine disks.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineInstanceUpdate withHardwareProfile(HardwareProfile hardwareProfile)

Set the hardwareProfile property: Specifies the hardware settings for the virtual machine.

VirtualMachineInstanceUpdate withNetworkProfile(NetworkProfileUpdate networkProfile)

Set the networkProfile property: Specifies the network interfaces of the virtual machine.

VirtualMachineInstanceUpdate withStorageProfile(StorageProfileUpdate storageProfile)

Set the storageProfile property: Specifies the storage settings for the virtual machine disks.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceUpdate

public VirtualMachineInstanceUpdate()

Creates an instance of VirtualMachineInstanceUpdate class.

Method Details

fromJson

public static VirtualMachineInstanceUpdate fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineInstanceUpdate 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 VirtualMachineInstanceUpdate.

hardwareProfile

public HardwareProfile hardwareProfile()

Get the hardwareProfile property: Specifies the hardware settings for the virtual machine.

Returns:

the hardwareProfile value.

networkProfile

public NetworkProfileUpdate networkProfile()

Get the networkProfile property: Specifies the network interfaces of the virtual machine.

Returns:

the networkProfile value.

storageProfile

public StorageProfileUpdate storageProfile()

Get the storageProfile property: Specifies the storage settings for the virtual machine disks.

Returns:

the storageProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHardwareProfile

public VirtualMachineInstanceUpdate withHardwareProfile(HardwareProfile hardwareProfile)

Set the hardwareProfile property: Specifies the hardware settings for the virtual machine.

Parameters:

hardwareProfile - the hardwareProfile value to set.

Returns:

the VirtualMachineInstanceUpdate object itself.

withNetworkProfile

public VirtualMachineInstanceUpdate withNetworkProfile(NetworkProfileUpdate networkProfile)

Set the networkProfile property: Specifies the network interfaces of the virtual machine.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the VirtualMachineInstanceUpdate object itself.

withStorageProfile

public VirtualMachineInstanceUpdate withStorageProfile(StorageProfileUpdate storageProfile)

Set the storageProfile property: Specifies the storage settings for the virtual machine disks.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the VirtualMachineInstanceUpdate object itself.

Applies to