com.amazonaws.services.autoscaling.model
Class PutScheduledUpdateGroupActionRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.PutScheduledUpdateGroupActionRequest

public class PutScheduledUpdateGroupActionRequest
extends AmazonWebServiceRequest

Container for the parameters to the PutScheduledUpdateGroupAction operation.

Creates a scheduled scaling action for a Auto Scaling group. If you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.

See Also:
AmazonAutoScaling.putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest)

Constructor Summary
PutScheduledUpdateGroupActionRequest()
           
 
Method Summary
 String getAutoScalingGroupName()
          The name or ARN of the Auto Scaling Group.
 Integer getDesiredCapacity()
          The number of EC2 instances that should be running in the group.
 Integer getMaxSize()
          The maximum size for the Auto Scaling group.
 Integer getMinSize()
          The minimum size for the new Auto Scaling group.
 String getScheduledActionName()
          The name of this scaling action.
 Date getTime()
          The time for this action to start.
 void setAutoScalingGroupName(String autoScalingGroupName)
          The name or ARN of the Auto Scaling Group.
 void setDesiredCapacity(Integer desiredCapacity)
          The number of EC2 instances that should be running in the group.
 void setMaxSize(Integer maxSize)
          The maximum size for the Auto Scaling group.
 void setMinSize(Integer minSize)
          The minimum size for the new Auto Scaling group.
 void setScheduledActionName(String scheduledActionName)
          The name of this scaling action.
 void setTime(Date time)
          The time for this action to start.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PutScheduledUpdateGroupActionRequest withAutoScalingGroupName(String autoScalingGroupName)
          The name or ARN of the Auto Scaling Group.
 PutScheduledUpdateGroupActionRequest withDesiredCapacity(Integer desiredCapacity)
          The number of EC2 instances that should be running in the group.
 PutScheduledUpdateGroupActionRequest withMaxSize(Integer maxSize)
          The maximum size for the Auto Scaling group.
 PutScheduledUpdateGroupActionRequest withMinSize(Integer minSize)
          The minimum size for the new Auto Scaling group.
 PutScheduledUpdateGroupActionRequest withScheduledActionName(String scheduledActionName)
          The name of this scaling action.
 PutScheduledUpdateGroupActionRequest withTime(Date time)
          The time for this action to start.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PutScheduledUpdateGroupActionRequest

public PutScheduledUpdateGroupActionRequest()
Method Detail

getAutoScalingGroupName

public String getAutoScalingGroupName()
The name or ARN of the Auto Scaling Group.

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name or ARN of the Auto Scaling Group.

setAutoScalingGroupName

public void setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling Group.

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

Parameters:
autoScalingGroupName - The name or ARN of the Auto Scaling Group.

withAutoScalingGroupName

public PutScheduledUpdateGroupActionRequest withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling Group.

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

Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*

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

getScheduledActionName

public String getScheduledActionName()
The name of this scaling action.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of this scaling action.

setScheduledActionName

public void setScheduledActionName(String scheduledActionName)
The name of this scaling action.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
scheduledActionName - The name of this scaling action.

withScheduledActionName

public PutScheduledUpdateGroupActionRequest withScheduledActionName(String scheduledActionName)
The name of this scaling action.

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
scheduledActionName - The name of this scaling action.
Returns:
A reference to this updated object so that method calls can be chained together.

getTime

public Date getTime()
The time for this action to start.

Returns:
The time for this action to start.

setTime

public void setTime(Date time)
The time for this action to start.

Parameters:
time - The time for this action to start.

withTime

public PutScheduledUpdateGroupActionRequest withTime(Date time)
The time for this action to start.

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

Parameters:
time - The time for this action to start.
Returns:
A reference to this updated object so that method calls can be chained together.

getMinSize

public Integer getMinSize()
The minimum size for the new Auto Scaling group.

Returns:
The minimum size for the new Auto Scaling group.

setMinSize

public void setMinSize(Integer minSize)
The minimum size for the new Auto Scaling group.

Parameters:
minSize - The minimum size for the new Auto Scaling group.

withMinSize

public PutScheduledUpdateGroupActionRequest withMinSize(Integer minSize)
The minimum size for the new Auto Scaling group.

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

Parameters:
minSize - The minimum size for the new Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getMaxSize

public Integer getMaxSize()
The maximum size for the Auto Scaling group.

Returns:
The maximum size for the Auto Scaling group.

setMaxSize

public void setMaxSize(Integer maxSize)
The maximum size for the Auto Scaling group.

Parameters:
maxSize - The maximum size for the Auto Scaling group.

withMaxSize

public PutScheduledUpdateGroupActionRequest withMaxSize(Integer maxSize)
The maximum size for the Auto Scaling group.

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

Parameters:
maxSize - The maximum size for the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDesiredCapacity

public Integer getDesiredCapacity()
The number of EC2 instances that should be running in the group.

Returns:
The number of EC2 instances that should be running in the group.

setDesiredCapacity

public void setDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.

Parameters:
desiredCapacity - The number of EC2 instances that should be running in the group.

withDesiredCapacity

public PutScheduledUpdateGroupActionRequest withDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.

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

Parameters:
desiredCapacity - The number of EC2 instances that should be running in the group.
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()


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