Class CfnServiceLevelObjective.CalendarIntervalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.CalendarIntervalProperty>
- Enclosing interface:
CfnServiceLevelObjective.CalendarIntervalProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.CalendarIntervalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.CalendarIntervalProperty>
A builder for
CfnServiceLevelObjective.CalendarIntervalProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getDuration()durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getDurationUnit()Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getStartTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Stable) public CfnServiceLevelObjective.CalendarIntervalProperty.Builder duration(Number duration) Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getDuration()- Parameters:
duration- Specifies the duration of each calendar interval. This parameter is required. For example, ifDurationis1andDurationUnitisMONTH, each interval is one month, aligned with the calendar.- Returns:
this
-
durationUnit
@Stability(Stable) public CfnServiceLevelObjective.CalendarIntervalProperty.Builder durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getDurationUnit()- Parameters:
durationUnit- Specifies the calendar interval unit. This parameter is required.- Returns:
this
-
startTime
@Stability(Stable) public CfnServiceLevelObjective.CalendarIntervalProperty.Builder startTime(Number startTime) Sets the value ofCfnServiceLevelObjective.CalendarIntervalProperty.getStartTime()- Parameters:
startTime- The date and time when you want the first interval to start. This parameter is required. 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<CfnServiceLevelObjective.CalendarIntervalProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.CalendarIntervalProperty - Throws:
NullPointerException- if any required attribute was not provided
-