@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 specific update you want to deploy.
|
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()
Returns the value of the Preferences property for this object.
|
InstanceRefreshProgressDetails |
progressDetails()
Additional progress details for an Auto Scaling group that has a warm pool.
|
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()
Provides more details about the current status of the instance refresh.
|
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 operation has not started.
InProgress - The operation is in progress.
Successful - The operation completed successfully.
Failed - The operation failed to complete. You can troubleshoot using the status reason and the
scaling activities.
Cancelling - An ongoing operation is being cancelled. Cancellation does not roll back any
replacements that have already been completed, but it prevents new replacements from being started.
Cancelled - The operation is cancelled.
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 operation has not started.
InProgress - The operation is in progress.
Successful - The operation completed successfully.
Failed - The operation failed to complete. You can troubleshoot using the status reason and
the scaling activities.
Cancelling - An ongoing operation is being cancelled. Cancellation does not roll back any
replacements that have already been completed, but it prevents new replacements from being started.
Cancelled - The operation is cancelled.
InstanceRefreshStatuspublic final String statusAsString()
The current status for the instance refresh operation:
Pending - The request was created, but the operation has not started.
InProgress - The operation is in progress.
Successful - The operation completed successfully.
Failed - The operation failed to complete. You can troubleshoot using the status reason and the
scaling activities.
Cancelling - An ongoing operation is being cancelled. Cancellation does not roll back any
replacements that have already been completed, but it prevents new replacements from being started.
Cancelled - The operation is cancelled.
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 operation has not started.
InProgress - The operation is in progress.
Successful - The operation completed successfully.
Failed - The operation failed to complete. You can troubleshoot using the status reason and
the scaling activities.
Cancelling - An ongoing operation is being cancelled. Cancellation does not roll back any
replacements that have already been completed, but it prevents new replacements from being started.
Cancelled - The operation is cancelled.
InstanceRefreshStatuspublic final String statusReason()
Provides more details about the current status of the instance refresh.
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.
public final Integer instancesToUpdate()
The number of instances remaining to update before the instance refresh is complete.
public final InstanceRefreshProgressDetails progressDetails()
Additional progress details for an Auto Scaling group that has a warm pool.
public final RefreshPreferences preferences()
public final DesiredConfiguration desiredConfiguration()
Describes the specific update you want to deploy.
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 © 2022. All rights reserved.