@Generated(value="software.amazon.awssdk:codegen") public final class InstanceRefresh extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceRefresh.Builder,InstanceRefresh>
Describes an instance refresh for an Auto Scaling group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceRefresh.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
autoScalingGroupName()
The name of the Auto Scaling group.
|
static InstanceRefresh.Builder |
builder() |
DesiredConfiguration |
desiredConfiguration()
Describes the desired configuration for the instance refresh.
|
Instant |
endTime()
The date and time at which the instance refresh ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceRefreshId()
The instance refresh ID.
|
Integer |
instancesToUpdate()
The number of instances remaining to update before the instance refresh is complete.
|
Integer |
percentageComplete()
The percentage of the instance refresh that is complete.
|
RefreshPreferences |
preferences()
The preferences for an instance refresh.
|
InstanceRefreshProgressDetails |
progressDetails()
Additional progress details for an Auto Scaling group that has a warm pool.
|
RollbackDetails |
rollbackDetails()
The rollback details.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceRefresh.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The date and time at which the instance refresh began.
|
InstanceRefreshStatus |
status()
The current status for the instance refresh operation:
|
String |
statusAsString()
The current status for the instance refresh operation:
|
String |
statusReason()
The explanation for the specific status assigned to this operation.
|
InstanceRefresh.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceRefreshId()
The instance refresh ID.
public final String autoScalingGroupName()
The name of the Auto Scaling group.
public final InstanceRefreshStatus status()
The current status for the instance refresh operation:
Pending - The request was created, but the instance refresh has not started.
InProgress - An instance refresh is in progress.
Successful - An instance refresh completed successfully.
Failed - An instance refresh failed to complete. You can troubleshoot using the status reason and
the scaling activities.
Cancelling - An ongoing instance refresh is being cancelled.
Cancelled - The instance refresh is cancelled.
RollbackInProgress - An instance refresh is being rolled back.
RollbackFailed - The rollback failed to complete. You can troubleshoot using the status reason and
the scaling activities.
RollbackSuccessful - The rollback completed successfully.
If the service returns an enum value that is not available in the current SDK version, status will
return InstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
Pending - The request was created, but the instance refresh has not started.
InProgress - An instance refresh is in progress.
Successful - An instance refresh completed successfully.
Failed - An instance refresh failed to complete. You can troubleshoot using the status
reason and the scaling activities.
Cancelling - An ongoing instance refresh is being cancelled.
Cancelled - The instance refresh is cancelled.
RollbackInProgress - An instance refresh is being rolled back.
RollbackFailed - The rollback failed to complete. You can troubleshoot using the status
reason and the scaling activities.
RollbackSuccessful - The rollback completed successfully.
InstanceRefreshStatuspublic final String statusAsString()
The current status for the instance refresh operation:
Pending - The request was created, but the instance refresh has not started.
InProgress - An instance refresh is in progress.
Successful - An instance refresh completed successfully.
Failed - An instance refresh failed to complete. You can troubleshoot using the status reason and
the scaling activities.
Cancelling - An ongoing instance refresh is being cancelled.
Cancelled - The instance refresh is cancelled.
RollbackInProgress - An instance refresh is being rolled back.
RollbackFailed - The rollback failed to complete. You can troubleshoot using the status reason and
the scaling activities.
RollbackSuccessful - The rollback completed successfully.
If the service returns an enum value that is not available in the current SDK version, status will
return InstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
Pending - The request was created, but the instance refresh has not started.
InProgress - An instance refresh is in progress.
Successful - An instance refresh completed successfully.
Failed - An instance refresh failed to complete. You can troubleshoot using the status
reason and the scaling activities.
Cancelling - An ongoing instance refresh is being cancelled.
Cancelled - The instance refresh is cancelled.
RollbackInProgress - An instance refresh is being rolled back.
RollbackFailed - The rollback failed to complete. You can troubleshoot using the status
reason and the scaling activities.
RollbackSuccessful - The rollback completed successfully.
InstanceRefreshStatuspublic final String statusReason()
The explanation for the specific status assigned to this operation.
public final Instant startTime()
The date and time at which the instance refresh began.
public final Instant endTime()
The date and time at which the instance refresh ended.
public final Integer percentageComplete()
The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.
PercentageComplete does not include instances that are replaced during a rollback. This value
gradually goes back down to zero during a rollback.
PercentageComplete does not include instances that are replaced during a rollback. This
value gradually goes back down to zero during a rollback.
public final Integer instancesToUpdate()
The number of instances remaining to update before the instance refresh is complete.
If you roll back the instance refresh, InstancesToUpdate shows you the number of instances that were
not yet updated by the instance refresh. Therefore, these instances don't need to be replaced as part of the
rollback.
If you roll back the instance refresh, InstancesToUpdate shows you the number of instances
that were not yet updated by the instance refresh. Therefore, these instances don't need to be replaced
as part of the rollback.
public final InstanceRefreshProgressDetails progressDetails()
Additional progress details for an Auto Scaling group that has a warm pool.
public final RefreshPreferences preferences()
The preferences for an instance refresh.
public final DesiredConfiguration desiredConfiguration()
Describes the desired configuration for the instance refresh.
public final RollbackDetails rollbackDetails()
The rollback details.
public InstanceRefresh.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceRefresh.Builder,InstanceRefresh>public static InstanceRefresh.Builder builder()
public static Class<? extends InstanceRefresh.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.