@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 |
getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getAutoScalingGroupState()
The state of the Auto Scaling group, which is either
InService or Deleted . |
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 |
setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setAutoScalingGroupState(String autoScalingGroupState)
The state of the Auto Scaling group, which is either
InService or Deleted . |
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.
|
Activity |
withActivityId(String activityId)
The ID of the activity.
|
Activity |
withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
Activity |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
Activity |
withAutoScalingGroupState(String autoScalingGroupState)
The state of the Auto Scaling group, which is either
InService or Deleted . |
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.ScalingActivityStatusCode
public String getStatusCode()
The current status of the activity.
ScalingActivityStatusCode
public Activity withStatusCode(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(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 void setAutoScalingGroupState(String autoScalingGroupState)
The state of the Auto Scaling group, which is either InService
or Deleted
.
autoScalingGroupState
- The state of the Auto Scaling group, which is either InService
or Deleted
.public String getAutoScalingGroupState()
The state of the Auto Scaling group, which is either InService
or Deleted
.
InService
or Deleted
.public Activity withAutoScalingGroupState(String autoScalingGroupState)
The state of the Auto Scaling group, which is either InService
or Deleted
.
autoScalingGroupState
- The state of the Auto Scaling group, which is either InService
or Deleted
.public void setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public String getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public Activity withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public String toString()
toString
in class Object
Object.toString()