public static final class DetectorModelProps.Builder
extends java.lang.Object
DetectorModelProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectorModelProps |
build()
Builds the configured instance.
|
DetectorModelProps.Builder |
description(java.lang.String description)
Sets the value of
DetectorModelProps.getDescription() |
DetectorModelProps.Builder |
detectorKey(java.lang.String detectorKey)
Sets the value of
DetectorModelProps.getDetectorKey() |
DetectorModelProps.Builder |
detectorModelName(java.lang.String detectorModelName)
Sets the value of
DetectorModelProps.getDetectorModelName() |
DetectorModelProps.Builder |
evaluationMethod(EventEvaluation evaluationMethod)
Sets the value of
DetectorModelProps.getEvaluationMethod() |
DetectorModelProps.Builder |
initialState(State initialState)
Sets the value of
DetectorModelProps.getInitialState() |
DetectorModelProps.Builder |
role(IRole role)
Sets the value of
DetectorModelProps.getRole() |
public DetectorModelProps.Builder initialState(State initialState)
DetectorModelProps.getInitialState()
initialState
- The state that is entered at the creation of each detector. This parameter is required.this
public DetectorModelProps.Builder description(java.lang.String description)
DetectorModelProps.getDescription()
description
- A brief description of the detector model.this
public DetectorModelProps.Builder detectorKey(java.lang.String detectorKey)
DetectorModelProps.getDetectorKey()
detectorKey
- 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.
this
public DetectorModelProps.Builder detectorModelName(java.lang.String detectorModelName)
DetectorModelProps.getDetectorModelName()
detectorModelName
- The name of the detector model.this
public DetectorModelProps.Builder evaluationMethod(EventEvaluation evaluationMethod)
DetectorModelProps.getEvaluationMethod()
evaluationMethod
- Information about the order in which events are evaluated and how actions are executed.
When setting to SERIAL, variables are updated and event conditions are evaluated in the order
that the events are defined.
When setting to BATCH, variables within a state are updated and events within a state are
performed only after all event conditions are evaluated.this
public DetectorModelProps.Builder role(IRole role)
DetectorModelProps.getRole()
role
- The role that grants permission to AWS IoT Events to perform its operations.this
public DetectorModelProps build()
DetectorModelProps
java.lang.NullPointerException
- if any required attribute was not provided