public class Activity extends Object implements Serializable
A scaling Activity is a long-running process that represents a change to your AutoScalingGroup, such as changing the size of the group. It can also be a process to replace an instance, or a process to perform any other long-running operations supported by the API.
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getActivityId()
Specifies the ID of the activity.
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getCause()
Contains the reason the activity was begun.
|
String |
getDescription()
Contains a friendly, more verbose description of the scaling activity.
|
String |
getDetails()
Contains details of the scaling activity.
|
Date |
getEndTime()
Provides the end time of this activity.
|
Integer |
getProgress()
Specifies a value between 0 and 100 that indicates the progress of the
activity.
|
Date |
getStartTime()
Provides the start time of this activity.
|
String |
getStatusCode()
Contains the current status of the activity.
|
String |
getStatusMessage()
Contains a friendly, more verbose description of the activity status.
|
int |
hashCode() |
void |
setActivityId(String activityId)
Specifies the ID of the activity.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setCause(String cause)
Contains the reason the activity was begun.
|
void |
setDescription(String description)
Contains a friendly, more verbose description of the scaling activity.
|
void |
setDetails(String details)
Contains details of the scaling activity.
|
void |
setEndTime(Date endTime)
Provides the end time of this activity.
|
void |
setProgress(Integer progress)
Specifies a value between 0 and 100 that indicates the progress of the
activity.
|
void |
setStartTime(Date startTime)
Provides the start time of this activity.
|
void |
setStatusCode(ScalingActivityStatusCode statusCode)
Contains the current status of the activity.
|
void |
setStatusCode(String statusCode)
Contains the current status of the activity.
|
void |
setStatusMessage(String statusMessage)
Contains 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)
Specifies the ID of the activity.
|
Activity |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
Activity |
withCause(String cause)
Contains the reason the activity was begun.
|
Activity |
withDescription(String description)
Contains a friendly, more verbose description of the scaling activity.
|
Activity |
withDetails(String details)
Contains details of the scaling activity.
|
Activity |
withEndTime(Date endTime)
Provides the end time of this activity.
|
Activity |
withProgress(Integer progress)
Specifies a value between 0 and 100 that indicates the progress of the
activity.
|
Activity |
withStartTime(Date startTime)
Provides the start time of this activity.
|
Activity |
withStatusCode(ScalingActivityStatusCode statusCode)
Contains the current status of the activity.
|
Activity |
withStatusCode(String statusCode)
Contains the current status of the activity.
|
Activity |
withStatusMessage(String statusMessage)
Contains 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
- Specifies 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
- Specifies 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
- Contains a friendly, more verbose description of the scaling 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
- Contains a friendly, more verbose description of the scaling 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
- Contains the reason the activity was begun.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
- Contains the reason the activity was begun.public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- Provides the start time of this activity.public Activity withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- Provides the start time of this activity.public Date getEndTime()
public void setEndTime(Date endTime)
endTime
- Provides the end time of this activity.public Activity withEndTime(Date endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- Provides the end time of this activity.public String getStatusCode()
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, Successful, Failed, Cancelled
ScalingActivityStatusCode
public void setStatusCode(String statusCode)
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, Successful, Failed, Cancelled
statusCode
- Contains 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, Successful, Failed, Cancelled
statusCode
- Contains the current status of the activity.ScalingActivityStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, WaitingForELBConnectionDraining, MidLifecycleAction, Successful, Failed, Cancelled
statusCode
- Contains 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, Successful, Failed, Cancelled
statusCode
- Contains 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
- Contains 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
- Contains a friendly, more verbose description of the activity status.public Integer getProgress()
public void setProgress(Integer progress)
progress
- Specifies 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
- Specifies 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
- Contains details of the scaling 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
- Contains details of the scaling activity.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.