VirtualMachineInstanceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. scvmm. models. VirtualMachineInstanceProperties
- com.
Implements
public final class VirtualMachineInstanceProperties
implements JsonSerializable<VirtualMachineInstanceProperties>
Defines the resource properties.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineInstanceProperties() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Availability |
availabilitySets()
Get the availability |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Hardware |
hardwareProfile()
Get the hardware |
|
Infrastructure |
infrastructureProfile()
Get the infrastructure |
|
Network |
networkProfile()
Get the network |
|
Os |
osProfile()
Get the os |
| String |
powerState()
Get the power |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Storage |
storageProfile()
Get the storage |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)
Set the availability |
|
Virtual |
withHardwareProfile(HardwareProfile hardwareProfile)
Set the hardware |
|
Virtual |
withInfrastructureProfile(InfrastructureProfile infrastructureProfile)
Set the infrastructure |
|
Virtual |
withNetworkProfile(NetworkProfile networkProfile)
Set the network |
|
Virtual |
withOsProfile(OsProfileForVmInstance osProfile)
Set the os |
|
Virtual |
withStorageProfile(StorageProfile storageProfile)
Set the storage |
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:
fromJson
public static VirtualMachineInstanceProperties fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineInstanceProperties from the JsonReader.
Parameters:
Returns:
Throws:
hardwareProfile
public HardwareProfile hardwareProfile()
Get the hardwareProfile property: Hardware properties.
Returns:
infrastructureProfile
public InfrastructureProfile infrastructureProfile()
Get the infrastructureProfile property: Gets the infrastructure profile.
Returns:
networkProfile
public NetworkProfile networkProfile()
Get the networkProfile property: Network properties.
Returns:
osProfile
public OsProfileForVmInstance osProfile()
Get the osProfile property: OS properties.
Returns:
powerState
public String powerState()
Get the powerState property: Gets the power state of the virtual machine.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the resource.
Returns:
storageProfile
public StorageProfile storageProfile()
Get the storageProfile property: Storage properties.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAvailabilitySets
public VirtualMachineInstanceProperties withAvailabilitySets(List<AvailabilitySetListItem> availabilitySets)
Set the availabilitySets property: Availability Sets in vm.
Parameters:
Returns:
withHardwareProfile
public VirtualMachineInstanceProperties withHardwareProfile(HardwareProfile hardwareProfile)
Set the hardwareProfile property: Hardware properties.
Parameters:
Returns:
withInfrastructureProfile
public VirtualMachineInstanceProperties withInfrastructureProfile(InfrastructureProfile infrastructureProfile)
Set the infrastructureProfile property: Gets the infrastructure profile.
Parameters:
Returns:
withNetworkProfile
public VirtualMachineInstanceProperties withNetworkProfile(NetworkProfile networkProfile)
Set the networkProfile property: Network properties.
Parameters:
Returns:
withOsProfile
public VirtualMachineInstanceProperties withOsProfile(OsProfileForVmInstance osProfile)
Set the osProfile property: OS properties.
Parameters:
Returns:
withStorageProfile
public VirtualMachineInstanceProperties withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Storage properties.
Parameters:
Returns: