Class Expression
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iotevents.alpha.Expression
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:41.491Z")
@Stability(Experimental)
public abstract class Expression
extends software.amazon.jsii.JsiiObject
(experimental) Expression for events in Detector Model state.
Example:
// Example automatically generated from non-compiling source. May contain errors. import software.amazon.awscdk.services.iotevents.alpha.*; import software.amazon.awscdk.services.iotevents.actions.alpha.*; IInput input; State state = State.Builder.create() .stateName("MyState") .onEnter(List.of(Event.builder() .eventName("test-event") .condition(Expression.currentInput(input)) .actions(List.of( new SetTimerAction("MyTimer", Map.of( "duration", cdk.Duration.seconds(60))))) .build())) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
Expression
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Expression
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
add
(Expression left, Expression right) (experimental) Create a expression for the Addition operator.static Expression
and
(Expression left, Expression right) (experimental) Create a expression for the AND operator.static Expression
bitwiseAnd
(Expression left, Expression right) (experimental) Create a expression for the Bitwise AND operator.static Expression
bitwiseOr
(Expression left, Expression right) (experimental) Create a expression for the Bitwise OR operator.static Expression
bitwiseXor
(Expression left, Expression right) (experimental) Create a expression for the Bitwise XOR operator.static Expression
concat
(Expression left, Expression right) (experimental) Create a expression for the String Concatenation operator.static Expression
currentInput
(IInput input) (experimental) Create a expression for functioncurrentInput()
.static Expression
divide
(Expression left, Expression right) (experimental) Create a expression for the Division operator.static Expression
eq
(Expression left, Expression right) (experimental) Create a expression for the Equal operator.abstract String
evaluate()
(experimental) This is called to evaluate the expression.abstract String
(experimental) This is called to evaluate the expression.static Expression
fromString
(String value) (experimental) Create a expression from the given string.static Expression
gt
(Expression left, Expression right) (experimental) Create a expression for the Greater Than operator.static Expression
gte
(Expression left, Expression right) (experimental) Create a expression for the Greater Than Or Equal operator.static Expression
inputAttribute
(IInput input, String path) (experimental) Create a expression for get an input attribute as$input.TemperatureInput.temperatures[2]
.static Expression
lt
(Expression left, Expression right) (experimental) Create a expression for the Less Than operator.static Expression
lte
(Expression left, Expression right) (experimental) Create a expression for the Less Than Or Equal operator.static Expression
multiply
(Expression left, Expression right) (experimental) Create a expression for the Multiplication operator.static Expression
neq
(Expression left, Expression right) (experimental) Create a expression for the Not Equal operator.static Expression
or
(Expression left, Expression right) (experimental) Create a expression for the OR operator.static Expression
subtract
(Expression left, Expression right) (experimental) Create a expression for the Subtraction operator.static Expression
(experimental) Create a expression for functiontimeout("timer-name")
.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Expression
protected Expression(software.amazon.jsii.JsiiObjectRef objRef) -
Expression
protected Expression(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Expression
@Stability(Experimental) protected Expression()
-
-
Method Details
-
add
@Stability(Experimental) @NotNull public static Expression add(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Addition operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
and
@Stability(Experimental) @NotNull public static Expression and(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the AND operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
bitwiseAnd
@Stability(Experimental) @NotNull public static Expression bitwiseAnd(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Bitwise AND operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
bitwiseOr
@Stability(Experimental) @NotNull public static Expression bitwiseOr(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Bitwise OR operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
bitwiseXor
@Stability(Experimental) @NotNull public static Expression bitwiseXor(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Bitwise XOR operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
concat
@Stability(Experimental) @NotNull public static Expression concat(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the String Concatenation operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
currentInput
(experimental) Create a expression for functioncurrentInput()
.It is evaluated to true if the specified input message was received.
- Parameters:
input
- This parameter is required.
-
divide
@Stability(Experimental) @NotNull public static Expression divide(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Division operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
eq
@Stability(Experimental) @NotNull public static Expression eq(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Equal operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
fromString
(experimental) Create a expression from the given string.- Parameters:
value
- This parameter is required.
-
gt
@Stability(Experimental) @NotNull public static Expression gt(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Greater Than operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
gte
@Stability(Experimental) @NotNull public static Expression gte(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Greater Than Or Equal operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
inputAttribute
@Stability(Experimental) @NotNull public static Expression inputAttribute(@NotNull IInput input, @NotNull String path) (experimental) Create a expression for get an input attribute as$input.TemperatureInput.temperatures[2]
.- Parameters:
input
- This parameter is required.path
- This parameter is required.
-
lt
@Stability(Experimental) @NotNull public static Expression lt(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Less Than operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
lte
@Stability(Experimental) @NotNull public static Expression lte(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Less Than Or Equal operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
multiply
@Stability(Experimental) @NotNull public static Expression multiply(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Multiplication operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
neq
@Stability(Experimental) @NotNull public static Expression neq(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Not Equal operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
or
@Stability(Experimental) @NotNull public static Expression or(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the OR operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
subtract
@Stability(Experimental) @NotNull public static Expression subtract(@NotNull Expression left, @NotNull Expression right) (experimental) Create a expression for the Subtraction operator.- Parameters:
left
- This parameter is required.right
- This parameter is required.
-
timeout
(experimental) Create a expression for functiontimeout("timer-name")
.It is evaluated to true if the specified timer has elapsed. You can define a timer only using the
setTimer
action.- Parameters:
timerName
- This parameter is required.
-
evaluate
(experimental) This is called to evaluate the expression.- Parameters:
parentPriority
- priority of the parent of this expression, used for determining whether or not to add parenthesis around the expression.
-
evaluate
(experimental) This is called to evaluate the expression.
-