Class CfnMalwareProtectionPlan.S3BucketProperty.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.S3BucketProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlan.S3BucketProperty>
- Enclosing interface:
CfnMalwareProtectionPlan.S3BucketProperty
@Stability(Stable)
public static final class CfnMalwareProtectionPlan.S3BucketProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlan.S3BucketProperty>
A builder for
CfnMalwareProtectionPlan.S3BucketProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnMalwareProtectionPlan.S3BucketProperty.getBucketName()
build()
Builds the configured instance.objectPrefixes
(List<String> objectPrefixes) Sets the value ofCfnMalwareProtectionPlan.S3BucketProperty.getObjectPrefixes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
@Stability(Stable) public CfnMalwareProtectionPlan.S3BucketProperty.Builder bucketName(String bucketName) Sets the value ofCfnMalwareProtectionPlan.S3BucketProperty.getBucketName()
- Parameters:
bucketName
- Name of the S3 bucket.- Returns:
this
-
objectPrefixes
@Stability(Stable) public CfnMalwareProtectionPlan.S3BucketProperty.Builder objectPrefixes(List<String> objectPrefixes) Sets the value ofCfnMalwareProtectionPlan.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlan.S3BucketProperty>
- Returns:
- a new instance of
CfnMalwareProtectionPlan.S3BucketProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-