Class DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.BlockPublicAccess>
- Enclosing interface:
DetectorEvents.GuardDutyFinding.BlockPublicAccess
@Stability(Experimental)
public static final class DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder
extends Object
implements software.amazon.jsii.Builder<DetectorEvents.GuardDutyFinding.BlockPublicAccess>
A builder for
DetectorEvents.GuardDutyFinding.BlockPublicAccess-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockPublicAcls(List<String> blockPublicAcls) Sets the value ofDetectorEvents.GuardDutyFinding.BlockPublicAccess.getBlockPublicAcls()blockPublicPolicy(List<String> blockPublicPolicy) Sets the value ofDetectorEvents.GuardDutyFinding.BlockPublicAccess.getBlockPublicPolicy()build()Builds the configured instance.ignorePublicAcls(List<String> ignorePublicAcls) Sets the value ofDetectorEvents.GuardDutyFinding.BlockPublicAccess.getIgnorePublicAcls()restrictPublicBuckets(List<String> restrictPublicBuckets)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockPublicAcls
@Stability(Experimental) public DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder blockPublicAcls(List<String> blockPublicAcls) Sets the value ofDetectorEvents.GuardDutyFinding.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 DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder blockPublicPolicy(List<String> blockPublicPolicy) Sets the value ofDetectorEvents.GuardDutyFinding.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 DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder ignorePublicAcls(List<String> ignorePublicAcls) Sets the value ofDetectorEvents.GuardDutyFinding.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 DetectorEvents.GuardDutyFinding.BlockPublicAccess.Builder restrictPublicBuckets(List<String> restrictPublicBuckets) - 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<DetectorEvents.GuardDutyFinding.BlockPublicAccess>- Returns:
- a new instance of
DetectorEvents.GuardDutyFinding.BlockPublicAccess - Throws:
NullPointerException- if any required attribute was not provided
-