com.amazonaws.services.autoscaling.model
Class Activity

java.lang.Object
  extended by com.amazonaws.services.autoscaling.model.Activity

public class Activity
extends Object

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 Summary
Activity()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Activity

public Activity()
Method Detail

getActivityId

public String getActivityId()
Specifies the ID of the activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Specifies the ID of the activity.

setActivityId

public void setActivityId(String activityId)
Specifies the ID of the activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
activityId - Specifies the ID of the activity.

withActivityId

public Activity withActivityId(String activityId)
Specifies the ID of the activity.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
activityId - Specifies the ID of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoScalingGroupName

public String getAutoScalingGroupName()
The name of the Auto Scaling group.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name of the Auto Scaling group.

setAutoScalingGroupName

public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.

withAutoScalingGroupName

public Activity withAutoScalingGroupName(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]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Contains a friendly, more verbose description of the scaling activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Contains a friendly, more verbose description of the scaling activity.

setDescription

public void setDescription(String description)
Contains a friendly, more verbose description of the scaling activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
description - Contains a friendly, more verbose description of the scaling activity.

withDescription

public Activity withDescription(String description)
Contains a friendly, more verbose description of the scaling activity.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
description - Contains a friendly, more verbose description of the scaling activity.
Returns:
A reference to this updated object so that method calls can be chained together.

getCause

public String getCause()
Contains the reason the activity was begun.

Constraints:
Length: 1 - 1023
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Contains the reason the activity was begun.

setCause

public void setCause(String cause)
Contains the reason the activity was begun.

Constraints:
Length: 1 - 1023
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
cause - Contains the reason the activity was begun.

withCause

public Activity withCause(String cause)
Contains the reason the activity was begun.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1023
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
cause - Contains the reason the activity was begun.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartTime

public Date getStartTime()
Provides the start time of this activity.

Returns:
Provides the start time of this activity.

setStartTime

public void setStartTime(Date startTime)
Provides the start time of this activity.

Parameters:
startTime - Provides the start time of this activity.

withStartTime

public Activity withStartTime(Date startTime)
Provides the start time of this activity.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTime - Provides the start time of this activity.
Returns:
A reference to this updated object so that method calls can be chained together.

getEndTime

public Date getEndTime()
Provides the end time of this activity.

Returns:
Provides the end time of this activity.

setEndTime

public void setEndTime(Date endTime)
Provides the end time of this activity.

Parameters:
endTime - Provides the end time of this activity.

withEndTime

public Activity withEndTime(Date endTime)
Provides the end time of this activity.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endTime - Provides the end time of this activity.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatusCode

public String getStatusCode()
Contains the current status of the activity.

Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, Successful, Failed, Cancelled

Returns:
Contains the current status of the activity.
See Also:
ScalingActivityStatusCode

setStatusCode

public void setStatusCode(String statusCode)
Contains the current status of the activity.

Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, Successful, Failed, Cancelled

Parameters:
statusCode - Contains the current status of the activity.
See Also:
ScalingActivityStatusCode

withStatusCode

public Activity withStatusCode(String statusCode)
Contains the current status of the activity.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, Successful, Failed, Cancelled

Parameters:
statusCode - Contains the current status of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ScalingActivityStatusCode

setStatusCode

public void setStatusCode(ScalingActivityStatusCode statusCode)
Contains the current status of the activity.

Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, Successful, Failed, Cancelled

Parameters:
statusCode - Contains the current status of the activity.
See Also:
ScalingActivityStatusCode

withStatusCode

public Activity withStatusCode(ScalingActivityStatusCode statusCode)
Contains the current status of the activity.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: WaitingForSpotInstanceRequestId, WaitingForSpotInstanceId, WaitingForInstanceId, PreInService, InProgress, Successful, Failed, Cancelled

Parameters:
statusCode - Contains the current status of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ScalingActivityStatusCode

getStatusMessage

public String getStatusMessage()
Contains a friendly, more verbose description of the activity status.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Contains a friendly, more verbose description of the activity status.

setStatusMessage

public void setStatusMessage(String statusMessage)
Contains a friendly, more verbose description of the activity status.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
statusMessage - Contains a friendly, more verbose description of the activity status.

withStatusMessage

public Activity withStatusMessage(String statusMessage)
Contains 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]*

Parameters:
statusMessage - Contains a friendly, more verbose description of the activity status.
Returns:
A reference to this updated object so that method calls can be chained together.

getProgress

public Integer getProgress()
Specifies a value between 0 and 100 that indicates the progress of the activity.

Returns:
Specifies a value between 0 and 100 that indicates the progress of the activity.

setProgress

public void setProgress(Integer progress)
Specifies a value between 0 and 100 that indicates the progress of the activity.

Parameters:
progress - Specifies a value between 0 and 100 that indicates the progress of the activity.

withProgress

public Activity withProgress(Integer progress)
Specifies 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.

Parameters:
progress - Specifies a value between 0 and 100 that indicates the progress of the activity.
Returns:
A reference to this updated object so that method calls can be chained together.

getDetails

public String getDetails()
Contains details of the scaling activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Contains details of the scaling activity.

setDetails

public void setDetails(String details)
Contains details of the scaling activity.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
details - Contains details of the scaling activity.

withDetails

public Activity withDetails(String details)
Contains details of the scaling activity.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
details - Contains details of the scaling activity.
Returns:
A reference to this updated 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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.