VirtualMachineInstanceProperties Class

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

Implements

public final class VirtualMachineInstanceProperties
implements JsonSerializable<VirtualMachineInstanceProperties>

Defines the resource properties.

Constructor Summary

Constructor Description
VirtualMachineInstanceProperties()

Creates an instance of VirtualMachineInstanceProperties class.

Method Summary

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

Get the availabilitySets property: Availability Sets in vm.

static VirtualMachineInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceProperties from the JsonReader.

HardwareProfile hardwareProfile()

Get the hardwareProfile property: Hardware properties.

InfrastructureProfile infrastructureProfile()

Get the infrastructureProfile property: Gets the infrastructure profile.

NetworkProfile networkProfile()

Get the networkProfile property: Network properties.

OsProfileForVmInstance osProfile()

Get the osProfile property: OS properties.

String powerState()

Get the powerState property: Gets the power state of the virtual machine.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

StorageProfile storageProfile()

Get the storageProfile property: Storage properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineInstanceProperties withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)

Set the availabilitySets property: Availability Sets in vm.

VirtualMachineInstanceProperties withHardwareProfile(HardwareProfile hardwareProfile)

Set the hardwareProfile property: Hardware properties.

VirtualMachineInstanceProperties withInfrastructureProfile(InfrastructureProfile infrastructureProfile)

Set the infrastructureProfile property: Gets the infrastructure profile.

VirtualMachineInstanceProperties withNetworkProfile(NetworkProfile networkProfile)

Set the networkProfile property: Network properties.

VirtualMachineInstanceProperties withOsProfile(OsProfileForVmInstance osProfile)

Set the osProfile property: OS properties.

VirtualMachineInstanceProperties withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage properties.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceProperties

public VirtualMachineInstanceProperties()

Creates an instance of VirtualMachineInstanceProperties class.

Method Details

availabilitySets

public List<AvailabilitySetListItem> availabilitySets()

Get the availabilitySets property: Availability Sets in vm.

Returns:

the availabilitySets value.

fromJson

public static VirtualMachineInstanceProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hardwareProfile

public HardwareProfile hardwareProfile()

Get the hardwareProfile property: Hardware properties.

Returns:

the hardwareProfile value.

infrastructureProfile

public InfrastructureProfile infrastructureProfile()

Get the infrastructureProfile property: Gets the infrastructure profile.

Returns:

the infrastructureProfile value.

networkProfile

public NetworkProfile networkProfile()

Get the networkProfile property: Network properties.

Returns:

the networkProfile value.

osProfile

public OsProfileForVmInstance osProfile()

Get the osProfile property: OS properties.

Returns:

the osProfile value.

powerState

public String powerState()

Get the powerState property: Gets the power state of the virtual machine.

Returns:

the powerState value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

storageProfile

public StorageProfile 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 VirtualMachineInstanceProperties withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)

Set the availabilitySets property: Availability Sets in vm.

Parameters:

availabilitySets - the availabilitySets value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withHardwareProfile

public VirtualMachineInstanceProperties withHardwareProfile(HardwareProfile hardwareProfile)

Set the hardwareProfile property: Hardware properties.

Parameters:

hardwareProfile - the hardwareProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withInfrastructureProfile

public VirtualMachineInstanceProperties withInfrastructureProfile(InfrastructureProfile infrastructureProfile)

Set the infrastructureProfile property: Gets the infrastructure profile.

Parameters:

infrastructureProfile - the infrastructureProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withNetworkProfile

public VirtualMachineInstanceProperties withNetworkProfile(NetworkProfile networkProfile)

Set the networkProfile property: Network properties.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withOsProfile

public VirtualMachineInstanceProperties withOsProfile(OsProfileForVmInstance osProfile)

Set the osProfile property: OS properties.

Parameters:

osProfile - the osProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withStorageProfile

public VirtualMachineInstanceProperties withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage properties.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

Applies to