Class CfnServiceLevelObjectivePropsMixin.WindowProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.WindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.WindowProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.WindowProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.WindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.WindowProperty>
A builder for
CfnServiceLevelObjectivePropsMixin.WindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServiceLevelObjectivePropsMixin.WindowProperty.getDuration()durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjectivePropsMixin.WindowProperty.getDurationUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.WindowProperty.Builder duration(Number duration) Sets the value ofCfnServiceLevelObjectivePropsMixin.WindowProperty.getDuration()- Parameters:
duration- The start and end time of the time exclusion window.- Returns:
this
-
durationUnit
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.WindowProperty.Builder durationUnit(String durationUnit) Sets the value ofCfnServiceLevelObjectivePropsMixin.WindowProperty.getDurationUnit()- Parameters:
durationUnit- The unit of measurement to use during the time window exclusion.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.WindowProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.WindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-