VirtualMachineInstanceUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.fluent.models.VirtualMachineInstanceUpdateProperties

Implements

public final class VirtualMachineInstanceUpdateProperties
implements JsonSerializable<VirtualMachineInstanceUpdateProperties>

Describes the properties of a Virtual Machine.

Constructor Summary

Constructor Description
VirtualMachineInstanceUpdateProperties()

Creates an instance of VirtualMachineInstanceUpdateProperties class.

Method Summary

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

Reads an instance of VirtualMachineInstanceUpdateProperties 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.

VirtualMachineInstanceUpdateProperties withHardwareProfile(HardwareProfile hardwareProfile)

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

VirtualMachineInstanceUpdateProperties withNetworkProfile(NetworkProfileUpdate networkProfile)

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

VirtualMachineInstanceUpdateProperties withStorageProfile(StorageProfileUpdate storageProfile)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceUpdateProperties

public VirtualMachineInstanceUpdateProperties()

Creates an instance of VirtualMachineInstanceUpdateProperties class.

Method Details

fromJson

public static VirtualMachineInstanceUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 VirtualMachineInstanceUpdateProperties withHardwareProfile(HardwareProfile hardwareProfile)

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

Parameters:

hardwareProfile - the hardwareProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withNetworkProfile

public VirtualMachineInstanceUpdateProperties withNetworkProfile(NetworkProfileUpdate networkProfile)

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

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withStorageProfile

public VirtualMachineInstanceUpdateProperties 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 VirtualMachineInstanceUpdateProperties object itself.

Applies to