public class Activity
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
activityId
The ID of the activity.
|
private java.lang.String |
autoScalingGroupName
The name of the Auto Scaling group.
|
private java.lang.String |
cause
The reason the activity began.
|
private java.lang.String |
description
A friendly, more verbose description of the activity.
|
private java.lang.String |
details
The details about the activity.
|
private java.util.Date |
endTime
The end time of the activity.
|
private java.lang.Integer |
progress
A value between 0 and 100 that indicates the progress of the activity.
|
private java.util.Date |
startTime
The start time of the activity.
|
private java.lang.String |
statusCode
The current status of the activity.
|
private java.lang.String |
statusMessage
A friendly, more verbose description of the activity status.
|
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
Activity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActivityId()
The ID of the activity.
|
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
java.lang.String |
getCause()
The reason the activity began.
|
java.lang.String |
getDescription()
A friendly, more verbose description of the activity.
|
java.lang.String |
getDetails()
The details about the activity.
|
java.util.Date |
getEndTime()
The end time of the activity.
|
java.lang.Integer |
getProgress()
A value between 0 and 100 that indicates the progress of the activity.
|
java.util.Date |
getStartTime()
The start time of the activity.
|
java.lang.String |
getStatusCode()
The current status of the activity.
|
java.lang.String |
getStatusMessage()
A friendly, more verbose description of the activity status.
|
int |
hashCode() |
void |
setActivityId(java.lang.String activityId)
The ID of the activity.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setCause(java.lang.String cause)
The reason the activity began.
|
void |
setDescription(java.lang.String description)
A friendly, more verbose description of the activity.
|
void |
setDetails(java.lang.String details)
The details about the activity.
|
void |
setEndTime(java.util.Date endTime)
The end time of the activity.
|
void |
setProgress(java.lang.Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
|
void |
setStartTime(java.util.Date startTime)
The start time of the activity.
|
void |
setStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
|
void |
setStatusCode(java.lang.String statusCode)
The current status of the activity.
|
void |
setStatusMessage(java.lang.String statusMessage)
A friendly, more verbose description of the activity status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Activity |
withActivityId(java.lang.String activityId)
The ID of the activity.
|
Activity |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
|
Activity |
withCause(java.lang.String cause)
The reason the activity began.
|
Activity |
withDescription(java.lang.String description)
A friendly, more verbose description of the activity.
|
Activity |
withDetails(java.lang.String details)
The details about the activity.
|
Activity |
withEndTime(java.util.Date endTime)
The end time of the activity.
|
Activity |
withProgress(java.lang.Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
|
Activity |
withStartTime(java.util.Date startTime)
The start time of the activity.
|
Activity |
withStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
|
Activity |
withStatusCode(java.lang.String statusCode)
The current status of the activity.
|
Activity |
withStatusMessage(java.lang.String statusMessage)
A friendly, more verbose description of the activity status.
|
private java.lang.String activityId
The ID of the activity.
private java.lang.String autoScalingGroupName
The name of the Auto Scaling group.
private java.lang.String description
A friendly, more verbose description of the activity.
private java.lang.String cause
The reason the activity began.
private java.util.Date startTime
The start time of the activity.
private java.util.Date endTime
The end time of the activity.
private java.lang.String statusCode
The current status of the activity.
private java.lang.String statusMessage
A friendly, more verbose description of the activity status.
private java.lang.Integer progress
A value between 0 and 100 that indicates the progress of the activity.
private java.lang.String details
The details about the activity.
public void setActivityId(java.lang.String activityId)
The ID of the activity.
activityId
- The ID of the activity.public java.lang.String getActivityId()
The ID of the activity.
public Activity withActivityId(java.lang.String activityId)
The ID of the activity.
activityId
- The ID of the activity.public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.
public Activity withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setDescription(java.lang.String description)
A friendly, more verbose description of the activity.
description
- A friendly, more verbose description of the activity.public java.lang.String getDescription()
A friendly, more verbose description of the activity.
public Activity withDescription(java.lang.String description)
A friendly, more verbose description of the activity.
description
- A friendly, more verbose description of the activity.public void setCause(java.lang.String cause)
The reason the activity began.
cause
- The reason the activity began.public java.lang.String getCause()
The reason the activity began.
public Activity withCause(java.lang.String cause)
The reason the activity began.
cause
- The reason the activity began.public void setStartTime(java.util.Date startTime)
The start time of the activity.
startTime
- The start time of the activity.public java.util.Date getStartTime()
The start time of the activity.
public Activity withStartTime(java.util.Date startTime)
The start time of the activity.
startTime
- The start time of the activity.public void setEndTime(java.util.Date endTime)
The end time of the activity.
endTime
- The end time of the activity.public java.util.Date getEndTime()
The end time of the activity.
public Activity withEndTime(java.util.Date endTime)
The end time of the activity.
endTime
- The end time of the activity.public void setStatusCode(java.lang.String statusCode)
The current status of the activity.
statusCode
- The current status of the activity.ScalingActivityStatusCode
public java.lang.String getStatusCode()
The current status of the activity.
ScalingActivityStatusCode
public Activity withStatusCode(java.lang.String statusCode)
The current status of the activity.
statusCode
- The current status of the activity.ScalingActivityStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
statusCode
- The current status of the activity.ScalingActivityStatusCode
public Activity withStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
statusCode
- The current status of the activity.ScalingActivityStatusCode
public void setStatusMessage(java.lang.String statusMessage)
A friendly, more verbose description of the activity status.
statusMessage
- A friendly, more verbose description of the activity status.public java.lang.String getStatusMessage()
A friendly, more verbose description of the activity status.
public Activity withStatusMessage(java.lang.String statusMessage)
A friendly, more verbose description of the activity status.
statusMessage
- A friendly, more verbose description of the activity status.public void setProgress(java.lang.Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
progress
- A value between 0 and 100 that indicates the progress of the
activity.public java.lang.Integer getProgress()
A value between 0 and 100 that indicates the progress of the activity.
public Activity withProgress(java.lang.Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
progress
- A value between 0 and 100 that indicates the progress of the
activity.public void setDetails(java.lang.String details)
The details about the activity.
details
- The details about the activity.public java.lang.String getDetails()
The details about the activity.
public Activity withDetails(java.lang.String details)
The details about the activity.
details
- The details about the activity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Activity clone()
clone
in class java.lang.Object