@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.
|
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.ScheduleState
public String getState()
The state of the schedule.
ScheduleState
public Schedule withState(String state)
The state of the schedule.
state
- The state of the schedule.ScheduleState
public Schedule withState(ScheduleState state)
The state of the schedule.
state
- The state of the schedule.ScheduleState
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.