ElasticProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ElasticProfile
- com.
Implements
public final class ElasticProfile
implements JsonSerializable<ElasticProfile>
Describes the elastic profile of the NGroup.
Constructor Summary
| Constructor | Description |
|---|---|
| ElasticProfile() |
Creates an instance of Elastic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Elastic |
containerGroupNamingPolicy()
Get the container |
| Integer |
desiredCount()
Get the desired |
|
static
Elastic |
fromJson(JsonReader jsonReader)
Reads an instance of Elastic |
| Boolean |
maintainDesiredCount()
Get the maintain |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Elastic |
withContainerGroupNamingPolicy(ElasticProfileContainerGroupNamingPolicy containerGroupNamingPolicy)
Set the container |
|
Elastic |
withDesiredCount(Integer desiredCount)
Set the desired |
|
Elastic |
withMaintainDesiredCount(Boolean maintainDesiredCount)
Set the maintain |
Methods inherited from java.lang.Object
Constructor Details
ElasticProfile
public ElasticProfile()
Creates an instance of ElasticProfile class.
Method Details
containerGroupNamingPolicy
public ElasticProfileContainerGroupNamingPolicy containerGroupNamingPolicy()
Get the containerGroupNamingPolicy property: Container Groups are named on a generic guid based naming scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out operation.
Returns:
desiredCount
public Integer desiredCount()
Get the desiredCount property: The desiredCount property.
Returns:
fromJson
public static ElasticProfile fromJson(JsonReader jsonReader)
Reads an instance of ElasticProfile from the JsonReader.
Parameters:
Returns:
Throws:
maintainDesiredCount
public Boolean maintainDesiredCount()
Get the maintainDesiredCount property: Flag that indicates whether desiredCount should be maintained when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs will be created by NGroup to compensate for the specific deleted ones.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContainerGroupNamingPolicy
public ElasticProfile withContainerGroupNamingPolicy(ElasticProfileContainerGroupNamingPolicy containerGroupNamingPolicy)
Set the containerGroupNamingPolicy property: Container Groups are named on a generic guid based naming scheme/policy. Customer can modify naming policy to add prefix to CG names during scale out operation.
Parameters:
Returns:
withDesiredCount
public ElasticProfile withDesiredCount(Integer desiredCount)
Set the desiredCount property: The desiredCount property.
Parameters:
Returns:
withMaintainDesiredCount
public ElasticProfile withMaintainDesiredCount(Boolean maintainDesiredCount)
Set the maintainDesiredCount property: Flag that indicates whether desiredCount should be maintained when customer deletes SPECIFIC container groups (CGs) from the NGroups. In this case, new CGs will be created by NGroup to compensate for the specific deleted ones.
Parameters:
Returns: