All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.iotevents.actions.SetVariableAction Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.iotevents.actions;

/**
 * (experimental) The action to create a variable with a specified value.
 * 

* Example: *

*

 * // Example automatically generated from non-compiling source. May contain errors.
 * import software.amazon.awscdk.services.iotevents.*;
 * import software.amazon.awscdk.services.iotevents.actions.*;
 * IInput input;
 * State state = State.Builder.create()
 *         .stateName("MyState")
 *         .onEnter(List.of(Event.builder()
 *                 .eventName("test-event")
 *                 .condition(Expression.currentInput(input))
 *                 .actions(List.of(actions, List.of(
 *                     new SetVariableAction("MyVariable", Expression.inputAttribute(input, "payload.temperature")))))
 *                 .build()))
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.71.0 (build f1f58ae)", date = "2022-11-29T04:32:21.937Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.iotevents.actions.$Module.class, fqn = "@aws-cdk/aws-iotevents-actions.SetVariableAction") public class SetVariableAction extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.iotevents.IAction { protected SetVariableAction(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected SetVariableAction(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param variableName the name of the variable. This parameter is required. * @param value the new value of the variable. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public SetVariableAction(final @org.jetbrains.annotations.NotNull java.lang.String variableName, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iotevents.Expression value) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(variableName, "variableName is required"), java.util.Objects.requireNonNull(value, "value is required") }); } /** * (experimental) Returns the AWS IoT Events action specification. *

* @param _scope This parameter is required. * @param _options This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iotevents.ActionConfig bind(final @org.jetbrains.annotations.NotNull software.constructs.Construct _scope, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iotevents.ActionBindOptions _options) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iotevents.ActionConfig.class), new Object[] { java.util.Objects.requireNonNull(_scope, "_scope is required"), java.util.Objects.requireNonNull(_options, "_options is required") }); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy