Class BasicScheduledActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BasicScheduledActionProps>
- Enclosing interface:
BasicScheduledActionProps
BasicScheduledActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredCapacity(Number desiredCapacity) Sets the value ofBasicScheduledActionProps.getDesiredCapacity()Sets the value ofBasicScheduledActionProps.getEndTime()maxCapacity(Number maxCapacity) Sets the value ofBasicScheduledActionProps.getMaxCapacity()minCapacity(Number minCapacity) Sets the value ofBasicScheduledActionProps.getMinCapacity()Sets the value ofBasicScheduledActionProps.getSchedule()Sets the value ofBasicScheduledActionProps.getStartTime()Sets the value ofBasicScheduledActionProps.getTimeZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schedule
Sets the value ofBasicScheduledActionProps.getSchedule()- Parameters:
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.
- Returns:
this
-
desiredCapacity
Sets the value ofBasicScheduledActionProps.getDesiredCapacity()- Parameters:
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.
- Returns:
this
-
endTime
Sets the value ofBasicScheduledActionProps.getEndTime()- Parameters:
endTime- When this scheduled action expires. Warning! You should not set this field! After the scheduled end time, the AutoScaling service will delete theScheduledActionwithout CloudFormation's knowledge, and subsequent stack deployments that try to modify or delete this ScheduledAction will fail.- Returns:
this
-
maxCapacity
Sets the value ofBasicScheduledActionProps.getMaxCapacity()- Parameters:
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.
- Returns:
this
-
minCapacity
Sets the value ofBasicScheduledActionProps.getMinCapacity()- Parameters:
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.
- Returns:
this
-
startTime
Sets the value ofBasicScheduledActionProps.getStartTime()- Parameters:
startTime- When this scheduled action becomes active.- Returns:
this
-
timeZone
Sets the value ofBasicScheduledActionProps.getTimeZone()- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BasicScheduledActionProps>- Returns:
- a new instance of
BasicScheduledActionProps - Throws:
NullPointerException- if any required attribute was not provided
-