Class CfnDetectorModelPropsMixin.SetTimerProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotevents.CfnDetectorModelPropsMixin.SetTimerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModelPropsMixin.SetTimerProperty>
- Enclosing interface:
CfnDetectorModelPropsMixin.SetTimerProperty
@Stability(Stable)
public static final class CfnDetectorModelPropsMixin.SetTimerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModelPropsMixin.SetTimerProperty>
A builder for
CfnDetectorModelPropsMixin.SetTimerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.durationExpression(String durationExpression) Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getDurationExpression()Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getSeconds()Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getTimerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
durationExpression
@Stability(Stable) public CfnDetectorModelPropsMixin.SetTimerProperty.Builder durationExpression(String durationExpression) Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getDurationExpression()- Parameters:
durationExpression- The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.- Returns:
this
-
seconds
@Stability(Stable) public CfnDetectorModelPropsMixin.SetTimerProperty.Builder seconds(Number seconds) Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getSeconds()- Parameters:
seconds- The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.- Returns:
this
-
timerName
@Stability(Stable) public CfnDetectorModelPropsMixin.SetTimerProperty.Builder timerName(String timerName) Sets the value ofCfnDetectorModelPropsMixin.SetTimerProperty.getTimerName()- Parameters:
timerName- The name of the timer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModelPropsMixin.SetTimerProperty>- Returns:
- a new instance of
CfnDetectorModelPropsMixin.SetTimerProperty - Throws:
NullPointerException- if any required attribute was not provided
-