PlacementProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. PlacementProfile
- com.
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 Placement |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
faultDomainCount()
Get the fault |
|
static
Placement |
fromJson(JsonReader jsonReader)
Reads an instance of Placement |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Placement |
withFaultDomainCount(Integer faultDomainCount)
Set the fault |
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:
fromJson
public static PlacementProfile fromJson(JsonReader jsonReader)
Reads an instance of PlacementProfile from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns: