Class CfnDetectorModel.SetTimerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.SetTimerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.SetTimerProperty>
- Enclosing interface:
CfnDetectorModel.SetTimerProperty
@Stability(Stable)
public static final class CfnDetectorModel.SetTimerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.SetTimerProperty>
A builder for
CfnDetectorModel.SetTimerProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.durationExpression
(String durationExpression) Sets the value ofCfnDetectorModel.SetTimerProperty.getDurationExpression()
Sets the value ofCfnDetectorModel.SetTimerProperty.getSeconds()
Sets the value ofCfnDetectorModel.SetTimerProperty.getTimerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timerName
Sets the value ofCfnDetectorModel.SetTimerProperty.getTimerName()
- Parameters:
timerName
- The name of the timer. This parameter is required.- Returns:
this
-
durationExpression
@Stability(Stable) public CfnDetectorModel.SetTimerProperty.Builder durationExpression(String durationExpression) Sets the value ofCfnDetectorModel.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
Sets the value ofCfnDetectorModel.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.SetTimerProperty>
- Returns:
- a new instance of
CfnDetectorModel.SetTimerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-