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 String getActivityId()
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setActivityId(String activityId)
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
activityId
- The ID of the activity.public Activity withActivityId(String activityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
activityId
- The ID of the activity.public String getAutoScalingGroupName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public Activity withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public String getDescription()
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setDescription(String description)
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
description
- A friendly, more verbose description of the activity.public Activity withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
description
- A friendly, more verbose description of the activity.public String getCause()
Constraints:
Length: 1 - 1023
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setCause(String cause)
Constraints:
Length: 1 - 1023
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
cause
- The reason the activity began.public Activity withCause(String cause)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1023
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
cause
- The reason the activity began.public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The start time of the activity.public Activity withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The start time of the activity.public Date getEndTime()
public void setEndTime(Date endTime)
endTime
- The end time of the activity.public Activity withEndTime(Date endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- The end time of the activity.public String getStatusCode()
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, WaitingForInstanceWarmup, Successful, Failed, Cancelled
ScalingActivityStatusCode
public void setStatusCode(String statusCode)
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.ScalingActivityStatusCode
public Activity withStatusCode(String statusCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.ScalingActivityStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.ScalingActivityStatusCode
public Activity withStatusCode(ScalingActivityStatusCode statusCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.ScalingActivityStatusCode
public String getStatusMessage()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setStatusMessage(String statusMessage)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
statusMessage
- A friendly, more verbose description of the activity status.public Activity withStatusMessage(String statusMessage)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
statusMessage
- A friendly, more verbose description of the activity status.public Integer getProgress()
public void setProgress(Integer progress)
progress
- A value between 0 and 100 that indicates the progress of the activity.public Activity withProgress(Integer progress)
Returns a reference to this object so that method calls can be chained together.
progress
- A value between 0 and 100 that indicates the progress of the activity.public String getDetails()
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setDetails(String details)
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
details
- The details about the activity.public Activity withDetails(String details)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
details
- The details about the activity.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.