Class CfnDetectorModelProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModelProps>
- Enclosing interface:
CfnDetectorModelProps
@Stability(Stable)
public static final class CfnDetectorModelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModelProps>
A builder for
CfnDetectorModelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.detectorModelDefinition(IResolvable detectorModelDefinition) Sets the value ofCfnDetectorModelProps.getDetectorModelDefinition()detectorModelDefinition(CfnDetectorModel.DetectorModelDefinitionProperty detectorModelDefinition) Sets the value ofCfnDetectorModelProps.getDetectorModelDefinition()detectorModelDescription(String detectorModelDescription) Sets the value ofCfnDetectorModelProps.getDetectorModelDescription()detectorModelName(String detectorModelName) Sets the value ofCfnDetectorModelProps.getDetectorModelName()evaluationMethod(String evaluationMethod) Sets the value ofCfnDetectorModelProps.getEvaluationMethod()Sets the value ofCfnDetectorModelProps.getKey()Sets the value ofCfnDetectorModelProps.getRoleArn()Sets the value ofCfnDetectorModelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorModelDefinition
@Stability(Stable) public CfnDetectorModelProps.Builder detectorModelDefinition(IResolvable detectorModelDefinition) Sets the value ofCfnDetectorModelProps.getDetectorModelDefinition()- Parameters:
detectorModelDefinition- Information that defines how a detector operates. This parameter is required.- Returns:
this
-
detectorModelDefinition
@Stability(Stable) public CfnDetectorModelProps.Builder detectorModelDefinition(CfnDetectorModel.DetectorModelDefinitionProperty detectorModelDefinition) Sets the value ofCfnDetectorModelProps.getDetectorModelDefinition()- Parameters:
detectorModelDefinition- Information that defines how a detector operates. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnDetectorModelProps.getRoleArn()- Parameters:
roleArn- The ARN of the role that grants permission to AWS IoT Events to perform its operations. This parameter is required.- Returns:
this
-
detectorModelDescription
@Stability(Stable) public CfnDetectorModelProps.Builder detectorModelDescription(String detectorModelDescription) Sets the value ofCfnDetectorModelProps.getDetectorModelDescription()- Parameters:
detectorModelDescription- A brief description of the detector model.- Returns:
this
-
detectorModelName
Sets the value ofCfnDetectorModelProps.getDetectorModelName()- Parameters:
detectorModelName- The name of the detector model.- Returns:
this
-
evaluationMethod
Sets the value ofCfnDetectorModelProps.getEvaluationMethod()- Parameters:
evaluationMethod- Information about the order in which events are evaluated and how actions are executed.- Returns:
this
-
key
Sets the value ofCfnDetectorModelProps.getKey()- Parameters:
key- The value used to identify a detector instance. When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information.This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
- Returns:
this
-
tags
Sets the value ofCfnDetectorModelProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModelProps>- Returns:
- a new instance of
CfnDetectorModelProps - Throws:
NullPointerException- if any required attribute was not provided
-