UpdateProfileRollingUpdateProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. UpdateProfileRollingUpdateProfile
- com.
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 Update |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Update |
fromJson(JsonReader jsonReader)
Reads an instance of Update |
| Boolean |
inPlaceUpdate()
Get the in |
| Integer |
maxBatchPercent()
Get the max |
| Integer |
maxUnhealthyPercent()
Get the max |
| String |
pauseTimeBetweenBatches()
Get the pause |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Update |
withInPlaceUpdate(Boolean inPlaceUpdate)
Set the in |
|
Update |
withMaxBatchPercent(Integer maxBatchPercent)
Set the max |
|
Update |
withMaxUnhealthyPercent(Integer maxUnhealthyPercent)
Set the max |
|
Update |
withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)
Set the pause |
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:
Returns:
Throws:
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:
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:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: