Class CfnDetectorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.frauddetector.CfnDetectorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorMixinProps>
- Enclosing interface:
CfnDetectorMixinProps
@Stability(Stable)
public static final class CfnDetectorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorMixinProps>
A builder for
CfnDetectorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedModels(List<? extends Object> associatedModels) Sets the value ofCfnDetectorMixinProps.getAssociatedModels()associatedModels(IResolvable associatedModels) Sets the value ofCfnDetectorMixinProps.getAssociatedModels()build()Builds the configured instance.description(String description) Sets the value ofCfnDetectorMixinProps.getDescription()detectorId(String detectorId) Sets the value ofCfnDetectorMixinProps.getDetectorId()detectorVersionStatus(String detectorVersionStatus) Sets the value ofCfnDetectorMixinProps.getDetectorVersionStatus()eventType(CfnDetectorPropsMixin.EventTypeProperty eventType) Sets the value ofCfnDetectorMixinProps.getEventType()eventType(IResolvable eventType) Sets the value ofCfnDetectorMixinProps.getEventType()ruleExecutionMode(String ruleExecutionMode) Sets the value ofCfnDetectorMixinProps.getRuleExecutionMode()Sets the value ofCfnDetectorMixinProps.getRules()rules(IResolvable rules) Sets the value ofCfnDetectorMixinProps.getRules()Sets the value ofCfnDetectorMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatedModels
@Stability(Stable) public CfnDetectorMixinProps.Builder associatedModels(IResolvable associatedModels) Sets the value ofCfnDetectorMixinProps.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 CfnDetectorMixinProps.Builder associatedModels(List<? extends Object> associatedModels) Sets the value ofCfnDetectorMixinProps.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 ofCfnDetectorMixinProps.getDescription()- Parameters:
description- The detector description.- Returns:
this
-
detectorId
Sets the value ofCfnDetectorMixinProps.getDetectorId()- Parameters:
detectorId- The name of the detector.- Returns:
this
-
detectorVersionStatus
@Stability(Stable) public CfnDetectorMixinProps.Builder detectorVersionStatus(String detectorVersionStatus) Sets the value ofCfnDetectorMixinProps.getDetectorVersionStatus()- Parameters:
detectorVersionStatus- The status of the detector version. If a value is not provided for this property, AWS CloudFormation assumesDRAFTstatus.Valid values:
ACTIVE | DRAFT- Returns:
this
-
eventType
Sets the value ofCfnDetectorMixinProps.getEventType()- Parameters:
eventType- The event type associated with this detector.- Returns:
this
-
eventType
@Stability(Stable) public CfnDetectorMixinProps.Builder eventType(CfnDetectorPropsMixin.EventTypeProperty eventType) Sets the value ofCfnDetectorMixinProps.getEventType()- Parameters:
eventType- The event type associated with this detector.- Returns:
this
-
ruleExecutionMode
Sets the value ofCfnDetectorMixinProps.getRuleExecutionMode()- Parameters:
ruleExecutionMode- The rule execution mode for the rules included in the detector version. Valid values:FIRST_MATCHED | ALL_MATCHEDDefault value:FIRST_MATCHEDYou 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
-
rules
Sets the value ofCfnDetectorMixinProps.getRules()- Parameters:
rules- The rules to include in the detector version.- Returns:
this
-
rules
Sets the value ofCfnDetectorMixinProps.getRules()- Parameters:
rules- The rules to include in the detector version.- Returns:
this
-
tags
Sets the value ofCfnDetectorMixinProps.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<CfnDetectorMixinProps>- Returns:
- a new instance of
CfnDetectorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-