Class ScheduleState.Builder

  • Enclosing class:
    ScheduleState

    public static final class ScheduleState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public ScheduleState.Builder arn​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN assigned by AWS to the Auto Scaling schedule.
        Returns:
        builder
      • arn

        public ScheduleState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN assigned by AWS to the Auto Scaling schedule.
        Returns:
        builder
      • autoscalingGroupName

        public ScheduleState.Builder autoscalingGroupName​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> autoscalingGroupName)
        Parameters:
        autoscalingGroupName - The name of the Auto Scaling group.
        Returns:
        builder
      • autoscalingGroupName

        public ScheduleState.Builder autoscalingGroupName​(java.lang.String autoscalingGroupName)
        Parameters:
        autoscalingGroupName - The name of the Auto Scaling group.
        Returns:
        builder
      • desiredCapacity

        public ScheduleState.Builder desiredCapacity​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Integer> desiredCapacity)
        Parameters:
        desiredCapacity - The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to `-1` if you don't want to change the desired capacity at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • desiredCapacity

        public ScheduleState.Builder desiredCapacity​(java.lang.Integer desiredCapacity)
        Parameters:
        desiredCapacity - The initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. Set to `-1` if you don't want to change the desired capacity at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • endTime

        public ScheduleState.Builder endTime​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> endTime)
        Parameters:
        endTime - The date and time for the recurring schedule to end, in UTC with the format `"YYYY-MM-DDThh:mm:ssZ"` (e.g. `"2021-06-01T00:00:00Z"`).
        Returns:
        builder
      • endTime

        public ScheduleState.Builder endTime​(java.lang.String endTime)
        Parameters:
        endTime - The date and time for the recurring schedule to end, in UTC with the format `"YYYY-MM-DDThh:mm:ssZ"` (e.g. `"2021-06-01T00:00:00Z"`).
        Returns:
        builder
      • maxSize

        public ScheduleState.Builder maxSize​(@Nullable
                                             com.pulumi.core.Output<java.lang.Integer> maxSize)
        Parameters:
        maxSize - The maximum size of the Auto Scaling group. Set to `-1` if you don't want to change the maximum size at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • maxSize

        public ScheduleState.Builder maxSize​(java.lang.Integer maxSize)
        Parameters:
        maxSize - The maximum size of the Auto Scaling group. Set to `-1` if you don't want to change the maximum size at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • minSize

        public ScheduleState.Builder minSize​(@Nullable
                                             com.pulumi.core.Output<java.lang.Integer> minSize)
        Parameters:
        minSize - The minimum size of the Auto Scaling group. Set to `-1` if you don't want to change the minimum size at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • minSize

        public ScheduleState.Builder minSize​(java.lang.Integer minSize)
        Parameters:
        minSize - The minimum size of the Auto Scaling group. Set to `-1` if you don't want to change the minimum size at the scheduled time. Defaults to `0`.
        Returns:
        builder
      • recurrence

        public ScheduleState.Builder recurrence​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> recurrence)
        Parameters:
        recurrence - The recurring schedule for this action specified using the Unix cron syntax format.
        Returns:
        builder
      • recurrence

        public ScheduleState.Builder recurrence​(java.lang.String recurrence)
        Parameters:
        recurrence - The recurring schedule for this action specified using the Unix cron syntax format.
        Returns:
        builder
      • region

        public ScheduleState.Builder region​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public ScheduleState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • scheduledActionName

        public ScheduleState.Builder scheduledActionName​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> scheduledActionName)
        Parameters:
        scheduledActionName - The name of this scaling action. The following arguments are optional:
        Returns:
        builder
      • scheduledActionName

        public ScheduleState.Builder scheduledActionName​(java.lang.String scheduledActionName)
        Parameters:
        scheduledActionName - The name of this scaling action. The following arguments are optional:
        Returns:
        builder
      • startTime

        public ScheduleState.Builder startTime​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> startTime)
        Parameters:
        startTime - The date and time for the recurring schedule to start, in UTC with the format `"YYYY-MM-DDThh:mm:ssZ"` (e.g. `"2021-06-01T00:00:00Z"`).
        Returns:
        builder
      • startTime

        public ScheduleState.Builder startTime​(java.lang.String startTime)
        Parameters:
        startTime - The date and time for the recurring schedule to start, in UTC with the format `"YYYY-MM-DDThh:mm:ssZ"` (e.g. `"2021-06-01T00:00:00Z"`).
        Returns:
        builder
      • timeZone

        public ScheduleState.Builder timeZone​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> timeZone)
        Parameters:
        timeZone - Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as `Etc/GMT+9` or `Pacific/Tahiti`). > **NOTE:** When `startTime` and `endTime` are specified with `recurrence` , they form the boundaries of when the recurring action will start and stop.
        Returns:
        builder
      • timeZone

        public ScheduleState.Builder timeZone​(java.lang.String timeZone)
        Parameters:
        timeZone - Specifies the time zone for a cron expression. Valid values are the canonical names of the IANA time zones (such as `Etc/GMT+9` or `Pacific/Tahiti`). > **NOTE:** When `startTime` and `endTime` are specified with `recurrence` , they form the boundaries of when the recurring action will start and stop.
        Returns:
        builder