Share via


VirtualMachineResourceSettings Class

public class VirtualMachineResourceSettings
extends ResourceSettings

Gets or sets the virtual machine resource settings.

Constructor Summary

Constructor Description
VirtualMachineResourceSettings()

Method Summary

Modifier and Type Method and Description
java.lang.String targetAvailabilitySetId()

Get gets or sets the target availability set id for virtual machines not in an availability set at source.

TargetAvailabilityZone targetAvailabilityZone()

Get gets or sets the target availability zone.

java.lang.String targetVmSize()

Get gets or sets the target virtual machine size.

VirtualMachineResourceSettings withTargetAvailabilitySetId(String targetAvailabilitySetId)

Set gets or sets the target availability set id for virtual machines not in an availability set at source.

VirtualMachineResourceSettings withTargetAvailabilityZone(TargetAvailabilityZone targetAvailabilityZone)

Set gets or sets the target availability zone.

VirtualMachineResourceSettings withTargetVmSize(String targetVmSize)

Set gets or sets the target virtual machine size.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

VirtualMachineResourceSettings

public VirtualMachineResourceSettings()

Method Details

targetAvailabilitySetId

public String targetAvailabilitySetId()

Get gets or sets the target availability set id for virtual machines not in an availability set at source.

Returns:

the targetAvailabilitySetId value

targetAvailabilityZone

public TargetAvailabilityZone targetAvailabilityZone()

Get gets or sets the target availability zone. Possible values include: '1', '2', '3', 'NA'.

Returns:

the targetAvailabilityZone value

targetVmSize

public String targetVmSize()

Get gets or sets the target virtual machine size.

Returns:

the targetVmSize value

withTargetAvailabilitySetId

public VirtualMachineResourceSettings withTargetAvailabilitySetId(String targetAvailabilitySetId)

Set gets or sets the target availability set id for virtual machines not in an availability set at source.

Parameters:

targetAvailabilitySetId - the targetAvailabilitySetId value to set

Returns:

the VirtualMachineResourceSettings object itself.

withTargetAvailabilityZone

public VirtualMachineResourceSettings withTargetAvailabilityZone(TargetAvailabilityZone targetAvailabilityZone)

Set gets or sets the target availability zone. Possible values include: '1', '2', '3', 'NA'.

Parameters:

targetAvailabilityZone - the targetAvailabilityZone value to set

Returns:

the VirtualMachineResourceSettings object itself.

withTargetVmSize

public VirtualMachineResourceSettings withTargetVmSize(String targetVmSize)

Set gets or sets the target virtual machine size.

Parameters:

targetVmSize - the targetVmSize value to set

Returns:

the VirtualMachineResourceSettings object itself.

Applies to