AvailabilitySetUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. UpdateResource - com.
azure. resourcemanager. compute. models. AvailabilitySetUpdate
- com.
- com.
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
| Constructor | Description |
|---|---|
| AvailabilitySetUpdate() |
Creates an instance of Availability |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Availability |
fromJson(JsonReader jsonReader)
Reads an instance of Availability |
| 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. |
|
List<Instance |
statuses()
Get the statuses property: The resource status information. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
List<Sub |
virtualMachines()
Get the virtual |
|
Virtual |
virtualMachineScaleSetMigrationInfo()
Get the virtual |
|
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. |
|
Availability |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
|
Availability |
withVirtualMachines(List<SubResource> virtualMachines)
Set the virtual |
Methods inherited from UpdateResource
Methods inherited from java.lang.Object
Constructor Details
AvailabilitySetUpdate
public AvailabilitySetUpdate()
Creates an instance of AvailabilitySetUpdate class.
Method Details
fromJson
public static AvailabilitySetUpdate fromJson(JsonReader jsonReader)
Reads an instance of AvailabilitySetUpdate from the JsonReader.
Parameters:
Returns:
Throws:
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.
Returns:
statuses
public List<InstanceViewStatus> statuses()
Get the statuses property: The resource status information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AvailabilitySetUpdate.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
AvailabilitySetUpdate.validate()virtualMachines
public List<SubResource> virtualMachines()
Get the virtualMachines property: A list of references to all virtual machines in the availability set.
Returns:
virtualMachineScaleSetMigrationInfo
public VirtualMachineScaleSetMigrationInfo virtualMachineScaleSetMigrationInfo()
Get the virtualMachineScaleSetMigrationInfo property: Describes the migration properties on the Availability Set.
Returns:
withPlatformFaultDomainCount
public AvailabilitySetUpdate withPlatformFaultDomainCount(Integer platformFaultDomainCount)
Set the platformFaultDomainCount property: Fault Domain count.
Parameters:
Returns:
withPlatformUpdateDomainCount
public AvailabilitySetUpdate withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)
Set the platformUpdateDomainCount property: Update Domain count.
Parameters:
Returns:
withProximityPlacementGroup
public AvailabilitySetUpdate 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 AvailabilitySetUpdate withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)
Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
Parameters:
Returns:
withSku
public AvailabilitySetUpdate withSku(Sku sku)
Set the sku property: Sku of the availability set.
Parameters:
Returns:
withTags
public AvailabilitySetUpdate withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Overrides:
AvailabilitySetUpdate.withTags(Map<String,String> tags)Parameters:
withVirtualMachines
public AvailabilitySetUpdate withVirtualMachines(List<SubResource> virtualMachines)
Set the virtualMachines property: A list of references to all virtual machines in the availability set.
Parameters:
Returns: