@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RefreshPreferences extends Object implements Serializable, Cloneable
Describes information used to start an instance refresh.
All properties are optional. However, if you specify a value for CheckpointDelay
, you must also provide
a value for CheckpointPercentages
.
Constructor and Description |
---|
RefreshPreferences() |
Modifier and Type | Method and Description |
---|---|
RefreshPreferences |
clone() |
boolean |
equals(Object obj) |
Integer |
getCheckpointDelay()
The amount of time, in seconds, to wait after a checkpoint before continuing.
|
List<Integer> |
getCheckpointPercentages()
Threshold values for each checkpoint in ascending order.
|
Integer |
getInstanceWarmup()
The number of seconds until a newly launched instance is configured and ready to use.
|
Integer |
getMinHealthyPercentage()
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer).
|
int |
hashCode() |
void |
setCheckpointDelay(Integer checkpointDelay)
The amount of time, in seconds, to wait after a checkpoint before continuing.
|
void |
setCheckpointPercentages(Collection<Integer> checkpointPercentages)
Threshold values for each checkpoint in ascending order.
|
void |
setInstanceWarmup(Integer instanceWarmup)
The number of seconds until a newly launched instance is configured and ready to use.
|
void |
setMinHealthyPercentage(Integer minHealthyPercentage)
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer).
|
String |
toString()
Returns a string representation of this object.
|
RefreshPreferences |
withCheckpointDelay(Integer checkpointDelay)
The amount of time, in seconds, to wait after a checkpoint before continuing.
|
RefreshPreferences |
withCheckpointPercentages(Collection<Integer> checkpointPercentages)
Threshold values for each checkpoint in ascending order.
|
RefreshPreferences |
withCheckpointPercentages(Integer... checkpointPercentages)
Threshold values for each checkpoint in ascending order.
|
RefreshPreferences |
withInstanceWarmup(Integer instanceWarmup)
The number of seconds until a newly launched instance is configured and ready to use.
|
RefreshPreferences |
withMinHealthyPercentage(Integer minHealthyPercentage)
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer).
|
public void setMinHealthyPercentage(Integer minHealthyPercentage)
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer). The default is 90
.
minHealthyPercentage
- The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to
allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group
(rounded up to the nearest integer). The default is 90
.public Integer getMinHealthyPercentage()
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer). The default is 90
.
90
.public RefreshPreferences withMinHealthyPercentage(Integer minHealthyPercentage)
The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the
operation to continue, as a percentage of the desired capacity of the Auto Scaling group (rounded up to the
nearest integer). The default is 90
.
minHealthyPercentage
- The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to
allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group
(rounded up to the nearest integer). The default is 90
.public void setInstanceWarmup(Integer instanceWarmup)
The number of seconds until a newly launched instance is configured and ready to use. During this time, Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the value for the health check grace period defined for the group.
instanceWarmup
- The number of seconds until a newly launched instance is configured and ready to use. During this time,
Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the
value for the health check grace period defined for the group.public Integer getInstanceWarmup()
The number of seconds until a newly launched instance is configured and ready to use. During this time, Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the value for the health check grace period defined for the group.
public RefreshPreferences withInstanceWarmup(Integer instanceWarmup)
The number of seconds until a newly launched instance is configured and ready to use. During this time, Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the value for the health check grace period defined for the group.
instanceWarmup
- The number of seconds until a newly launched instance is configured and ready to use. During this time,
Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the
value for the health check grace period defined for the group.public List<Integer> getCheckpointPercentages()
Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all instances in
the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public void setCheckpointPercentages(Collection<Integer> checkpointPercentages)
Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all instances in
the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
checkpointPercentages
- Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withCheckpointPercentages(Integer... checkpointPercentages)
Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all instances in
the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setCheckpointPercentages(java.util.Collection)
or
withCheckpointPercentages(java.util.Collection)
if you want to override the existing values.
checkpointPercentages
- Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withCheckpointPercentages(Collection<Integer> checkpointPercentages)
Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all instances in
the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
checkpointPercentages
- Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Adding checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public void setCheckpointDelay(Integer checkpointDelay)
The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional, but if
you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify
a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
checkpointDelay
- The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional,
but if you specify a value for it, you must also specify a value for CheckpointPercentages
.
If you specify a value for CheckpointPercentages
and not for CheckpointDelay
,
the CheckpointDelay
defaults to 3600
(1 hour).public Integer getCheckpointDelay()
The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional, but if
you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify
a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
CheckpointPercentages
.
If you specify a value for CheckpointPercentages
and not for CheckpointDelay
,
the CheckpointDelay
defaults to 3600
(1 hour).public RefreshPreferences withCheckpointDelay(Integer checkpointDelay)
The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional, but if
you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify
a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
checkpointDelay
- The amount of time, in seconds, to wait after a checkpoint before continuing. This property is optional,
but if you specify a value for it, you must also specify a value for CheckpointPercentages
.
If you specify a value for CheckpointPercentages
and not for CheckpointDelay
,
the CheckpointDelay
defaults to 3600
(1 hour).public String toString()
toString
in class Object
Object.toString()
public RefreshPreferences clone()