PlacementProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.PlacementProfile

Implements

public final class PlacementProfile
implements JsonSerializable<PlacementProfile>

Provides options w.r.t allocation and management w.r.t certain placement policies. These utilize capabilities provided by the underlying Azure infrastructure. They are typically used for high availability scenarios. E.g., distributing CGs across fault domains.

Constructor Summary

Constructor Description
PlacementProfile()

Creates an instance of PlacementProfile class.

Method Summary

Modifier and Type Method and Description
Integer faultDomainCount()

Get the faultDomainCount property: The number of fault domains to be used to spread CGs in the NGroups resource.

static PlacementProfile fromJson(JsonReader jsonReader)

Reads an instance of PlacementProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PlacementProfile withFaultDomainCount(Integer faultDomainCount)

Set the faultDomainCount property: The number of fault domains to be used to spread CGs in the NGroups resource.

Methods inherited from java.lang.Object

Constructor Details

PlacementProfile

public PlacementProfile()

Creates an instance of PlacementProfile class.

Method Details

faultDomainCount

public Integer faultDomainCount()

Get the faultDomainCount property: The number of fault domains to be used to spread CGs in the NGroups resource. This can only be specified during NGroup creation and is immutable after that.

Returns:

the faultDomainCount value.

fromJson

public static PlacementProfile fromJson(JsonReader jsonReader)

Reads an instance of PlacementProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFaultDomainCount

public PlacementProfile withFaultDomainCount(Integer faultDomainCount)

Set the faultDomainCount property: The number of fault domains to be used to spread CGs in the NGroups resource. This can only be specified during NGroup creation and is immutable after that.

Parameters:

faultDomainCount - the faultDomainCount value to set.

Returns:

the PlacementProfile object itself.

Applies to