@Generated(value="software.amazon.awssdk:codegen") public final class Schedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Schedule.Builder,Schedule>
A scheduling object using a cron
statement to schedule an event.
Modifier and Type | Class and Description |
---|---|
static interface |
Schedule.Builder |
Modifier and Type | Method and Description |
---|---|
static Schedule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
scheduleExpression()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Schedule.Builder> |
serializableBuilderClass() |
ScheduleState |
state()
The state of the schedule.
|
String |
stateAsString()
The state of the schedule.
|
Schedule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String scheduleExpression()
A cron
expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify:
cron(15 12 * * ? *)
.
cron
expression used to specify the schedule (see Time-Based
Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would
specify: cron(15 12 * * ? *)
.public final ScheduleState state()
The state of the schedule.
If the service returns an enum value that is not available in the current SDK version, state
will return
ScheduleState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ScheduleState
public final String stateAsString()
The state of the schedule.
If the service returns an enum value that is not available in the current SDK version, state
will return
ScheduleState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
ScheduleState
public Schedule.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Schedule.Builder,Schedule>
public static Schedule.Builder builder()
public static Class<? extends Schedule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.