@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Schedule extends Object implements Serializable, Cloneable, StructuredPojo
A scheduling object using a cron statement to schedule an event.
| Constructor and Description |
|---|
Schedule() |
| Modifier and Type | Method and Description |
|---|---|
Schedule |
clone() |
boolean |
equals(Object obj) |
String |
getScheduleExpression()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
String |
getState()
The state of the schedule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setScheduleExpression(String scheduleExpression)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
void |
setState(String state)
The state of the schedule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Schedule |
withScheduleExpression(String scheduleExpression)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
Schedule |
withState(ScheduleState state)
The state of the schedule.
|
Schedule |
withState(String state)
The state of the schedule.
|
public void setScheduleExpression(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 * * ? *).
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 * * ? *).public String getScheduleExpression()
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 Schedule withScheduleExpression(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 * * ? *).
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 * * ? *).public void setState(String state)
The state of the schedule.
state - The state of the schedule.ScheduleStatepublic String getState()
The state of the schedule.
ScheduleStatepublic Schedule withState(String state)
The state of the schedule.
state - The state of the schedule.ScheduleStatepublic Schedule withState(ScheduleState state)
The state of the schedule.
state - The state of the schedule.ScheduleStatepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.