Class CfnServiceLevelObjective.IntervalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.IntervalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.IntervalProperty>
- Enclosing interface:
CfnServiceLevelObjective.IntervalProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.IntervalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.IntervalProperty>
A builder for
CfnServiceLevelObjective.IntervalProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.calendarInterval(IResolvable calendarInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getCalendarInterval()calendarInterval(CfnServiceLevelObjective.CalendarIntervalProperty calendarInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getCalendarInterval()rollingInterval(IResolvable rollingInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getRollingInterval()rollingInterval(CfnServiceLevelObjective.RollingIntervalProperty rollingInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getRollingInterval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
calendarInterval
@Stability(Stable) public CfnServiceLevelObjective.IntervalProperty.Builder calendarInterval(IResolvable calendarInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getCalendarInterval()- Parameters:
calendarInterval- If the interval is a calendar interval, this structure contains the interval specifications.- Returns:
this
-
calendarInterval
@Stability(Stable) public CfnServiceLevelObjective.IntervalProperty.Builder calendarInterval(CfnServiceLevelObjective.CalendarIntervalProperty calendarInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getCalendarInterval()- Parameters:
calendarInterval- If the interval is a calendar interval, this structure contains the interval specifications.- Returns:
this
-
rollingInterval
@Stability(Stable) public CfnServiceLevelObjective.IntervalProperty.Builder rollingInterval(IResolvable rollingInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getRollingInterval()- Parameters:
rollingInterval- If the interval is a rolling interval, this structure contains the interval specifications.- Returns:
this
-
rollingInterval
@Stability(Stable) public CfnServiceLevelObjective.IntervalProperty.Builder rollingInterval(CfnServiceLevelObjective.RollingIntervalProperty rollingInterval) Sets the value ofCfnServiceLevelObjective.IntervalProperty.getRollingInterval()- Parameters:
rollingInterval- If the interval is a rolling interval, this structure contains the interval specifications.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.IntervalProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.IntervalProperty - Throws:
NullPointerException- if any required attribute was not provided
-