AvailabilitySetInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. AvailabilitySetInner
- com.
- com.
- com.
public final class AvailabilitySetInner
extends Resource
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.
Constructor Summary
Constructor | Description |
---|---|
AvailabilitySetInner() |
Creates an instance of Availability |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Availability |
fromJson(JsonReader jsonReader)
Reads an instance of Availability |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Integer |
platformFaultDomainCount()
Get the platform |
Integer |
platformUpdateDomainCount()
Get the platform |
Sub |
proximityPlacementGroup()
Get the proximity |
Scheduled |
scheduledEventsPolicy()
Get the scheduled |
Sku |
sku()
Get the sku property: Sku of the availability set, only name is required to be set. |
List<Instance |
statuses()
Get the statuses property: The resource status information. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
List<Sub |
virtualMachines()
Get the virtual |
Availability |
withLocation(String location) |
Availability |
withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platform |
Availability |
withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)
Set the platform |
Availability |
withProximityPlacementGroup(SubResource proximityPlacementGroup)
Set the proximity |
Availability |
withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)
Set the scheduled |
Availability |
withSku(Sku sku)
Set the sku property: Sku of the availability set, only name is required to be set. |
Availability |
withTags(Map<String,String> tags) |
Availability |
withVirtualMachines(List<SubResource> virtualMachines)
Set the virtual |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
AvailabilitySetInner
public AvailabilitySetInner()
Creates an instance of AvailabilitySetInner class.
Method Details
fromJson
public static AvailabilitySetInner fromJson(JsonReader jsonReader)
Reads an instance of AvailabilitySetInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AvailabilitySetInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AvailabilitySetInner.name()Returns:
platformFaultDomainCount
public Integer platformFaultDomainCount()
Get the platformFaultDomainCount property: Fault Domain count.
Returns:
platformUpdateDomainCount
public Integer platformUpdateDomainCount()
Get the platformUpdateDomainCount property: Update Domain count.
Returns:
proximityPlacementGroup
public SubResource proximityPlacementGroup()
Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
Returns:
scheduledEventsPolicy
public ScheduledEventsPolicy scheduledEventsPolicy()
Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
Returns:
sku
public Sku sku()
Get the sku property: Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
Returns:
statuses
public List
Get the statuses property: The resource status information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AvailabilitySetInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AvailabilitySetInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualMachines
public List
Get the virtualMachines property: A list of references to all virtual machines in the availability set.
Returns:
withLocation
public AvailabilitySetInner withLocation(String location)
Overrides:
AvailabilitySetInner.withLocation(String location)Parameters:
withPlatformFaultDomainCount
public AvailabilitySetInner withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platformFaultDomainCount property: Fault Domain count.
Parameters:
Returns:
withPlatformUpdateDomainCount
public AvailabilitySetInner withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)
Set the platformUpdateDomainCount property: Update Domain count.
Parameters:
Returns:
withProximityPlacementGroup
public AvailabilitySetInner withProximityPlacementGroup(SubResource proximityPlacementGroup)
Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
Parameters:
Returns:
withScheduledEventsPolicy
public AvailabilitySetInner withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)
Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
Parameters:
Returns:
withSku
public AvailabilitySetInner withSku(Sku sku)
Set the sku property: Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
Parameters:
Returns:
withTags
public AvailabilitySetInner withTags(Map
Overrides:
AvailabilitySetInner.withTags(Map<String,String> tags)Parameters:
withVirtualMachines
public AvailabilitySetInner withVirtualMachines(List
Set the virtualMachines property: A list of references to all virtual machines in the availability set.
Parameters:
Returns: