VirtualMachineInstanceProperties Class

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

Implements

public final class VirtualMachineInstanceProperties
implements JsonSerializable<VirtualMachineInstanceProperties>

Describes the properties of a Virtual Machine Instance.

Constructor Summary

Constructor Description
VirtualMachineInstanceProperties()

Creates an instance of VirtualMachineInstanceProperties class.

Method Summary

Modifier and Type Method and Description
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.

PlacementProfile placementProfile()

Get the placementProfile property: Placement properties.

String powerState()

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

ProvisioningState provisioningState()

Get the provisioningState property: Gets the provisioning state.

String resourceUid()

Get the resourceUid property: Gets or sets a unique identifier for the vm resource.

SecurityProfile securityProfile()

Get the securityProfile property: Gets the security profile.

List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

StorageProfile storageProfile()

Get the storageProfile property: Storage properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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 withPlacementProfile(PlacementProfile placementProfile)

Set the placementProfile property: Placement properties.

VirtualMachineInstanceProperties withSecurityProfile(SecurityProfile securityProfile)

Set the securityProfile property: Gets the security profile.

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

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.

placementProfile

public PlacementProfile placementProfile()

Get the placementProfile property: Placement properties.

Returns:

the placementProfile 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: Gets the provisioning state.

Returns:

the provisioningState value.

resourceUid

public String resourceUid()

Get the resourceUid property: Gets or sets a unique identifier for the vm resource.

Returns:

the resourceUid value.

securityProfile

public SecurityProfile securityProfile()

Get the securityProfile property: Gets the security profile.

Returns:

the securityProfile value.

statuses

public List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

Returns:

the statuses 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.

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.

withPlacementProfile

public VirtualMachineInstanceProperties withPlacementProfile(PlacementProfile placementProfile)

Set the placementProfile property: Placement properties.

Parameters:

placementProfile - the placementProfile value to set.

Returns:

the VirtualMachineInstanceProperties object itself.

withSecurityProfile

public VirtualMachineInstanceProperties withSecurityProfile(SecurityProfile securityProfile)

Set the securityProfile property: Gets the security profile.

Parameters:

securityProfile - the securityProfile 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