Class CfnServiceLevelObjective.RollingIntervalProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.RollingIntervalProperty>
- Enclosing interface:
CfnServiceLevelObjective.RollingIntervalProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.RollingIntervalProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.RollingIntervalProperty>
A builder for
CfnServiceLevelObjective.RollingIntervalProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServiceLevelObjective.RollingIntervalProperty.getDuration()durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjective.RollingIntervalProperty.getDurationUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Stable) public CfnServiceLevelObjective.RollingIntervalProperty.Builder duration(Number duration) Sets the value ofCfnServiceLevelObjective.RollingIntervalProperty.getDuration()- Parameters:
duration- Specifies the duration of each rolling interval. This parameter is required. For example, ifDurationis7andDurationUnitisDAY, each rolling interval is seven days.- Returns:
this
-
durationUnit
@Stability(Stable) public CfnServiceLevelObjective.RollingIntervalProperty.Builder durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjective.RollingIntervalProperty.getDurationUnit()- Parameters:
durationUnit- Specifies the rolling interval unit. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.RollingIntervalProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.RollingIntervalProperty - Throws:
NullPointerException- if any required attribute was not provided
-