Class CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.durationUnit(String durationUnit)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder duration(Number duration) - Parameters:
duration- Specifies the duration of each calendar interval. For example, ifDurationis1andDurationUnitisMONTH, each interval is one month, aligned with the calendar.- Returns:
this
-
durationUnit
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder durationUnit(String durationUnit) - Parameters:
durationUnit- Specifies the calendar interval unit.- Returns:
this
-
startTime
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty.Builder startTime(Number startTime) - Parameters:
startTime- The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example:
1698778057As soon as one calendar interval ends, another automatically begins.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.CalendarIntervalProperty - Throws:
NullPointerException- if any required attribute was not provided
-