Class 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 Detail

      • Activity

        public Activity()
    • 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
      • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object