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