Class Schedule
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.Schedule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Schedule.Builder,Schedule>
@Generated("software.amazon.awssdk:codegen") public final class Schedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Schedule.Builder,Schedule>
A scheduling object using a
cronstatement to schedule an event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSchedule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Schedule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringscheduleExpression()Acronexpression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers.List<SdkField<?>>sdkFields()static Class<? extends Schedule.Builder>serializableBuilderClass()ScheduleStatestate()The state of the schedule.StringstateAsString()The state of the schedule.Schedule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
scheduleExpression
public final String scheduleExpression()
A
cronexpression 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 * * ? *).- Returns:
- A
cronexpression 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 * * ? *).
-
state
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,
statewill returnScheduleState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the schedule.
- See Also:
ScheduleState
-
stateAsString
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,
statewill returnScheduleState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the schedule.
- See Also:
ScheduleState
-
toBuilder
public Schedule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Schedule.Builder,Schedule>
-
builder
public static Schedule.Builder builder()
-
serializableBuilderClass
public static Class<? extends Schedule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-