Class Schedule
- java.lang.Object
-
- software.amazon.awssdk.services.redshiftserverless.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>
The schedule of when Amazon Redshift Serverless should run the scheduled action.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSchedule.Builderstatic classSchedule.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantat()The timestamp of when Amazon Redshift Serverless should run the scheduled action.static Schedule.Builderbuilder()Stringcron()The cron expression to use to schedule a recurring scheduled action.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static SchedulefromAt(Instant at)Create an instance of this class withat()initialized to the given value.static SchedulefromCron(String cron)Create an instance of this class withcron()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Schedule.Builder>serializableBuilderClass()Schedule.BuildertoBuilder()StringtoString()Returns a string representation of this object.Schedule.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
at
public final Instant at()
The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is "
at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".- Returns:
- The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at
expressions is "
at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".
-
cron
public final String cron()
The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.
Format of cron expressions is "
cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.- Returns:
- The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be
separated by at least one hour.
Format of cron expressions is "
cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
-
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.
-
fromAt
public static Schedule fromAt(Instant at)
Create an instance of this class withat()initialized to the given value.The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is "
at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".- Parameters:
at- The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For example, "at(2016-03-04T17:27:00)".
-
fromCron
public static Schedule fromCron(String cron)
Create an instance of this class withcron()initialized to the given value.The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.
Format of cron expressions is "
cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.- Parameters:
cron- The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.Format of cron expressions is "
cron(Minutes Hours Day-of-month Month Day-of-week Year)". For example, "cron(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
-
type
public Schedule.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSchedule.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSchedule.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-