Class CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalableTargetPropsMixin.ScheduledActionProperty>
- Enclosing interface:
CfnScalableTargetPropsMixin.ScheduledActionProperty
@Stability(Stable)
public static final class CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalableTargetPropsMixin.ScheduledActionProperty>
A builder for
CfnScalableTargetPropsMixin.ScheduledActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getEndTime()endTime(IResolvable endTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getEndTime()scalableTargetAction(CfnScalableTargetPropsMixin.ScalableTargetActionProperty scalableTargetAction) scalableTargetAction(IResolvable scalableTargetAction) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getSchedule()scheduledActionName(String scheduledActionName) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getStartTime()startTime(IResolvable startTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getStartTime()Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endTime
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder endTime(Instant endTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getEndTime()- Parameters:
endTime- The date and time that the action is scheduled to end, in UTC.- Returns:
this
-
endTime
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder endTime(IResolvable endTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getEndTime()- Parameters:
endTime- The date and time that the action is scheduled to end, in UTC.- Returns:
this
-
scalableTargetAction
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder scalableTargetAction(IResolvable scalableTargetAction) - Parameters:
scalableTargetAction- The new minimum and maximum capacity. You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity.- Returns:
this
-
scalableTargetAction
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder scalableTargetAction(CfnScalableTargetPropsMixin.ScalableTargetActionProperty scalableTargetAction) - Parameters:
scalableTargetAction- The new minimum and maximum capacity. You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity.- Returns:
this
-
schedule
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder schedule(String schedule) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getSchedule()- Parameters:
schedule- The schedule for this action. The following formats are supported:.- At expressions - "
at( *yyyy* - *mm* - *dd* T *hh* : *mm* : *ss* )" - Rate expressions - "
rate( *value* *unit* )" - Cron expressions - "
cron( *fields* )"
At expressions are useful for one-time schedules. Cron expressions are useful for scheduled actions that run periodically at a specified date and time, and rate expressions are useful for scheduled actions that run at a regular interval.
At and cron expressions use Universal Coordinated Time (UTC) by default.
The cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year].
For rate expressions, value is a positive integer and unit is
minute|minutes|hour|hours|day|days.- At expressions - "
- Returns:
this
-
scheduledActionName
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder scheduledActionName(String scheduledActionName) - Parameters:
scheduledActionName- The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target.- Returns:
this
-
startTime
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder startTime(Instant startTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getStartTime()- Parameters:
startTime- The date and time that the action is scheduled to begin, in UTC.- Returns:
this
-
startTime
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder startTime(IResolvable startTime) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getStartTime()- Parameters:
startTime- The date and time that the action is scheduled to begin, in UTC.- Returns:
this
-
timezone
@Stability(Stable) public CfnScalableTargetPropsMixin.ScheduledActionProperty.Builder timezone(String timezone) Sets the value ofCfnScalableTargetPropsMixin.ScheduledActionProperty.getTimezone()- Parameters:
timezone- The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalableTargetPropsMixin.ScheduledActionProperty>- Returns:
- a new instance of
CfnScalableTargetPropsMixin.ScheduledActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-