@Generated(value="software.amazon.awssdk:codegen") public class Schedule extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
String |
scheduleExpression()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
static Class<? extends Schedule.Builder> |
serializableBuilderClass() |
ScheduleState |
state()
The state of the schedule.
|
String |
stateAsString()
The state of the schedule.
|
Schedule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic 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 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().
ScheduleStatepublic 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().
ScheduleStatepublic Schedule.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Schedule.Builder,Schedule>public static Schedule.Builder builder()
public static Class<? extends Schedule.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.