public static final class ScheduledActionProps.Builder
extends java.lang.Object
ScheduledActionProps
Constructor and Description |
---|
Builder() |
public ScheduledActionProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
ScheduledActionProps.getAutoScalingGroup()
autoScalingGroup
- The AutoScalingGroup to apply the scheduled actions to. This parameter is required.this
public ScheduledActionProps.Builder schedule(Schedule schedule)
BasicScheduledActionProps.getSchedule()
schedule
- When to perform this action. This parameter is required.
Supports cron expressions.
For more information about cron expressions, see https://en.wikipedia.org/wiki/Cron.
this
public ScheduledActionProps.Builder desiredCapacity(java.lang.Number desiredCapacity)
BasicScheduledActionProps.getDesiredCapacity()
desiredCapacity
- The new desired capacity.
At the scheduled time, set the desired capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
this
public ScheduledActionProps.Builder endTime(java.time.Instant endTime)
BasicScheduledActionProps.getEndTime()
endTime
- When this scheduled action expires.this
public ScheduledActionProps.Builder maxCapacity(java.lang.Number maxCapacity)
BasicScheduledActionProps.getMaxCapacity()
maxCapacity
- The new maximum capacity.
At the scheduled time, set the maximum capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
this
public ScheduledActionProps.Builder minCapacity(java.lang.Number minCapacity)
BasicScheduledActionProps.getMinCapacity()
minCapacity
- The new minimum capacity.
At the scheduled time, set the minimum capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
this
public ScheduledActionProps.Builder startTime(java.time.Instant startTime)
BasicScheduledActionProps.getStartTime()
startTime
- When this scheduled action becomes active.this
public ScheduledActionProps.Builder timeZone(java.lang.String timeZone)
BasicScheduledActionProps.getTimeZone()
timeZone
- Specifies the time zone for a cron expression.
If a time zone is not provided, UTC is used by default.
Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti).
For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
this
public ScheduledActionProps build()
ScheduledActionProps
java.lang.NullPointerException
- if any required attribute was not provided