Class GuardDutyFinding.BlockPublicAccess.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.BlockPublicAccess.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.BlockPublicAccess>
- Enclosing interface:
GuardDutyFinding.BlockPublicAccess
@Stability(Experimental)
public static final class GuardDutyFinding.BlockPublicAccess.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.BlockPublicAccess>
A builder for
GuardDutyFinding.BlockPublicAccess-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockPublicAcls(List<String> blockPublicAcls) Sets the value ofGuardDutyFinding.BlockPublicAccess.getBlockPublicAcls()blockPublicPolicy(List<String> blockPublicPolicy) Sets the value ofGuardDutyFinding.BlockPublicAccess.getBlockPublicPolicy()build()Builds the configured instance.ignorePublicAcls(List<String> ignorePublicAcls) Sets the value ofGuardDutyFinding.BlockPublicAccess.getIgnorePublicAcls()restrictPublicBuckets(List<String> restrictPublicBuckets) Sets the value ofGuardDutyFinding.BlockPublicAccess.getRestrictPublicBuckets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockPublicAcls
@Stability(Experimental) public GuardDutyFinding.BlockPublicAccess.Builder blockPublicAcls(List<String> blockPublicAcls) Sets the value ofGuardDutyFinding.BlockPublicAccess.getBlockPublicAcls()- Parameters:
blockPublicAcls- blockPublicAcls property. Specify an array of string values to match this event if the actual value of blockPublicAcls is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
blockPublicPolicy
@Stability(Experimental) public GuardDutyFinding.BlockPublicAccess.Builder blockPublicPolicy(List<String> blockPublicPolicy) Sets the value ofGuardDutyFinding.BlockPublicAccess.getBlockPublicPolicy()- Parameters:
blockPublicPolicy- blockPublicPolicy property. Specify an array of string values to match this event if the actual value of blockPublicPolicy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
ignorePublicAcls
@Stability(Experimental) public GuardDutyFinding.BlockPublicAccess.Builder ignorePublicAcls(List<String> ignorePublicAcls) Sets the value ofGuardDutyFinding.BlockPublicAccess.getIgnorePublicAcls()- Parameters:
ignorePublicAcls- ignorePublicAcls property. Specify an array of string values to match this event if the actual value of ignorePublicAcls is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
restrictPublicBuckets
@Stability(Experimental) public GuardDutyFinding.BlockPublicAccess.Builder restrictPublicBuckets(List<String> restrictPublicBuckets) Sets the value ofGuardDutyFinding.BlockPublicAccess.getRestrictPublicBuckets()- Parameters:
restrictPublicBuckets- restrictPublicBuckets property. Specify an array of string values to match this event if the actual value of restrictPublicBuckets is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GuardDutyFinding.BlockPublicAccess>- Returns:
- a new instance of
GuardDutyFinding.BlockPublicAccess - Throws:
NullPointerException- if any required attribute was not provided
-