Class CfnDetector.RuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.frauddetector.CfnDetector.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetector.RuleProperty>
- Enclosing interface:
CfnDetector.RuleProperty
@Stability(Stable)
public static final class CfnDetector.RuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetector.RuleProperty>
A builder for
CfnDetector.RuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDetector.RuleProperty.getArn()
build()
Builds the configured instance.createdTime
(String createdTime) Sets the value ofCfnDetector.RuleProperty.getCreatedTime()
description
(String description) Sets the value ofCfnDetector.RuleProperty.getDescription()
detectorId
(String detectorId) Sets the value ofCfnDetector.RuleProperty.getDetectorId()
expression
(String expression) Sets the value ofCfnDetector.RuleProperty.getExpression()
Sets the value ofCfnDetector.RuleProperty.getLanguage()
lastUpdatedTime
(String lastUpdatedTime) Sets the value ofCfnDetector.RuleProperty.getLastUpdatedTime()
Sets the value ofCfnDetector.RuleProperty.getOutcomes()
outcomes
(IResolvable outcomes) Sets the value ofCfnDetector.RuleProperty.getOutcomes()
Sets the value ofCfnDetector.RuleProperty.getRuleId()
ruleVersion
(String ruleVersion) Sets the value ofCfnDetector.RuleProperty.getRuleVersion()
Sets the value ofCfnDetector.RuleProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnDetector.RuleProperty.getArn()
- Parameters:
arn
- The rule ARN.- Returns:
this
-
createdTime
Sets the value ofCfnDetector.RuleProperty.getCreatedTime()
- Parameters:
createdTime
- Timestamp for when the rule was created.- Returns:
this
-
description
Sets the value ofCfnDetector.RuleProperty.getDescription()
- Parameters:
description
- The rule description.- Returns:
this
-
detectorId
Sets the value ofCfnDetector.RuleProperty.getDetectorId()
- Parameters:
detectorId
- The detector for which the rule is associated.- Returns:
this
-
expression
Sets the value ofCfnDetector.RuleProperty.getExpression()
- Parameters:
expression
- The rule expression. A rule expression captures the business logic. For more information, see Rule language reference .- Returns:
this
-
language
Sets the value ofCfnDetector.RuleProperty.getLanguage()
- Parameters:
language
- The rule language. Valid Value: DETECTORPL- Returns:
this
-
lastUpdatedTime
Sets the value ofCfnDetector.RuleProperty.getLastUpdatedTime()
- Parameters:
lastUpdatedTime
- Timestamp for when the rule was last updated.- Returns:
this
-
outcomes
Sets the value ofCfnDetector.RuleProperty.getOutcomes()
- Parameters:
outcomes
- The rule outcome.- Returns:
this
-
outcomes
@Stability(Stable) public CfnDetector.RuleProperty.Builder outcomes(List<? extends Object> outcomes) Sets the value ofCfnDetector.RuleProperty.getOutcomes()
- Parameters:
outcomes
- The rule outcome.- Returns:
this
-
ruleId
Sets the value ofCfnDetector.RuleProperty.getRuleId()
- Parameters:
ruleId
- The rule ID.- Returns:
this
-
ruleVersion
Sets the value ofCfnDetector.RuleProperty.getRuleVersion()
- Parameters:
ruleVersion
- The rule version.- Returns:
this
-
tags
Sets the value ofCfnDetector.RuleProperty.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<CfnDetector.RuleProperty>
- Returns:
- a new instance of
CfnDetector.RuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-