UpdateProfileRollingUpdateProfile Class

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

Implements

public final class UpdateProfileRollingUpdateProfile
implements JsonSerializable<UpdateProfileRollingUpdateProfile>

This profile allows the customers to customize the rolling update.

Constructor Summary

Constructor Description
UpdateProfileRollingUpdateProfile()

Creates an instance of UpdateProfileRollingUpdateProfile class.

Method Summary

Modifier and Type Method and Description
static UpdateProfileRollingUpdateProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateProfileRollingUpdateProfile from the JsonReader.

Boolean inPlaceUpdate()

Get the inPlaceUpdate property: Default is false.

Integer maxBatchPercent()

Get the maxBatchPercent property: Maximum percentage of total Container Groups which can be updated simultaneously by rolling update in one batch.

Integer maxUnhealthyPercent()

Get the maxUnhealthyPercent property: Maximum percentage of the updated Container Groups which can be in unhealthy state after each batch is updated.

String pauseTimeBetweenBatches()

Get the pauseTimeBetweenBatches property: The wait time between batches after completing the one batch of the rolling update and starting the next batch.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UpdateProfileRollingUpdateProfile withInPlaceUpdate(Boolean inPlaceUpdate)

Set the inPlaceUpdate property: Default is false.

UpdateProfileRollingUpdateProfile withMaxBatchPercent(Integer maxBatchPercent)

Set the maxBatchPercent property: Maximum percentage of total Container Groups which can be updated simultaneously by rolling update in one batch.

UpdateProfileRollingUpdateProfile withMaxUnhealthyPercent(Integer maxUnhealthyPercent)

Set the maxUnhealthyPercent property: Maximum percentage of the updated Container Groups which can be in unhealthy state after each batch is updated.

UpdateProfileRollingUpdateProfile withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)

Set the pauseTimeBetweenBatches property: The wait time between batches after completing the one batch of the rolling update and starting the next batch.

Methods inherited from java.lang.Object

Constructor Details

UpdateProfileRollingUpdateProfile

public UpdateProfileRollingUpdateProfile()

Creates an instance of UpdateProfileRollingUpdateProfile class.

Method Details

fromJson

public static UpdateProfileRollingUpdateProfile fromJson(JsonReader jsonReader)

Reads an instance of UpdateProfileRollingUpdateProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inPlaceUpdate

public Boolean inPlaceUpdate()

Get the inPlaceUpdate property: Default is false. If set to true, the CGs will be updated in-place instead of creating new CG and deleting old ones.

Returns:

the inPlaceUpdate value.

maxBatchPercent

public Integer maxBatchPercent()

Get the maxBatchPercent property: Maximum percentage of total Container Groups which can be updated simultaneously by rolling update in one batch.

Returns:

the maxBatchPercent value.

maxUnhealthyPercent

public Integer maxUnhealthyPercent()

Get the maxUnhealthyPercent property: Maximum percentage of the updated Container Groups which can be in unhealthy state after each batch is updated.

Returns:

the maxUnhealthyPercent value.

pauseTimeBetweenBatches

public String pauseTimeBetweenBatches()

Get the pauseTimeBetweenBatches property: The wait time between batches after completing the one batch of the rolling update and starting the next batch. The time duration should be specified in ISO 8601 format for duration.

Returns:

the pauseTimeBetweenBatches value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInPlaceUpdate

public UpdateProfileRollingUpdateProfile withInPlaceUpdate(Boolean inPlaceUpdate)

Set the inPlaceUpdate property: Default is false. If set to true, the CGs will be updated in-place instead of creating new CG and deleting old ones.

Parameters:

inPlaceUpdate - the inPlaceUpdate value to set.

Returns:

the UpdateProfileRollingUpdateProfile object itself.

withMaxBatchPercent

public UpdateProfileRollingUpdateProfile withMaxBatchPercent(Integer maxBatchPercent)

Set the maxBatchPercent property: Maximum percentage of total Container Groups which can be updated simultaneously by rolling update in one batch.

Parameters:

maxBatchPercent - the maxBatchPercent value to set.

Returns:

the UpdateProfileRollingUpdateProfile object itself.

withMaxUnhealthyPercent

public UpdateProfileRollingUpdateProfile withMaxUnhealthyPercent(Integer maxUnhealthyPercent)

Set the maxUnhealthyPercent property: Maximum percentage of the updated Container Groups which can be in unhealthy state after each batch is updated.

Parameters:

maxUnhealthyPercent - the maxUnhealthyPercent value to set.

Returns:

the UpdateProfileRollingUpdateProfile object itself.

withPauseTimeBetweenBatches

public UpdateProfileRollingUpdateProfile withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)

Set the pauseTimeBetweenBatches property: The wait time between batches after completing the one batch of the rolling update and starting the next batch. The time duration should be specified in ISO 8601 format for duration.

Parameters:

pauseTimeBetweenBatches - the pauseTimeBetweenBatches value to set.

Returns:

the UpdateProfileRollingUpdateProfile object itself.

Applies to