Class Schedule

    • 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.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromAt

        public static Schedule fromAt​(Instant at)
        Create an instance of this class with at() 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 with cron() 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 be Schedule.Type.UNKNOWN_TO_SDK_VERSION if 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 be Schedule.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.