ElasticProfile Class

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

Implements

public final class ElasticProfile
implements JsonSerializable<ElasticProfile>

Describes the elastic profile of the NGroup.

Constructor Summary

Constructor Description
ElasticProfile()

Creates an instance of ElasticProfile class.

Method Summary

Modifier and Type Method and Description
ElasticProfileContainerGroupNamingPolicy containerGroupNamingPolicy()

Get the containerGroupNamingPolicy property: Container Groups are named on a generic guid based naming scheme/policy.

Integer desiredCount()

Get the desiredCount property: The desiredCount property.

static ElasticProfile fromJson(JsonReader jsonReader)

Reads an instance of ElasticProfile from the JsonReader.

Boolean maintainDesiredCount()

Get the maintainDesiredCount property: Flag that indicates whether desiredCount should be maintained when customer deletes SPECIFIC container groups (CGs) from the NGroups.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ElasticProfile withContainerGroupNamingPolicy(ElasticProfileContainerGroupNamingPolicy containerGroupNamingPolicy)

Set the containerGroupNamingPolicy property: Container Groups are named on a generic guid based naming scheme/policy.

ElasticProfile withDesiredCount(Integer desiredCount)

Set the desiredCount property: The desiredCount property.

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.

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:

the containerGroupNamingPolicy value.

desiredCount

public Integer desiredCount()

Get the desiredCount property: The desiredCount property.

Returns:

the desiredCount value.

fromJson

public static ElasticProfile fromJson(JsonReader jsonReader)

Reads an instance of ElasticProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

the maintainDesiredCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

containerGroupNamingPolicy - the containerGroupNamingPolicy value to set.

Returns:

the ElasticProfile object itself.

withDesiredCount

public ElasticProfile withDesiredCount(Integer desiredCount)

Set the desiredCount property: The desiredCount property.

Parameters:

desiredCount - the desiredCount value to set.

Returns:

the ElasticProfile object itself.

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:

maintainDesiredCount - the maintainDesiredCount value to set.

Returns:

the ElasticProfile object itself.

Applies to