Package org.cdk8s

Class Cron.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<Cron>
    Enclosing class:
    Cron

    @Stability(Stable)
    public static final class Cron.Builder
    extends Object
    implements software.amazon.jsii.Builder<Cron>
    A fluent builder for Cron.
    • Method Detail

      • day

        @Stability(Stable)
        public Cron.Builder day​(String day)
        The day of the month to run this rule at.

        Default: - Every day of the month

        Parameters:
        day - The day of the month to run this rule at. This parameter is required.
        Returns:
        this
      • hour

        @Stability(Stable)
        public Cron.Builder hour​(String hour)
        The hour to run this rule at.

        Default: - Every hour

        Parameters:
        hour - The hour to run this rule at. This parameter is required.
        Returns:
        this
      • minute

        @Stability(Stable)
        public Cron.Builder minute​(String minute)
        The minute to run this rule at.

        Default: - Every minute

        Parameters:
        minute - The minute to run this rule at. This parameter is required.
        Returns:
        this
      • month

        @Stability(Stable)
        public Cron.Builder month​(String month)
        The month to run this rule at.

        Default: - Every month

        Parameters:
        month - The month to run this rule at. This parameter is required.
        Returns:
        this
      • weekDay

        @Stability(Stable)
        public Cron.Builder weekDay​(String weekDay)
        The day of the week to run this rule at.

        Default: - Any day of the week

        Parameters:
        weekDay - The day of the week to run this rule at. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public Cron build()
        Specified by:
        build in interface software.amazon.jsii.Builder<Cron>