@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyScheduledActionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Describes a scheduled action. You can use a scheduled action to trigger some Amazon Redshift API operations on a schedule. For information about which API operations can be scheduled, see ScheduledActionType.
Constructor and Description |
---|
ModifyScheduledActionResult() |
Modifier and Type | Method and Description |
---|---|
ModifyScheduledActionResult |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The end time in UTC when the schedule is no longer active.
|
String |
getIamRole()
The IAM role to assume to run the scheduled action.
|
List<Date> |
getNextInvocations()
List of times when the scheduled action will run.
|
String |
getSchedule()
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
|
String |
getScheduledActionDescription()
The description of the scheduled action.
|
String |
getScheduledActionName()
The name of the scheduled action.
|
Date |
getStartTime()
The start time in UTC when the schedule is active.
|
String |
getState()
The state of the scheduled action.
|
ScheduledActionType |
getTargetAction()
A JSON format string of the Amazon Redshift API operation with input parameters.
|
int |
hashCode() |
void |
setEndTime(Date endTime)
The end time in UTC when the schedule is no longer active.
|
void |
setIamRole(String iamRole)
The IAM role to assume to run the scheduled action.
|
void |
setNextInvocations(Collection<Date> nextInvocations)
List of times when the scheduled action will run.
|
void |
setSchedule(String schedule)
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
|
void |
setScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
|
void |
setScheduledActionName(String scheduledActionName)
The name of the scheduled action.
|
void |
setStartTime(Date startTime)
The start time in UTC when the schedule is active.
|
void |
setState(String state)
The state of the scheduled action.
|
void |
setTargetAction(ScheduledActionType targetAction)
A JSON format string of the Amazon Redshift API operation with input parameters.
|
String |
toString()
Returns a string representation of this object.
|
ModifyScheduledActionResult |
withEndTime(Date endTime)
The end time in UTC when the schedule is no longer active.
|
ModifyScheduledActionResult |
withIamRole(String iamRole)
The IAM role to assume to run the scheduled action.
|
ModifyScheduledActionResult |
withNextInvocations(Collection<Date> nextInvocations)
List of times when the scheduled action will run.
|
ModifyScheduledActionResult |
withNextInvocations(Date... nextInvocations)
List of times when the scheduled action will run.
|
ModifyScheduledActionResult |
withSchedule(String schedule)
The schedule for a one-time (at format) or recurring (cron format) scheduled action.
|
ModifyScheduledActionResult |
withScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
|
ModifyScheduledActionResult |
withScheduledActionName(String scheduledActionName)
The name of the scheduled action.
|
ModifyScheduledActionResult |
withStartTime(Date startTime)
The start time in UTC when the schedule is active.
|
ModifyScheduledActionResult |
withState(ScheduledActionState state)
The state of the scheduled action.
|
ModifyScheduledActionResult |
withState(String state)
The state of the scheduled action.
|
ModifyScheduledActionResult |
withTargetAction(ScheduledActionType targetAction)
A JSON format string of the Amazon Redshift API operation with input parameters.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setScheduledActionName(String scheduledActionName)
The name of the scheduled action.
scheduledActionName
- The name of the scheduled action.public String getScheduledActionName()
The name of the scheduled action.
public ModifyScheduledActionResult withScheduledActionName(String scheduledActionName)
The name of the scheduled action.
scheduledActionName
- The name of the scheduled action.public void setTargetAction(ScheduledActionType targetAction)
A JSON format string of the Amazon Redshift API operation with input parameters.
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
targetAction
- A JSON format string of the Amazon Redshift API operation with input parameters.
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
public ScheduledActionType getTargetAction()
A JSON format string of the Amazon Redshift API operation with input parameters.
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
public ModifyScheduledActionResult withTargetAction(ScheduledActionType targetAction)
A JSON format string of the Amazon Redshift API operation with input parameters.
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
targetAction
- A JSON format string of the Amazon Redshift API operation with input parameters.
"
{\"ResizeCluster\":{\"NodeType\":\"ra3.4xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
public void setSchedule(String schedule)
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon
CloudWatch Events User Guide.
schedule
- The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations
must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the
Amazon CloudWatch Events User Guide.
public String getSchedule()
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon
CloudWatch Events User Guide.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the
Amazon CloudWatch Events User Guide.
public ModifyScheduledActionResult withSchedule(String schedule)
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon
CloudWatch Events User Guide.
schedule
- The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations
must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "
at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the
Amazon CloudWatch Events User Guide.
public void setIamRole(String iamRole)
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management Guide.
iamRole
- The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon
Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler
(Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information
about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management
Guide.public String getIamRole()
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management Guide.
public ModifyScheduledActionResult withIamRole(String iamRole)
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management Guide.
iamRole
- The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon
Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler
(Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information
about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management
Guide.public void setScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
scheduledActionDescription
- The description of the scheduled action.public String getScheduledActionDescription()
The description of the scheduled action.
public ModifyScheduledActionResult withScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
scheduledActionDescription
- The description of the scheduled action.public void setState(String state)
The state of the scheduled action. For example, DISABLED
.
state
- The state of the scheduled action. For example, DISABLED
.ScheduledActionState
public String getState()
The state of the scheduled action. For example, DISABLED
.
DISABLED
.ScheduledActionState
public ModifyScheduledActionResult withState(String state)
The state of the scheduled action. For example, DISABLED
.
state
- The state of the scheduled action. For example, DISABLED
.ScheduledActionState
public ModifyScheduledActionResult withState(ScheduledActionState state)
The state of the scheduled action. For example, DISABLED
.
state
- The state of the scheduled action. For example, DISABLED
.ScheduledActionState
public List<Date> getNextInvocations()
List of times when the scheduled action will run.
public void setNextInvocations(Collection<Date> nextInvocations)
List of times when the scheduled action will run.
nextInvocations
- List of times when the scheduled action will run.public ModifyScheduledActionResult withNextInvocations(Date... nextInvocations)
List of times when the scheduled action will run.
NOTE: This method appends the values to the existing list (if any). Use
setNextInvocations(java.util.Collection)
or withNextInvocations(java.util.Collection)
if you
want to override the existing values.
nextInvocations
- List of times when the scheduled action will run.public ModifyScheduledActionResult withNextInvocations(Collection<Date> nextInvocations)
List of times when the scheduled action will run.
nextInvocations
- List of times when the scheduled action will run.public void setStartTime(Date startTime)
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
startTime
- The start time in UTC when the schedule is active. Before this time, the scheduled action does not
trigger.public Date getStartTime()
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
public ModifyScheduledActionResult withStartTime(Date startTime)
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
startTime
- The start time in UTC when the schedule is active. Before this time, the scheduled action does not
trigger.public void setEndTime(Date endTime)
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
endTime
- The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not
trigger.public Date getEndTime()
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
public ModifyScheduledActionResult withEndTime(Date endTime)
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
endTime
- The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not
trigger.public String toString()
toString
in class Object
Object.toString()
public ModifyScheduledActionResult clone()