public class PutScheduledUpdateGroupActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutScheduledUpdateGroupAction operation
.
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 .
NOOP
Constructor and Description |
---|
PutScheduledUpdateGroupActionRequest() |
Modifier and Type | Method and Description |
---|---|
PutScheduledUpdateGroupActionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
Integer |
getDesiredCapacity()
The number of EC2 instances that should be running in the group.
|
Date |
getEndTime()
The time for this action to end.
|
Integer |
getMaxSize()
The maximum size for the Auto Scaling group.
|
Integer |
getMinSize()
The minimum size for the Auto Scaling group.
|
String |
getRecurrence()
The time when recurring future actions will start.
|
String |
getScheduledActionName()
The name of this scaling action.
|
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 ). |
Date |
getTime()
This parameter is deprecated; use
StartTime instead. |
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
void |
setEndTime(Date endTime)
The time for this action to end.
|
void |
setMaxSize(Integer maxSize)
The maximum size for the Auto Scaling group.
|
void |
setMinSize(Integer minSize)
The minimum size for the Auto Scaling group.
|
void |
setRecurrence(String recurrence)
The time when recurring future actions will start.
|
void |
setScheduledActionName(String scheduledActionName)
The name of this scaling action.
|
void |
setStartTime(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(Date time)
This parameter is deprecated; use
StartTime instead. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutScheduledUpdateGroupActionRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withDesiredCapacity(Integer desiredCapacity)
The number of EC2 instances that should be running in the group.
|
PutScheduledUpdateGroupActionRequest |
withEndTime(Date endTime)
The time for this action to end.
|
PutScheduledUpdateGroupActionRequest |
withMaxSize(Integer maxSize)
The maximum size for the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withMinSize(Integer minSize)
The minimum size for the Auto Scaling group.
|
PutScheduledUpdateGroupActionRequest |
withRecurrence(String recurrence)
The time when recurring future actions will start.
|
PutScheduledUpdateGroupActionRequest |
withScheduledActionName(String scheduledActionName)
The name of this scaling action.
|
PutScheduledUpdateGroupActionRequest |
withStartTime(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(Date time)
This parameter is deprecated; use
StartTime instead. |
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PutScheduledUpdateGroupActionRequest()
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name or Amazon Resource Name (ARN) of the Auto Scaling group.public PutScheduledUpdateGroupActionRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name or Amazon Resource Name (ARN) of the Auto Scaling group.public String getScheduledActionName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setScheduledActionName(String scheduledActionName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
scheduledActionName
- The name of this scaling action.public PutScheduledUpdateGroupActionRequest withScheduledActionName(String scheduledActionName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
scheduledActionName
- The name of this scaling action.public Date getTime()
StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
public void setTime(Date time)
StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
time
- This parameter is deprecated; use StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
public PutScheduledUpdateGroupActionRequest withTime(Date time)
StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
Returns a reference to this object so that method calls can be chained together.
time
- This parameter is deprecated; use StartTime
instead.
The time for this action to start. If both Time
and
StartTime
are specified, their values must be identical.
public Date getStartTime()
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.
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(Date startTime)
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(Date startTime)
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 Date getEndTime()
public void setEndTime(Date endTime)
endTime
- The time for this action to end.public PutScheduledUpdateGroupActionRequest withEndTime(Date endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- The time for this action to end.public String getRecurrence()
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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
When StartTime
and EndTime
are specified with Recurrence
, they form the boundaries
of when the recurring action will start and stop.
public void setRecurrence(String recurrence)
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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\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(String recurrence)
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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\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 Integer getMinSize()
public void setMinSize(Integer minSize)
minSize
- The minimum size for the Auto Scaling group.public PutScheduledUpdateGroupActionRequest withMinSize(Integer minSize)
Returns a reference to this object so that method calls can be chained together.
minSize
- The minimum size for the Auto Scaling group.public Integer getMaxSize()
public void setMaxSize(Integer maxSize)
maxSize
- The maximum size for the Auto Scaling group.public PutScheduledUpdateGroupActionRequest withMaxSize(Integer maxSize)
Returns a reference to this object so that method calls can be chained together.
maxSize
- The maximum size for the Auto Scaling group.public Integer getDesiredCapacity()
public void setDesiredCapacity(Integer desiredCapacity)
desiredCapacity
- The number of EC2 instances that should be running in the group.public PutScheduledUpdateGroupActionRequest withDesiredCapacity(Integer desiredCapacity)
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 String toString()
toString
in class Object
Object.toString()
public PutScheduledUpdateGroupActionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.