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