Share via


AvailabilitySetResourceSettings Class

public final class AvailabilitySetResourceSettings
extends ResourceSettings

Gets or sets the availability set resource settings.

Constructor Summary

Constructor Description
AvailabilitySetResourceSettings()

Creates an instance of AvailabilitySetResourceSettings class.

Method Summary

Modifier and Type Method and Description
Integer faultDomain()

Get the faultDomain property: Gets or sets the target fault domain.

static AvailabilitySetResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of AvailabilitySetResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
Integer updateDomain()

Get the updateDomain property: Gets or sets the target update domain.

void validate()

Validates the instance.

AvailabilitySetResourceSettings withFaultDomain(Integer faultDomain)

Set the faultDomain property: Gets or sets the target fault domain.

AvailabilitySetResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

AvailabilitySetResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

AvailabilitySetResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

AvailabilitySetResourceSettings withUpdateDomain(Integer updateDomain)

Set the updateDomain property: Gets or sets the target update domain.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

AvailabilitySetResourceSettings

public AvailabilitySetResourceSettings()

Creates an instance of AvailabilitySetResourceSettings class.

Method Details

faultDomain

public Integer faultDomain()

Get the faultDomain property: Gets or sets the target fault domain.

Returns:

the faultDomain value.

fromJson

public static AvailabilitySetResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of AvailabilitySetResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

AvailabilitySetResourceSettings.resourceType()

Returns:

the resourceType value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AvailabilitySetResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updateDomain

public Integer updateDomain()

Get the updateDomain property: Gets or sets the target update domain.

Returns:

the updateDomain value.

validate

public void validate()

Validates the instance.

Overrides:

AvailabilitySetResourceSettings.validate()

withFaultDomain

public AvailabilitySetResourceSettings withFaultDomain(Integer faultDomain)

Set the faultDomain property: Gets or sets the target fault domain.

Parameters:

faultDomain - the faultDomain value to set.

Returns:

the AvailabilitySetResourceSettings object itself.

withTags

public AvailabilitySetResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the AvailabilitySetResourceSettings object itself.

withTargetResourceGroupName

public AvailabilitySetResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

AvailabilitySetResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public AvailabilitySetResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

AvailabilitySetResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

withUpdateDomain

public AvailabilitySetResourceSettings withUpdateDomain(Integer updateDomain)

Set the updateDomain property: Gets or sets the target update domain.

Parameters:

updateDomain - the updateDomain value to set.

Returns:

the AvailabilitySetResourceSettings object itself.

Applies to