AvailabilitySetUpdate Class

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 AvailabilitySetUpdate class.

Method Summary

Modifier and Type Method and Description
static AvailabilitySetUpdate fromJson(JsonReader jsonReader)

Reads an instance of AvailabilitySetUpdate from the JsonReader.

Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count.

Integer platformUpdateDomainCount()

Get the platformUpdateDomainCount property: Update Domain count.

SubResource proximityPlacementGroup()

Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.

ScheduledEventsPolicy scheduledEventsPolicy()

Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.

Sku sku()

Get the sku property: Sku of the availability set.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<SubResource> virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the availability set.

VirtualMachineScaleSetMigrationInfo virtualMachineScaleSetMigrationInfo()

Get the virtualMachineScaleSetMigrationInfo property: Describes the migration properties on the Availability Set.

AvailabilitySetUpdate withPlatformFaultDomainCount(Integer platformFaultDomainCount)

Set the platformFaultDomainCount property: Fault Domain count.

AvailabilitySetUpdate withPlatformUpdateDomainCount(Integer platformUpdateDomainCount)

Set the platformUpdateDomainCount property: Update Domain count.

AvailabilitySetUpdate withProximityPlacementGroup(SubResource proximityPlacementGroup)

Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the availability set should be assigned to.

AvailabilitySetUpdate withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy)

Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.

AvailabilitySetUpdate withSku(Sku sku)

Set the sku property: Sku of the availability set.

AvailabilitySetUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

AvailabilitySetUpdate withVirtualMachines(List<SubResource> virtualMachines)

Set the virtualMachines property: A list of references to all virtual machines in the availability set.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of AvailabilitySetUpdate 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 AvailabilitySetUpdate.

platformFaultDomainCount

public Integer platformFaultDomainCount()

Get the platformFaultDomainCount property: Fault Domain count.

Returns:

the platformFaultDomainCount value.

platformUpdateDomainCount

public Integer platformUpdateDomainCount()

Get the platformUpdateDomainCount property: Update Domain count.

Returns:

the platformUpdateDomainCount value.

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:

the proximityPlacementGroup 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.

sku

public Sku sku()

Get the sku property: Sku of the availability set.

Returns:

the sku value.

statuses

public List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AvailabilitySetUpdate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

the virtualMachines value.

virtualMachineScaleSetMigrationInfo

public VirtualMachineScaleSetMigrationInfo virtualMachineScaleSetMigrationInfo()

Get the virtualMachineScaleSetMigrationInfo property: Describes the migration properties on the Availability Set.

Returns:

the virtualMachineScaleSetMigrationInfo 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.

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.

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:

proximityPlacementGroup - the proximityPlacementGroup value to set.

Returns:

the AvailabilitySetUpdate object itself.

withScheduledEventsPolicy

public AvailabilitySetUpdate 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 AvailabilitySetUpdate object itself.

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:

AvailabilitySetUpdate.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualMachines

public AvailabilitySetUpdate withVirtualMachines(List<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.

Applies to