Class Activity
- All Implemented Interfaces:
Serializable
,SdkPojo
,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.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The ID of the activity.final String
The Amazon Resource Name (ARN) of the Auto Scaling group.final String
The name of the Auto Scaling group.final String
The state of the Auto Scaling group, which is eitherInService
orDeleted
.static Activity.Builder
builder()
final String
cause()
The reason the activity began.final String
A friendly, more verbose description of the activity.final String
details()
The details about the activity.final Instant
endTime()
The end time of the activity.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
progress()
A value between 0 and 100 that indicates the progress of the activity.static Class
<? extends Activity.Builder> final Instant
The start time of the activity.The current status of the activity.final String
The current status of the activity.final String
A friendly, more verbose description of the activity status.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
activityId
The ID of the activity.
- Returns:
- The ID of the activity.
-
autoScalingGroupName
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
description
A friendly, more verbose description of the activity.
- Returns:
- A friendly, more verbose description of the activity.
-
cause
The reason the activity began.
- Returns:
- The reason the activity began.
-
startTime
The start time of the activity.
- Returns:
- The start time of the activity.
-
endTime
The end time of the activity.
- Returns:
- The end time of the activity.
-
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 returnScalingActivityStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusCodeAsString()
.- Returns:
- The current status of the activity.
- See Also:
-
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 returnScalingActivityStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusCodeAsString()
.- Returns:
- The current status of the activity.
- See Also:
-
statusMessage
A friendly, more verbose description of the activity status.
- Returns:
- A friendly, more verbose description of the activity status.
-
progress
A value between 0 and 100 that indicates the progress of the activity.
- Returns:
- A value between 0 and 100 that indicates the progress of the activity.
-
details
The details about the activity.
- Returns:
- The details about the activity.
-
autoScalingGroupState
The state of the Auto Scaling group, which is either
InService
orDeleted
.- Returns:
- The state of the Auto Scaling group, which is either
InService
orDeleted
.
-
autoScalingGroupARN
The Amazon Resource Name (ARN) of the Auto Scaling group.
- Returns:
- The Amazon Resource Name (ARN) of the Auto Scaling group.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Activity.Builder,
Activity> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-