@Generated(value="software.amazon.awssdk:codegen") public final class Activity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Activity.Builder,Activity>
Describes scaling activity, which is a long-running process that represents a change to your Auto Scaling group, such as changing its size or replacing an instance.
Modifier and Type | Class and Description |
---|---|
static interface |
Activity.Builder |
Modifier and Type | Method and Description |
---|---|
String |
activityId()
The ID of the activity.
|
String |
autoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
autoScalingGroupName()
The name of the Auto Scaling group.
|
String |
autoScalingGroupState()
The state of the Auto Scaling group, which is either
InService or Deleted . |
static Activity.Builder |
builder() |
String |
cause()
The reason the activity began.
|
String |
description()
A friendly, more verbose description of the activity.
|
String |
details()
The details about the activity.
|
Instant |
endTime()
The end time of the activity.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
progress()
A value between 0 and 100 that indicates the progress of the activity.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Activity.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The start time of the activity.
|
ScalingActivityStatusCode |
statusCode()
The current status of the activity.
|
String |
statusCodeAsString()
The current status of the activity.
|
String |
statusMessage()
A friendly, more verbose description of the activity status.
|
Activity.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String activityId()
The ID of the activity.
public final String autoScalingGroupName()
The name of the Auto Scaling group.
public final String description()
A friendly, more verbose description of the activity.
public final String cause()
The reason the activity began.
public final Instant startTime()
The start time of the activity.
public final Instant endTime()
The end time of the activity.
public final ScalingActivityStatusCode statusCode()
The current status of the activity.
If the service returns an enum value that is not available in the current SDK version, statusCode
will
return ScalingActivityStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from statusCodeAsString()
.
ScalingActivityStatusCode
public final String statusCodeAsString()
The current status of the activity.
If the service returns an enum value that is not available in the current SDK version, statusCode
will
return ScalingActivityStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from statusCodeAsString()
.
ScalingActivityStatusCode
public final String statusMessage()
A friendly, more verbose description of the activity status.
public final Integer progress()
A value between 0 and 100 that indicates the progress of the activity.
public final String details()
The details about the activity.
public final String autoScalingGroupState()
The state of the Auto Scaling group, which is either InService
or Deleted
.
InService
or Deleted
.public final String autoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public Activity.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Activity.Builder,Activity>
public static Activity.Builder builder()
public static Class<? extends Activity.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.