@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateScheduledActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateScheduledActionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateScheduledActionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Indicates whether the schedule is enabled.
|
Date |
getEndTime()
The end time in UTC when the schedule is no longer active.
|
String |
getNamespaceName()
The name of the namespace for which to create a scheduled action.
|
String |
getRoleArn()
The ARN of the IAM role to assume to run the scheduled action.
|
Schedule |
getSchedule()
The schedule for a one-time (at timestamp 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.
|
TargetAction |
getTargetAction() |
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether the schedule is enabled.
|
void |
setEnabled(Boolean enabled)
Indicates whether the schedule is enabled.
|
void |
setEndTime(Date endTime)
The end time in UTC when the schedule is no longer active.
|
void |
setNamespaceName(String namespaceName)
The name of the namespace for which to create a scheduled action.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role to assume to run the scheduled action.
|
void |
setSchedule(Schedule schedule)
The schedule for a one-time (at timestamp 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 |
setTargetAction(TargetAction targetAction) |
String |
toString()
Returns a string representation of this object.
|
CreateScheduledActionRequest |
withEnabled(Boolean enabled)
Indicates whether the schedule is enabled.
|
CreateScheduledActionRequest |
withEndTime(Date endTime)
The end time in UTC when the schedule is no longer active.
|
CreateScheduledActionRequest |
withNamespaceName(String namespaceName)
The name of the namespace for which to create a scheduled action.
|
CreateScheduledActionRequest |
withRoleArn(String roleArn)
The ARN of the IAM role to assume to run the scheduled action.
|
CreateScheduledActionRequest |
withSchedule(Schedule schedule)
The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action.
|
CreateScheduledActionRequest |
withScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
|
CreateScheduledActionRequest |
withScheduledActionName(String scheduledActionName)
The name of the scheduled action.
|
CreateScheduledActionRequest |
withStartTime(Date startTime)
The start time in UTC when the schedule is active.
|
CreateScheduledActionRequest |
withTargetAction(TargetAction targetAction) |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setEnabled(Boolean enabled)
Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more information
about state
of the scheduled action, see ScheduledAction.
enabled
- Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more
information about state
of the scheduled action, see ScheduledAction.public Boolean getEnabled()
Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more information
about state
of the scheduled action, see ScheduledAction.
state
of the scheduled action, see ScheduledAction.public CreateScheduledActionRequest withEnabled(Boolean enabled)
Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more information
about state
of the scheduled action, see ScheduledAction.
enabled
- Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more
information about state
of the scheduled action, see ScheduledAction.public Boolean isEnabled()
Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more information
about state
of the scheduled action, see ScheduledAction.
state
of the scheduled action, see ScheduledAction.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 CreateScheduledActionRequest 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 void setNamespaceName(String namespaceName)
The name of the namespace for which to create a scheduled action.
namespaceName
- The name of the namespace for which to create a scheduled action.public String getNamespaceName()
The name of the namespace for which to create a scheduled action.
public CreateScheduledActionRequest withNamespaceName(String namespaceName)
The name of the namespace for which to create a scheduled action.
namespaceName
- The name of the namespace for which to create a scheduled action.public void setRoleArn(String roleArn)
The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (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 Management Guide
roleArn
- The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run
the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon
Redshift scheduler to schedule creating snapshots. (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 Management Guidepublic String getRoleArn()
The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (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 Management Guide
public CreateScheduledActionRequest withRoleArn(String roleArn)
The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (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 Management Guide
roleArn
- The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run
the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon
Redshift scheduler to schedule creating snapshots. (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 Management Guidepublic void setSchedule(Schedule schedule)
The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For example,
"(0 10 ? * MON *)"
. For more information, see Cron
Expressions in the Amazon CloudWatch Events User Guide.
schedule
- The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule
invocations must be separated by at least one hour. Times are in UTC.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For
example, "(0 10 ? * MON *)"
. For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
public Schedule getSchedule()
The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For example,
"(0 10 ? * MON *)"
. For more information, see Cron
Expressions in the Amazon CloudWatch Events User Guide.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For
example, "(0 10 ? * MON *)"
. For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
public CreateScheduledActionRequest withSchedule(Schedule schedule)
The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For example,
"(0 10 ? * MON *)"
. For more information, see Cron
Expressions in the Amazon CloudWatch Events User Guide.
schedule
- The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule
invocations must be separated by at least one hour. Times are in UTC.
Format of at timestamp is yyyy-mm-ddThh:mm:ss
. For example, 2016-03-04T17:27:00
.
Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year)
. For
example, "(0 10 ? * MON *)"
. For more information, see Cron Expressions in the Amazon CloudWatch Events User 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 CreateScheduledActionRequest withScheduledActionDescription(String scheduledActionDescription)
The description of the scheduled action.
scheduledActionDescription
- The description of the scheduled action.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 CreateScheduledActionRequest withScheduledActionName(String scheduledActionName)
The name of the scheduled action.
scheduledActionName
- The name of the scheduled action.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 CreateScheduledActionRequest 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 setTargetAction(TargetAction targetAction)
targetAction
- public TargetAction getTargetAction()
public CreateScheduledActionRequest withTargetAction(TargetAction targetAction)
targetAction
- public String toString()
toString
in class Object
Object.toString()
public CreateScheduledActionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()