Class Activity
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.Activity
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Activity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setActivityId
public void setActivityId(String activityId)
The ID of the activity.
- Parameters:
activityId
- The ID of the activity.
-
getActivityId
public String getActivityId()
The ID of the activity.
- Returns:
- The ID of the activity.
-
withActivityId
public Activity withActivityId(String activityId)
The ID of the activity.
- Parameters:
activityId
- The ID of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroupName
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group.
-
getAutoScalingGroupName
public String getAutoScalingGroupName()
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
withAutoScalingGroupName
public Activity withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A friendly, more verbose description of the activity.
- Parameters:
description
- A friendly, more verbose description of the activity.
-
getDescription
public String getDescription()
A friendly, more verbose description of the activity.
- Returns:
- A friendly, more verbose description of the activity.
-
withDescription
public Activity withDescription(String description)
A friendly, more verbose description of the activity.
- Parameters:
description
- A friendly, more verbose description of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCause
public void setCause(String cause)
The reason the activity began.
- Parameters:
cause
- The reason the activity began.
-
getCause
public String getCause()
The reason the activity began.
- Returns:
- The reason the activity began.
-
withCause
public Activity withCause(String cause)
The reason the activity began.
- Parameters:
cause
- The reason the activity began.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
public void setStartTime(Date startTime)
The start time of the activity.
- Parameters:
startTime
- The start time of the activity.
-
getStartTime
public Date getStartTime()
The start time of the activity.
- Returns:
- The start time of the activity.
-
withStartTime
public Activity withStartTime(Date startTime)
The start time of the activity.
- Parameters:
startTime
- The start time of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
public void setEndTime(Date endTime)
The end time of the activity.
- Parameters:
endTime
- The end time of the activity.
-
getEndTime
public Date getEndTime()
The end time of the activity.
- Returns:
- The end time of the activity.
-
withEndTime
public Activity withEndTime(Date endTime)
The end time of the activity.
- Parameters:
endTime
- The end time of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusCode
public void setStatusCode(String statusCode)
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- See Also:
ScalingActivityStatusCode
-
getStatusCode
public String getStatusCode()
The current status of the activity.
- Returns:
- The current status of the activity.
- See Also:
ScalingActivityStatusCode
-
withStatusCode
public Activity withStatusCode(String statusCode)
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScalingActivityStatusCode
-
setStatusCode
public void setStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- See Also:
ScalingActivityStatusCode
-
withStatusCode
public Activity withStatusCode(ScalingActivityStatusCode statusCode)
The current status of the activity.
- Parameters:
statusCode
- The current status of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScalingActivityStatusCode
-
setStatusMessage
public void setStatusMessage(String statusMessage)
A friendly, more verbose description of the activity status.
- Parameters:
statusMessage
- A friendly, more verbose description of the activity status.
-
getStatusMessage
public String getStatusMessage()
A friendly, more verbose description of the activity status.
- Returns:
- A friendly, more verbose description of the activity status.
-
withStatusMessage
public Activity withStatusMessage(String statusMessage)
A friendly, more verbose description of the activity status.
- Parameters:
statusMessage
- A friendly, more verbose description of the activity status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgress
public void setProgress(Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
- Parameters:
progress
- A value between 0 and 100 that indicates the progress of the activity.
-
getProgress
public Integer getProgress()
A value between 0 and 100 that indicates the progress of the activity.
- Returns:
- A value between 0 and 100 that indicates the progress of the activity.
-
withProgress
public Activity withProgress(Integer progress)
A value between 0 and 100 that indicates the progress of the activity.
- Parameters:
progress
- A value between 0 and 100 that indicates the progress of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetails
public void setDetails(String details)
The details about the activity.
- Parameters:
details
- The details about the activity.
-
getDetails
public String getDetails()
The details about the activity.
- Returns:
- The details about the activity.
-
withDetails
public Activity withDetails(String details)
The details about the activity.
- Parameters:
details
- The details about the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-