Class AvailabilitySetUpdate
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.UpdateResource
-
- com.azure.resourcemanager.compute.models.AvailabilitySetUpdate
-
public final class AvailabilitySetUpdate extends UpdateResource
Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated.
-
-
Constructor Summary
Constructors Constructor Description AvailabilitySetUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerplatformFaultDomainCount()Get the platformFaultDomainCount property: Fault Domain count.IntegerplatformUpdateDomainCount()Get the platformUpdateDomainCount property: Update Domain count.com.azure.core.management.SubResourceproximityPlacementGroup()Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.Skusku()Get the sku property: Sku of the availability set.List<InstanceViewStatus>statuses()Get the statuses property: The resource status information.voidvalidate()Validates the instance.List<com.azure.core.management.SubResource>virtualMachines()Get the virtualMachines property: A list of references to all virtual machines in the availability set.AvailabilitySetUpdatewithPlatformFaultDomainCount(Integer platformFaultDomainCount)Set the platformFaultDomainCount property: Fault Domain count.AvailabilitySetUpdatewithPlatformUpdateDomainCount(Integer platformUpdateDomainCount)Set the platformUpdateDomainCount property: Update Domain count.AvailabilitySetUpdatewithProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup)Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.AvailabilitySetUpdatewithSku(Sku sku)Set the sku property: Sku of the availability set.AvailabilitySetUpdatewithTags(Map<String,String> tags)Set the tags property: Resource tags.AvailabilitySetUpdatewithVirtualMachines(List<com.azure.core.management.SubResource> virtualMachines)Set the virtualMachines property: A list of references to all virtual machines in the availability set.-
Methods inherited from class com.azure.resourcemanager.compute.models.UpdateResource
tags
-
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: Sku of the availability set.- Returns:
- the sku value.
-
withSku
public AvailabilitySetUpdate withSku(Sku sku)
Set the sku property: Sku of the availability set.- Parameters:
sku- the sku value to set.- Returns:
- the AvailabilitySetUpdate object itself.
-
withTags
public AvailabilitySetUpdate withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
platformUpdateDomainCount
public Integer platformUpdateDomainCount()
Get the platformUpdateDomainCount property: Update Domain count.- Returns:
- the platformUpdateDomainCount value.
-
withPlatformUpdateDomainCount
public AvailabilitySetUpdate withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)
Set the platformUpdateDomainCount property: Update Domain count.- Parameters:
platformUpdateDomainCount- the platformUpdateDomainCount value to set.- Returns:
- the AvailabilitySetUpdate object itself.
-
platformFaultDomainCount
public Integer platformFaultDomainCount()
Get the platformFaultDomainCount property: Fault Domain count.- Returns:
- the platformFaultDomainCount value.
-
withPlatformFaultDomainCount
public AvailabilitySetUpdate withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platformFaultDomainCount property: Fault Domain count.- Parameters:
platformFaultDomainCount- the platformFaultDomainCount value to set.- Returns:
- the AvailabilitySetUpdate object itself.
-
virtualMachines
public List<com.azure.core.management.SubResource> virtualMachines()
Get the virtualMachines property: A list of references to all virtual machines in the availability set.- Returns:
- the virtualMachines value.
-
withVirtualMachines
public AvailabilitySetUpdate withVirtualMachines(List<com.azure.core.management.SubResource> virtualMachines)
Set the virtualMachines property: A list of references to all virtual machines in the availability set.- Parameters:
virtualMachines- the virtualMachines value to set.- Returns:
- the AvailabilitySetUpdate object itself.
-
proximityPlacementGroup
public com.azure.core.management.SubResource proximityPlacementGroup()
Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01.- Returns:
- the proximityPlacementGroup value.
-
withProximityPlacementGroup
public AvailabilitySetUpdate withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup)
Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01.- Parameters:
proximityPlacementGroup- the proximityPlacementGroup value to set.- Returns:
- the AvailabilitySetUpdate object itself.
-
statuses
public List<InstanceViewStatus> statuses()
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-