@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateScheduleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateScheduleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateScheduleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getActionAfterCompletion()
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the
target.
|
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
String |
getDescription()
The description you specify for the schedule.
|
Date |
getEndDate()
The date, in UTC, before which the schedule can invoke its target.
|
FlexibleTimeWindow |
getFlexibleTimeWindow()
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
|
String |
getGroupName()
The name of the schedule group to associate with this schedule.
|
String |
getKmsKeyArn()
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt
and decrypt your data.
|
String |
getName()
The name of the schedule that you are creating.
|
String |
getScheduleExpression()
The expression that defines when the schedule runs.
|
String |
getScheduleExpressionTimezone()
The timezone in which the scheduling expression is evaluated.
|
Date |
getStartDate()
The date, in UTC, after which the schedule can begin invoking its target.
|
String |
getState()
Specifies whether the schedule is enabled or disabled.
|
Target |
getTarget()
The schedule's target.
|
int |
hashCode() |
void |
setActionAfterCompletion(String actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the
target.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
void |
setDescription(String description)
The description you specify for the schedule.
|
void |
setEndDate(Date endDate)
The date, in UTC, before which the schedule can invoke its target.
|
void |
setFlexibleTimeWindow(FlexibleTimeWindow flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
|
void |
setGroupName(String groupName)
The name of the schedule group to associate with this schedule.
|
void |
setKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt
and decrypt your data.
|
void |
setName(String name)
The name of the schedule that you are creating.
|
void |
setScheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs.
|
void |
setScheduleExpressionTimezone(String scheduleExpressionTimezone)
The timezone in which the scheduling expression is evaluated.
|
void |
setStartDate(Date startDate)
The date, in UTC, after which the schedule can begin invoking its target.
|
void |
setState(String state)
Specifies whether the schedule is enabled or disabled.
|
void |
setTarget(Target target)
The schedule's target.
|
String |
toString()
Returns a string representation of this object.
|
CreateScheduleRequest |
withActionAfterCompletion(ActionAfterCompletion actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the
target.
|
CreateScheduleRequest |
withActionAfterCompletion(String actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the
target.
|
CreateScheduleRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
CreateScheduleRequest |
withDescription(String description)
The description you specify for the schedule.
|
CreateScheduleRequest |
withEndDate(Date endDate)
The date, in UTC, before which the schedule can invoke its target.
|
CreateScheduleRequest |
withFlexibleTimeWindow(FlexibleTimeWindow flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
|
CreateScheduleRequest |
withGroupName(String groupName)
The name of the schedule group to associate with this schedule.
|
CreateScheduleRequest |
withKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt
and decrypt your data.
|
CreateScheduleRequest |
withName(String name)
The name of the schedule that you are creating.
|
CreateScheduleRequest |
withScheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs.
|
CreateScheduleRequest |
withScheduleExpressionTimezone(String scheduleExpressionTimezone)
The timezone in which the scheduling expression is evaluated.
|
CreateScheduleRequest |
withStartDate(Date startDate)
The date, in UTC, after which the schedule can begin invoking its target.
|
CreateScheduleRequest |
withState(ScheduleState state)
Specifies whether the schedule is enabled or disabled.
|
CreateScheduleRequest |
withState(String state)
Specifies whether the schedule is enabled or disabled.
|
CreateScheduleRequest |
withTarget(Target target)
The schedule's target.
|
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 setActionAfterCompletion(String actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
actionAfterCompletion
- Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes
invoking the target.ActionAfterCompletion
public String getActionAfterCompletion()
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
ActionAfterCompletion
public CreateScheduleRequest withActionAfterCompletion(String actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
actionAfterCompletion
- Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes
invoking the target.ActionAfterCompletion
public CreateScheduleRequest withActionAfterCompletion(ActionAfterCompletion actionAfterCompletion)
Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.
actionAfterCompletion
- Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes
invoking the target.ActionAfterCompletion
public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure
idempotency.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.
public CreateScheduleRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure
idempotency.public void setDescription(String description)
The description you specify for the schedule.
description
- The description you specify for the schedule.public String getDescription()
The description you specify for the schedule.
public CreateScheduleRequest withDescription(String description)
The description you specify for the schedule.
description
- The description you specify for the schedule.public void setEndDate(Date endDate)
The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence
expression, invocations might stop on, or before, the EndDate
you specify. EventBridge Scheduler
ignores EndDate
for one-time schedules.
endDate
- The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence
expression, invocations might stop on, or before, the EndDate
you specify. EventBridge
Scheduler ignores EndDate
for one-time schedules.public Date getEndDate()
The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence
expression, invocations might stop on, or before, the EndDate
you specify. EventBridge Scheduler
ignores EndDate
for one-time schedules.
EndDate
you specify. EventBridge
Scheduler ignores EndDate
for one-time schedules.public CreateScheduleRequest withEndDate(Date endDate)
The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence
expression, invocations might stop on, or before, the EndDate
you specify. EventBridge Scheduler
ignores EndDate
for one-time schedules.
endDate
- The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence
expression, invocations might stop on, or before, the EndDate
you specify. EventBridge
Scheduler ignores EndDate
for one-time schedules.public void setFlexibleTimeWindow(FlexibleTimeWindow flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
flexibleTimeWindow
- Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.public FlexibleTimeWindow getFlexibleTimeWindow()
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
public CreateScheduleRequest withFlexibleTimeWindow(FlexibleTimeWindow flexibleTimeWindow)
Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.
flexibleTimeWindow
- Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.public void setGroupName(String groupName)
The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.
groupName
- The name of the schedule group to associate with this schedule. If you omit this, the default schedule
group is used.public String getGroupName()
The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.
public CreateScheduleRequest withGroupName(String groupName)
The name of the schedule group to associate with this schedule. If you omit this, the default schedule group is used.
groupName
- The name of the schedule group to associate with this schedule. If you omit this, the default schedule
group is used.public void setKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
kmsKeyArn
- The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to
encrypt and decrypt your data.public String getKmsKeyArn()
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
public CreateScheduleRequest withKmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.
kmsKeyArn
- The Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will use to
encrypt and decrypt your data.public void setName(String name)
The name of the schedule that you are creating.
name
- The name of the schedule that you are creating.public String getName()
The name of the schedule that you are creating.
public CreateScheduleRequest withName(String name)
The name of the schedule that you are creating.
name
- The name of the schedule that you are creating.public void setScheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs. The following formats are supported.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the time and
in the time zone, that you specify. You can use rate
and cron
expressions to create
recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such
as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target
periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with the
following options: minute
| minutes
| hour
| hours
|
day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
scheduleExpression
- The expression that defines when the schedule runs. The following formats are supported.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the
time and in the time zone, that you specify. You can use rate
and cron
expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a
target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful
when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day
of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with
the following options: minute
| minutes
| hour
| hours
| day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
public String getScheduleExpression()
The expression that defines when the schedule runs. The following formats are supported.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the time and
in the time zone, that you specify. You can use rate
and cron
expressions to create
recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such
as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target
periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with the
following options: minute
| minutes
| hour
| hours
|
day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the
time and in the time zone, that you specify. You can use rate
and cron
expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a
target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful
when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st
day of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with
the following options: minute
| minutes
| hour
|
hours
| day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
public CreateScheduleRequest withScheduleExpression(String scheduleExpression)
The expression that defines when the schedule runs. The following formats are supported.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the time and
in the time zone, that you specify. You can use rate
and cron
expressions to create
recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such
as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target
periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with the
following options: minute
| minutes
| hour
| hours
|
day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
scheduleExpression
- The expression that defines when the schedule runs. The following formats are supported.
at
expression - at(yyyy-mm-ddThh:mm:ss)
rate
expression - rate(value unit)
cron
expression - cron(fields)
You can use at
expressions to create one-time schedules that invoke a target once, at the
time and in the time zone, that you specify. You can use rate
and cron
expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a
target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful
when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day
of the month.
A cron
expression consists of six fields separated by white spaces:
(minutes hours day_of_month month day_of_week year)
.
A rate
expression consists of a value as a positive integer, and a unit with
the following options: minute
| minutes
| hour
| hours
| day
| days
For more information and examples, see Schedule types on EventBridge Scheduler in the EventBridge Scheduler User Guide.
public void setScheduleExpressionTimezone(String scheduleExpressionTimezone)
The timezone in which the scheduling expression is evaluated.
scheduleExpressionTimezone
- The timezone in which the scheduling expression is evaluated.public String getScheduleExpressionTimezone()
The timezone in which the scheduling expression is evaluated.
public CreateScheduleRequest withScheduleExpressionTimezone(String scheduleExpressionTimezone)
The timezone in which the scheduling expression is evaluated.
scheduleExpressionTimezone
- The timezone in which the scheduling expression is evaluated.public void setStartDate(Date startDate)
The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence
expression, invocations might occur on, or after, the StartDate
you specify. EventBridge Scheduler
ignores StartDate
for one-time schedules.
startDate
- The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's
recurrence expression, invocations might occur on, or after, the StartDate
you specify.
EventBridge Scheduler ignores StartDate
for one-time schedules.public Date getStartDate()
The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence
expression, invocations might occur on, or after, the StartDate
you specify. EventBridge Scheduler
ignores StartDate
for one-time schedules.
StartDate
you specify.
EventBridge Scheduler ignores StartDate
for one-time schedules.public CreateScheduleRequest withStartDate(Date startDate)
The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence
expression, invocations might occur on, or after, the StartDate
you specify. EventBridge Scheduler
ignores StartDate
for one-time schedules.
startDate
- The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's
recurrence expression, invocations might occur on, or after, the StartDate
you specify.
EventBridge Scheduler ignores StartDate
for one-time schedules.public void setState(String state)
Specifies whether the schedule is enabled or disabled.
state
- Specifies whether the schedule is enabled or disabled.ScheduleState
public String getState()
Specifies whether the schedule is enabled or disabled.
ScheduleState
public CreateScheduleRequest withState(String state)
Specifies whether the schedule is enabled or disabled.
state
- Specifies whether the schedule is enabled or disabled.ScheduleState
public CreateScheduleRequest withState(ScheduleState state)
Specifies whether the schedule is enabled or disabled.
state
- Specifies whether the schedule is enabled or disabled.ScheduleState
public void setTarget(Target target)
The schedule's target.
target
- The schedule's target.public Target getTarget()
The schedule's target.
public CreateScheduleRequest withTarget(Target target)
The schedule's target.
target
- The schedule's target.public String toString()
toString
in class Object
Object.toString()
public CreateScheduleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()