Class CfnCustomDetectionRuleAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnCustomDetectionRuleAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomDetectionRuleAssociationProps>
- Enclosing interface:
CfnCustomDetectionRuleAssociationProps
@Stability(Stable)
public static final class CfnCustomDetectionRuleAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomDetectionRuleAssociationProps>
A builder for
CfnCustomDetectionRuleAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCustomDetectionRuleAssociationProps.getMode()Sets the value ofCfnCustomDetectionRuleAssociationProps.getRuleId()tags(List<? extends CfnCustomDetectionRuleAssociation.TagItemProperty> tags) Sets the value ofCfnCustomDetectionRuleAssociationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofCfnCustomDetectionRuleAssociationProps.getMode()- Parameters:
mode- Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings). This parameter is required.- Returns:
this
-
ruleId
Sets the value ofCfnCustomDetectionRuleAssociationProps.getRuleId()- Parameters:
ruleId- The catalog identifier of the custom detection rule to associate. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnCustomDetectionRuleAssociationProps.Builder tags(List<? extends CfnCustomDetectionRuleAssociation.TagItemProperty> tags) Sets the value ofCfnCustomDetectionRuleAssociationProps.getTags()- Parameters:
tags- The tags applied to the association.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomDetectionRuleAssociationProps>- Returns:
- a new instance of
CfnCustomDetectionRuleAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-