Class CfnDetectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.frauddetector.CfnDetectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorProps>
- Enclosing interface:
CfnDetectorProps
@Stability(Stable)
public static final class CfnDetectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorProps>
A builder for
CfnDetectorProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedModels
(List<? extends Object> associatedModels) Sets the value ofCfnDetectorProps.getAssociatedModels()
associatedModels
(IResolvable associatedModels) Sets the value ofCfnDetectorProps.getAssociatedModels()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnDetectorProps.getDescription()
detectorId
(String detectorId) Sets the value ofCfnDetectorProps.getDetectorId()
detectorVersionStatus
(String detectorVersionStatus) Sets the value ofCfnDetectorProps.getDetectorVersionStatus()
eventType
(IResolvable eventType) Sets the value ofCfnDetectorProps.getEventType()
eventType
(CfnDetector.EventTypeProperty eventType) Sets the value ofCfnDetectorProps.getEventType()
ruleExecutionMode
(String ruleExecutionMode) Sets the value ofCfnDetectorProps.getRuleExecutionMode()
Sets the value ofCfnDetectorProps.getRules()
rules
(IResolvable rules) Sets the value ofCfnDetectorProps.getRules()
Sets the value ofCfnDetectorProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofCfnDetectorProps.getDetectorId()
- Parameters:
detectorId
- The name of the detector. This parameter is required.- Returns:
this
-
eventType
Sets the value ofCfnDetectorProps.getEventType()
- Parameters:
eventType
- The event type associated with this detector. This parameter is required.- Returns:
this
-
eventType
@Stability(Stable) public CfnDetectorProps.Builder eventType(CfnDetector.EventTypeProperty eventType) Sets the value ofCfnDetectorProps.getEventType()
- Parameters:
eventType
- The event type associated with this detector. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnDetectorProps.getRules()
- Parameters:
rules
- The rules to include in the detector version. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnDetectorProps.getRules()
- Parameters:
rules
- The rules to include in the detector version. This parameter is required.- Returns:
this
-
associatedModels
Sets the value ofCfnDetectorProps.getAssociatedModels()
- Parameters:
associatedModels
- The models to associate with this detector. You must provide the ARNs of all the models you want to associate.- Returns:
this
-
associatedModels
@Stability(Stable) public CfnDetectorProps.Builder associatedModels(List<? extends Object> associatedModels) Sets the value ofCfnDetectorProps.getAssociatedModels()
- Parameters:
associatedModels
- The models to associate with this detector. You must provide the ARNs of all the models you want to associate.- Returns:
this
-
description
Sets the value ofCfnDetectorProps.getDescription()
- Parameters:
description
- The detector description.- Returns:
this
-
detectorVersionStatus
@Stability(Stable) public CfnDetectorProps.Builder detectorVersionStatus(String detectorVersionStatus) Sets the value ofCfnDetectorProps.getDetectorVersionStatus()
- Parameters:
detectorVersionStatus
- The status of the detector version. If a value is not provided for this property, AWS CloudFormation assumesDRAFT
status.Valid values:
ACTIVE | DRAFT
- Returns:
this
-
ruleExecutionMode
Sets the value ofCfnDetectorProps.getRuleExecutionMode()
- Parameters:
ruleExecutionMode
- The rule execution mode for the rules included in the detector version. Valid values:FIRST_MATCHED | ALL_MATCHED
Default value:FIRST_MATCHED
You can define and edit the rule mode at the detector version level, when it is in draft status.
If you specify
FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.If you specifiy
ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.- Returns:
this
-
tags
Sets the value ofCfnDetectorProps.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorProps>
- Returns:
- a new instance of
CfnDetectorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-