public class PutScheduledUpdateGroupActionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
For more information, see Scheduled Scaling in the Auto Scaling Developer Guide.
Constructor and Description |
---|
PutScheduledUpdateGroupActionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
java.lang.Integer |
getDesiredCapacity()
The number of EC2 instances that should be running in the group.
|
java.util.Date |
getEndTime()
The time for this action to end.
|
java.lang.Integer |
getMaxSize()
The maximum size for the Auto Scaling group.
|
java.lang.Integer |
getMinSize()
The minimum size for the Auto Scaling group.
|
java.lang.String |
getRecurrence()
The time when recurring future actions will start.
|
java.lang.String |
getScheduledActionName()
The name of this scaling action.
|
java.util.Date |
getStartTime()
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example,
2014-06-01T00:00:00Z ). |
java.util.Date |
getTime()
This parameter is deprecated.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
void |
setEndTime(java.util.Date endTime)
The time for this action to end.
|
void |
setMaxSize(java.lang.Integer maxSize)
The maximum size for the Auto Scaling group.
|
void |
setMinSize(java.lang.Integer minSize)
The minimum size for the Auto Scaling group.
|
void |
setRecurrence(java.lang.String recurrence)
The time when recurring future actions will start.
|
void |
setScheduledActionName(java.lang.String scheduledActionName)
The name of this scaling action.
|
void |
setStartTime(java.util.Date startTime)
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example,
2014-06-01T00:00:00Z ). |
void |
setTime(java.util.Date time)
This parameter is deprecated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutScheduledUpdateGroupActionRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
PutScheduledUpdateGroupActionRequest |
withEndTime(java.util.Date endTime)
The time for this action to end.
|
PutScheduledUpdateGroupActionRequest |
withMaxSize(java.lang.Integer maxSize)
The maximum size for the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withMinSize(java.lang.Integer minSize)
The minimum size for the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withRecurrence(java.lang.String recurrence)
The time when recurring future actions will start.
|
PutScheduledUpdateGroupActionRequest |
withScheduledActionName(java.lang.String scheduledActionName)
The name of this scaling action.
|
PutScheduledUpdateGroupActionRequest |
withStartTime(java.util.Date startTime)
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example,
2014-06-01T00:00:00Z ). |
PutScheduledUpdateGroupActionRequest |
withTime(java.util.Date time)
This parameter is deprecated.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PutScheduledUpdateGroupActionRequest()
public java.lang.String getAutoScalingGroupName()
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name or Amazon Resource Name (ARN) of the Auto Scaling group.
public PutScheduledUpdateGroupActionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name or Amazon Resource Name (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]*
autoScalingGroupName
- The name or Amazon Resource Name (ARN) of the Auto Scaling group.
public java.lang.String getScheduledActionName()
The name of this scaling action.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The name of this scaling action.
public void setScheduledActionName(java.lang.String scheduledActionName)
The name of this scaling action.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
scheduledActionName
- The name of this scaling action.
public PutScheduledUpdateGroupActionRequest withScheduledActionName(java.lang.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]*
scheduledActionName
- The name of this scaling action.
public java.util.Date getTime()
This parameter is deprecated.
This parameter is deprecated.
public void setTime(java.util.Date time)
This parameter is deprecated.
time
- This parameter is deprecated.
public PutScheduledUpdateGroupActionRequest withTime(java.util.Date time)
This parameter is deprecated.
Returns a reference to this object so that method calls can be chained together.
time
- This parameter is deprecated.
public java.util.Date getStartTime()
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example, 2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action starts and stops.
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ"
format in UTC/GMT only (for example,
2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are
specified with Recurrence
, they form the boundaries
of when the recurring action starts and stops.
public void setStartTime(java.util.Date startTime)
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example, 2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action starts and stops.
startTime
-
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ"
format in UTC/GMT only (for example,
2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are
specified with Recurrence
, they form the
boundaries of when the recurring action starts and stops.
public PutScheduledUpdateGroupActionRequest withStartTime(java.util.Date startTime)
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in
UTC/GMT only (for example, 2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action starts and stops.
Returns a reference to this object so that method calls can be chained together.
startTime
-
The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ"
format in UTC/GMT only (for example,
2014-06-01T00:00:00Z
).
If you try to schedule your action in the past, Auto Scaling returns an error message.
When StartTime
and EndTime
are
specified with Recurrence
, they form the
boundaries of when the recurring action starts and stops.
public java.util.Date getEndTime()
The time for this action to end.
The time for this action to end.
public void setEndTime(java.util.Date endTime)
The time for this action to end.
endTime
- The time for this action to end.
public PutScheduledUpdateGroupActionRequest withEndTime(java.util.Date endTime)
The time for this action to end.
Returns a reference to this object so that method calls can be chained together.
endTime
- The time for this action to end.
public java.lang.String getRecurrence()
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action will start and stop.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are
specified with Recurrence
, they form the boundaries
of when the recurring action will start and stop.
public void setRecurrence(java.lang.String recurrence)
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action will start and stop.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
recurrence
- The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are
specified with Recurrence
, they form the
boundaries of when the recurring action will start and stop.
public PutScheduledUpdateGroupActionRequest withRecurrence(java.lang.String recurrence)
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are specified with
Recurrence
, they form the boundaries of when the recurring
action will start and stop.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
recurrence
- The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. For more information, see Cron in Wikipedia.
When StartTime
and EndTime
are
specified with Recurrence
, they form the
boundaries of when the recurring action will start and stop.
public java.lang.Integer getMinSize()
The minimum size for the Auto Scaling group.
The minimum size for the Auto Scaling group.
public void setMinSize(java.lang.Integer minSize)
The minimum size for the Auto Scaling group.
minSize
- The minimum size for the Auto Scaling group.
public PutScheduledUpdateGroupActionRequest withMinSize(java.lang.Integer minSize)
The minimum size for the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
minSize
- The minimum size for the Auto Scaling group.
public java.lang.Integer getMaxSize()
The maximum size for the Auto Scaling group.
The maximum size for the Auto Scaling group.
public void setMaxSize(java.lang.Integer maxSize)
The maximum size for the Auto Scaling group.
maxSize
- The maximum size for the Auto Scaling group.
public PutScheduledUpdateGroupActionRequest withMaxSize(java.lang.Integer maxSize)
The maximum size for the Auto Scaling group.
Returns a reference to this object so that method calls can be chained together.
maxSize
- The maximum size for the Auto Scaling group.
public java.lang.Integer getDesiredCapacity()
The number of EC2 instances that should be running in the group.
The number of EC2 instances that should be running in the group.
public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
desiredCapacity
- The number of EC2 instances that should be running in the group.
public PutScheduledUpdateGroupActionRequest withDesiredCapacity(java.lang.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.
desiredCapacity
- The number of EC2 instances that should be running in the group.
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 © 2010 Amazon Web Services, Inc. All Rights Reserved.