VirtualMachineInstanceUpdateProperties Class

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

Implements

public final class VirtualMachineInstanceUpdateProperties
implements JsonSerializable<VirtualMachineInstanceUpdateProperties>

Virtual Machine Instance Properties Update model.

Constructor Summary

Constructor Description
VirtualMachineInstanceUpdateProperties()

Creates an instance of VirtualMachineInstanceUpdateProperties class.

Method Summary

Modifier and Type Method and Description
List<AvailabilitySetListItem> availabilitySets()

Get the availabilitySets property: Availability Sets in vm.

static VirtualMachineInstanceUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceUpdateProperties from the JsonReader.

HardwareProfileUpdate hardwareProfile()

Get the hardwareProfile property: Hardware properties.

InfrastructureProfileUpdate infrastructureProfile()

Get the infrastructureProfile property: Gets the infrastructure profile.

NetworkProfileUpdate networkProfile()

Get the networkProfile property: Network properties.

StorageProfileUpdate storageProfile()

Get the storageProfile property: Storage properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineInstanceUpdateProperties withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)

Set the availabilitySets property: Availability Sets in vm.

VirtualMachineInstanceUpdateProperties withHardwareProfile(HardwareProfileUpdate hardwareProfile)

Set the hardwareProfile property: Hardware properties.

VirtualMachineInstanceUpdateProperties withInfrastructureProfile(InfrastructureProfileUpdate infrastructureProfile)

Set the infrastructureProfile property: Gets the infrastructure profile.

VirtualMachineInstanceUpdateProperties withNetworkProfile(NetworkProfileUpdate networkProfile)

Set the networkProfile property: Network properties.

VirtualMachineInstanceUpdateProperties withStorageProfile(StorageProfileUpdate storageProfile)

Set the storageProfile property: Storage properties.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceUpdateProperties

public VirtualMachineInstanceUpdateProperties()

Creates an instance of VirtualMachineInstanceUpdateProperties class.

Method Details

availabilitySets

public List<AvailabilitySetListItem> availabilitySets()

Get the availabilitySets property: Availability Sets in vm.

Returns:

the availabilitySets value.

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 HardwareProfileUpdate hardwareProfile()

Get the hardwareProfile property: Hardware properties.

Returns:

the hardwareProfile value.

infrastructureProfile

public InfrastructureProfileUpdate infrastructureProfile()

Get the infrastructureProfile property: Gets the infrastructure profile.

Returns:

the infrastructureProfile value.

networkProfile

public NetworkProfileUpdate networkProfile()

Get the networkProfile property: Network properties.

Returns:

the networkProfile value.

storageProfile

public StorageProfileUpdate storageProfile()

Get the storageProfile property: Storage properties.

Returns:

the storageProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailabilitySets

public VirtualMachineInstanceUpdateProperties withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)

Set the availabilitySets property: Availability Sets in vm.

Parameters:

availabilitySets - the availabilitySets value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withHardwareProfile

public VirtualMachineInstanceUpdateProperties withHardwareProfile(HardwareProfileUpdate hardwareProfile)

Set the hardwareProfile property: Hardware properties.

Parameters:

hardwareProfile - the hardwareProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withInfrastructureProfile

public VirtualMachineInstanceUpdateProperties withInfrastructureProfile(InfrastructureProfileUpdate infrastructureProfile)

Set the infrastructureProfile property: Gets the infrastructure profile.

Parameters:

infrastructureProfile - the infrastructureProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withNetworkProfile

public VirtualMachineInstanceUpdateProperties withNetworkProfile(NetworkProfileUpdate networkProfile)

Set the networkProfile property: Network properties.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

withStorageProfile

public VirtualMachineInstanceUpdateProperties withStorageProfile(StorageProfileUpdate storageProfile)

Set the storageProfile property: Storage properties.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the VirtualMachineInstanceUpdateProperties object itself.

Applies to