@Stability(value=Stable)
public static interface CfnDetectorModel.SetTimerProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;
SetTimerProperty setTimerProperty = SetTimerProperty.builder()
.timerName("timerName")
// the properties below are optional
.durationExpression("durationExpression")
.seconds(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDetectorModel.SetTimerProperty.Builder
A builder for
CfnDetectorModel.SetTimerProperty |
static class |
CfnDetectorModel.SetTimerProperty.Jsii$Proxy
An implementation for
CfnDetectorModel.SetTimerProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDetectorModel.SetTimerProperty.Builder |
builder() |
default String |
getDurationExpression()
The duration of the timer, in seconds.
|
default Number |
getSeconds()
The number of seconds until the timer expires.
|
String |
getTimerName()
The name of the timer.
|
@Stability(value=Stable) @NotNull String getTimerName()
@Stability(value=Stable) @Nullable default String getDurationExpression()
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.
@Stability(value=Stable) @Nullable default Number getSeconds()
The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
@Stability(value=Stable) static CfnDetectorModel.SetTimerProperty.Builder builder()
Copyright © 2022. All rights reserved.