public class Activity
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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.
|
public java.lang.String getActivityId()
The ID of the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
The ID of the activity.
public void setActivityId(java.lang.String activityId)
The ID of the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
activityId
- The ID of the activity.
public Activity withActivityId(java.lang.String activityId)
The ID of the activity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
activityId
- The ID of the activity.
public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The name of the Auto Scaling group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.
public Activity withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.
public java.lang.String getDescription()
A friendly, more verbose description of the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
A friendly, more verbose description of the activity.
public void setDescription(java.lang.String description)
A friendly, more verbose description of the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
description
- A friendly, more verbose description of the activity.
public Activity withDescription(java.lang.String description)
A friendly, more verbose description of the activity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
description
- A friendly, more verbose description of the activity.
public java.lang.String getCause()
The reason the activity began.
Constraints:
Length: 1 - 1023
Pattern: [ --�𐀀-\r\n\t]*
The reason the activity began.
public void setCause(java.lang.String cause)
The reason the activity began.
Constraints:
Length: 1 - 1023
Pattern: [ --�𐀀-\r\n\t]*
cause
- The reason the activity began.
public Activity withCause(java.lang.String cause)
The reason the activity began.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1023
Pattern: [ --�𐀀-\r\n\t]*
cause
- The reason the activity began.
public java.util.Date getStartTime()
The start time of the activity.
The start time of the activity.
public void setStartTime(java.util.Date startTime)
The start time of the activity.
startTime
- The start time of the activity.
public Activity withStartTime(java.util.Date startTime)
The start time of the activity.
Returns a reference to this object so that method calls can be chained together.
startTime
- The start time of the activity.
public java.util.Date getEndTime()
The end time of the activity.
The end 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 Activity withEndTime(java.util.Date endTime)
The end time of the activity.
Returns a reference to this object so that method calls can be chained together.
endTime
- The end time of the activity.
public java.lang.String getStatusCode()
The current status of the activity.
Constraints:
Allowed Values: PendingSpotBidPlacement,
WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId,
WaitingForInstanceId, PreInService, InProgress,
WaitingForELBConnectionDraining, MidLifecycleAction,
WaitingForInstanceWarmup, Successful, Failed, Cancelled
The current status of the activity.
ScalingActivityStatusCode
public void setStatusCode(java.lang.String statusCode)
The current status of the activity.
Constraints:
Allowed Values: PendingSpotBidPlacement,
WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId,
WaitingForInstanceId, PreInService, InProgress,
WaitingForELBConnectionDraining, MidLifecycleAction,
WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.
ScalingActivityStatusCode
public Activity withStatusCode(java.lang.String statusCode)
The current status of the activity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PendingSpotBidPlacement,
WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId,
WaitingForInstanceId, PreInService, InProgress,
WaitingForELBConnectionDraining, MidLifecycleAction,
WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.
ScalingActivityStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
Constraints:
Allowed Values: PendingSpotBidPlacement,
WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId,
WaitingForInstanceId, PreInService, InProgress,
WaitingForELBConnectionDraining, MidLifecycleAction,
WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.
ScalingActivityStatusCode
public Activity withStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PendingSpotBidPlacement,
WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId,
WaitingForInstanceId, PreInService, InProgress,
WaitingForELBConnectionDraining, MidLifecycleAction,
WaitingForInstanceWarmup, Successful, Failed, Cancelled
statusCode
- The current status of the activity.
ScalingActivityStatusCode
public java.lang.String getStatusMessage()
A friendly, more verbose description of the activity status.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
A friendly, more verbose description of the activity status.
public void setStatusMessage(java.lang.String statusMessage)
A friendly, more verbose description of the activity status.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
statusMessage
- 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
statusMessage
- A friendly, more verbose description of the activity status.
public java.lang.Integer getProgress()
A value between 0 and 100 that indicates the progress of the activity.
A value between 0 and 100 that indicates the progress of the activity.
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 Activity withProgress(java.lang.Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
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 java.lang.String getDetails()
The details about the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
The details about the activity.
public void setDetails(java.lang.String details)
The details about the activity.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
details
- The details about the activity.
public Activity withDetails(java.lang.String details)
The details about the activity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
details
- The details about the activity.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.