Class CfnMalwareProtectionPlanPropsMixin.S3BucketProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.guardduty.CfnMalwareProtectionPlanPropsMixin.S3BucketProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlanPropsMixin.S3BucketProperty>
- Enclosing interface:
CfnMalwareProtectionPlanPropsMixin.S3BucketProperty
@Stability(Stable)
public static final class CfnMalwareProtectionPlanPropsMixin.S3BucketProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlanPropsMixin.S3BucketProperty>
A builder for
CfnMalwareProtectionPlanPropsMixin.S3BucketProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofCfnMalwareProtectionPlanPropsMixin.S3BucketProperty.getBucketName()build()Builds the configured instance.objectPrefixes(List<String> objectPrefixes) Sets the value ofCfnMalwareProtectionPlanPropsMixin.S3BucketProperty.getObjectPrefixes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
@Stability(Stable) public CfnMalwareProtectionPlanPropsMixin.S3BucketProperty.Builder bucketName(String bucketName) Sets the value ofCfnMalwareProtectionPlanPropsMixin.S3BucketProperty.getBucketName()- Parameters:
bucketName- Name of the S3 bucket.- Returns:
this
-
objectPrefixes
@Stability(Stable) public CfnMalwareProtectionPlanPropsMixin.S3BucketProperty.Builder objectPrefixes(List<String> objectPrefixes) Sets the value ofCfnMalwareProtectionPlanPropsMixin.S3BucketProperty.getObjectPrefixes()- Parameters:
objectPrefixes- Information about the specified object prefixes. An S3 object will be scanned only if it belongs to any of the specified object prefixes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlanPropsMixin.S3BucketProperty>- Returns:
- a new instance of
CfnMalwareProtectionPlanPropsMixin.S3BucketProperty - Throws:
NullPointerException- if any required attribute was not provided
-