Interface CfnDetectorModel.SetTimerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDetectorModel.SetTimerProperty.Jsii$Proxy
Enclosing class:
CfnDetectorModel

@Stability(Stable) public static interface CfnDetectorModel.SetTimerProperty extends software.amazon.jsii.JsiiSerializable
Information needed to set the timer.

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();
 
  • Method Details

    • getTimerName

      @Stability(Stable) @NotNull String getTimerName()
      The name of the timer.
    • getDurationExpression

      @Stability(Stable) @Nullable default String getDurationExpression()
      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.

    • getSeconds

      @Stability(Stable) @Nullable default Number getSeconds()
      The number of seconds until the timer expires.

      The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

    • builder

      @Stability(Stable) static CfnDetectorModel.SetTimerProperty.Builder builder()
      Returns:
      a CfnDetectorModel.SetTimerProperty.Builder of CfnDetectorModel.SetTimerProperty