Class CfnDetectorModel.DetectorModelDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.DetectorModelDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.DetectorModelDefinitionProperty>
- Enclosing interface:
CfnDetectorModel.DetectorModelDefinitionProperty
@Stability(Stable)
public static final class CfnDetectorModel.DetectorModelDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.DetectorModelDefinitionProperty>
A builder for
CfnDetectorModel.DetectorModelDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.initialStateName
(String initialStateName) Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getInitialStateName()
Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getStates()
states
(IResolvable states) Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getStates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
initialStateName
@Stability(Stable) public CfnDetectorModel.DetectorModelDefinitionProperty.Builder initialStateName(String initialStateName) Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getInitialStateName()
- Parameters:
initialStateName
- The state that is entered at the creation of each detector (instance). This parameter is required.- Returns:
this
-
states
@Stability(Stable) public CfnDetectorModel.DetectorModelDefinitionProperty.Builder states(IResolvable states) Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getStates()
- Parameters:
states
- Information about the states of the detector. This parameter is required.- Returns:
this
-
states
@Stability(Stable) public CfnDetectorModel.DetectorModelDefinitionProperty.Builder states(List<? extends Object> states) Sets the value ofCfnDetectorModel.DetectorModelDefinitionProperty.getStates()
- Parameters:
states
- Information about the states of the detector. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.DetectorModelDefinitionProperty>
- Returns:
- a new instance of
CfnDetectorModel.DetectorModelDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-