Class AvailabilitySetInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.AvailabilitySetInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class AvailabilitySetInner
extends com.azure.core.management.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AvailabilitySetInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailabilitySetInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the platformFaultDomainCount property: Fault Domain count.Get the platformUpdateDomainCount property: Update Domain count.com.azure.core.management.SubResourceGet the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.sku()Get the sku property: Sku of the availability set, only name is required to be set.statuses()Get the statuses property: The resource status information.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.List<com.azure.core.management.SubResource> Get the virtualMachines property: A list of references to all virtual machines in the availability set.Get the virtualMachineScaleSetMigrationInfo property: Describes the migration properties on the Availability Set.withLocation(String location) withPlatformFaultDomainCount(Integer platformFaultDomainCount) Set the platformFaultDomainCount property: Fault Domain count.withPlatformUpdateDomainCount(Integer platformUpdateDomainCount) Set the platformUpdateDomainCount property: Update Domain count.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.withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy) Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.Set the sku property: Sku of the availability set, only name is required to be set.withVirtualMachines(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.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AvailabilitySetInner
public AvailabilitySetInner()Creates an instance of AvailabilitySetInner class.
-
-
Method Details
-
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:
- the sku value.
-
withSku
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:
sku- the sku value to set.- Returns:
- the AvailabilitySetInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
platformUpdateDomainCount
Get the platformUpdateDomainCount property: Update Domain count.- Returns:
- the platformUpdateDomainCount value.
-
withPlatformUpdateDomainCount
Set the platformUpdateDomainCount property: Update Domain count.- Parameters:
platformUpdateDomainCount- the platformUpdateDomainCount value to set.- Returns:
- the AvailabilitySetInner object itself.
-
platformFaultDomainCount
Get the platformFaultDomainCount property: Fault Domain count.- Returns:
- the platformFaultDomainCount value.
-
withPlatformFaultDomainCount
Set the platformFaultDomainCount property: Fault Domain count.- Parameters:
platformFaultDomainCount- the platformFaultDomainCount value to set.- Returns:
- the AvailabilitySetInner object itself.
-
virtualMachines
Get the virtualMachines property: A list of references to all virtual machines in the availability set.- Returns:
- the virtualMachines value.
-
withVirtualMachines
public AvailabilitySetInner 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 AvailabilitySetInner 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. Minimum api-version: 2018-04-01.- Returns:
- the proximityPlacementGroup value.
-
withProximityPlacementGroup
public AvailabilitySetInner 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. Minimum api-version: 2018-04-01.- Parameters:
proximityPlacementGroup- the proximityPlacementGroup value to set.- Returns:
- the AvailabilitySetInner object itself.
-
statuses
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
scheduledEventsPolicy
Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.- Returns:
- the scheduledEventsPolicy value.
-
withScheduledEventsPolicy
Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.- Parameters:
scheduledEventsPolicy- the scheduledEventsPolicy value to set.- Returns:
- the AvailabilitySetInner object itself.
-
virtualMachineScaleSetMigrationInfo
Get the virtualMachineScaleSetMigrationInfo property: Describes the migration properties on the Availability Set.- Returns:
- the virtualMachineScaleSetMigrationInfo value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static AvailabilitySetInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailabilitySetInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailabilitySetInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AvailabilitySetInner.
-