Class S3EventSelector.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.S3EventSelector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3EventSelector>
- Enclosing interface:
S3EventSelector
@Stability(Stable)
public static final class S3EventSelector.Builder
extends Object
implements software.amazon.jsii.Builder<S3EventSelector>
A builder for
S3EventSelector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofS3EventSelector.getBucket()
build()
Builds the configured instance.objectPrefix
(String objectPrefix) Sets the value ofS3EventSelector.getObjectPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3EventSelector.getBucket()
- Parameters:
bucket
- S3 bucket. This parameter is required.- Returns:
this
-
objectPrefix
Sets the value ofS3EventSelector.getObjectPrefix()
- Parameters:
objectPrefix
- Data events for objects whose key matches this prefix will be logged.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3EventSelector>
- Returns:
- a new instance of
S3EventSelector
- Throws:
NullPointerException
- if any required attribute was not provided
-