Class Activity
- All Implemented Interfaces:
Serializable
,Cloneable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the activity.The name of the Auto Scaling group.getCause()
The reason the activity began.A friendly, more verbose description of the activity.The details about the activity.The end time of the activity.A value between 0 and 100 that indicates the progress of the activity.The start time of the activity.The current status of the activity.A friendly, more verbose description of the activity status.int
hashCode()
void
setActivityId
(String activityId) The ID of the activity.void
setAutoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group.void
The reason the activity began.void
setDescription
(String description) A friendly, more verbose description of the activity.void
setDetails
(String details) The details about the activity.void
setEndTime
(Date endTime) The end time of the activity.void
setProgress
(Integer progress) A value between 0 and 100 that indicates the progress of the activity.void
setStartTime
(Date startTime) The start time of the activity.void
setStatusCode
(ScalingActivityStatusCode statusCode) The current status of the activity.void
setStatusCode
(String statusCode) The current status of the activity.void
setStatusMessage
(String statusMessage) A friendly, more verbose description of the activity status.toString()
Returns a string representation of this object; useful for testing and debugging.withActivityId
(String activityId) The ID of the activity.withAutoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group.The reason the activity began.withDescription
(String description) A friendly, more verbose description of the activity.withDetails
(String details) The details about the activity.withEndTime
(Date endTime) The end time of the activity.withProgress
(Integer progress) A value between 0 and 100 that indicates the progress of the activity.withStartTime
(Date startTime) The start time of the activity.withStatusCode
(ScalingActivityStatusCode statusCode) The current status of the activity.withStatusCode
(String statusCode) The current status of the activity.withStatusMessage
(String statusMessage) A friendly, more verbose description of the activity status.
-
Constructor Details
-
Activity
public Activity()
-
-
Method Details
-
setActivityId
The ID of the activity.
- Parameters:
activityId
- The ID of the activity.
-
getActivityId
The ID of the activity.
- Returns:
- The ID of the activity.
-
withActivityId
The ID of the activity.
- Parameters:
activityId
- The ID of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroupName
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group.
-
getAutoScalingGroupName
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
withAutoScalingGroupName
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A friendly, more verbose description of the activity.
- Parameters:
description
- A friendly, more verbose description of the activity.
-
getDescription
A friendly, more verbose description of the activity.
- Returns:
- A friendly, more verbose description of the activity.
-
withDescription
A friendly, more verbose description of the activity.
- Parameters:
description
- A friendly, more verbose description of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCause
The reason the activity began.
- Parameters:
cause
- The reason the activity began.
-
getCause
The reason the activity began.
- Returns:
- The reason the activity began.
-
withCause
The reason the activity began.
- Parameters:
cause
- The reason the activity began.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
The start time of the activity.
- Parameters:
startTime
- The start time of the activity.
-
getStartTime
The start time of the activity.
- Returns:
- The start time of the activity.
-
withStartTime
The start time of the activity.
- Parameters:
startTime
- The start time of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
The end time of the activity.
- Parameters:
endTime
- The end time of the activity.
-
getEndTime
The end time of the activity.
- Returns:
- The end time of the activity.
-
withEndTime
The end time of the activity.
- Parameters:
endTime
- The end time of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusCode
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- See Also:
-
getStatusCode
The current status of the activity.
- Returns:
- The current status of the activity.
- See Also:
-
withStatusCode
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatusCode
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- See Also:
-
withStatusCode
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatusMessage
A friendly, more verbose description of the activity status.
- Parameters:
statusMessage
- A friendly, more verbose description of the activity status.
-
getStatusMessage
A friendly, more verbose description of the activity status.
- Returns:
- A friendly, more verbose description of the activity status.
-
withStatusMessage
A friendly, more verbose description of the activity status.
- Parameters:
statusMessage
- A friendly, more verbose description of the activity status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgress
A value between 0 and 100 that indicates the progress of the activity.
- Parameters:
progress
- A value between 0 and 100 that indicates the progress of the activity.
-
getProgress
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.
-
withProgress
A value between 0 and 100 that indicates the progress of the activity.
- Parameters:
progress
- A value between 0 and 100 that indicates the progress of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetails
The details about the activity.
- Parameters:
details
- The details about the activity.
-
getDetails
The details about the activity.
- Returns:
- The details about the activity.
-
withDetails
The details about the activity.
- Parameters:
details
- The details about the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-