Class AvailabilitySetProperties

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.AvailabilitySetProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailabilitySetProperties>

public final class AvailabilitySetProperties extends Object implements com.azure.json.JsonSerializable<AvailabilitySetProperties>
The instance view of a resource.
  • Constructor Details

    • AvailabilitySetProperties

      public AvailabilitySetProperties()
      Creates an instance of AvailabilitySetProperties class.
  • Method Details

    • platformUpdateDomainCount

      public Integer platformUpdateDomainCount()
      Get the platformUpdateDomainCount property: Update Domain count.
      Returns:
      the platformUpdateDomainCount value.
    • withPlatformUpdateDomainCount

      public AvailabilitySetProperties withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)
      Set the platformUpdateDomainCount property: Update Domain count.
      Parameters:
      platformUpdateDomainCount - the platformUpdateDomainCount value to set.
      Returns:
      the AvailabilitySetProperties object itself.
    • platformFaultDomainCount

      public Integer platformFaultDomainCount()
      Get the platformFaultDomainCount property: Fault Domain count.
      Returns:
      the platformFaultDomainCount value.
    • withPlatformFaultDomainCount

      public AvailabilitySetProperties withPlatformFaultDomainCount(Integer platformFaultDomainCount)
      Set the platformFaultDomainCount property: Fault Domain count.
      Parameters:
      platformFaultDomainCount - the platformFaultDomainCount value to set.
      Returns:
      the AvailabilitySetProperties 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 AvailabilitySetProperties 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 AvailabilitySetProperties 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 AvailabilitySetProperties 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 AvailabilitySetProperties object itself.
    • statuses

      public List<InstanceViewStatus> statuses()
      Get the statuses property: The resource status information.
      Returns:
      the statuses value.
    • scheduledEventsPolicy

      public ScheduledEventsPolicy scheduledEventsPolicy()
      Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
      Returns:
      the scheduledEventsPolicy value.
    • withScheduledEventsPolicy

      public AvailabilitySetProperties withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)
      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 AvailabilitySetProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AvailabilitySetProperties>
      Throws:
      IOException
    • fromJson

      public static AvailabilitySetProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AvailabilitySetProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AvailabilitySetProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the AvailabilitySetProperties.