Class BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.events.BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketEvents.AWSAPICallViaCloudTrail.RequestParameters>
- Enclosing interface:
BucketEvents.AWSAPICallViaCloudTrail.RequestParameters
@Stability(Experimental)
public static final class BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder
extends Object
implements software.amazon.jsii.Builder<BucketEvents.AWSAPICallViaCloudTrail.RequestParameters>
A builder for
BucketEvents.AWSAPICallViaCloudTrail.RequestParameters-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(List<String> bucketName) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getBucketName()build()Builds the configured instance.Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getHost()Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getKey()Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getLegalHold()Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getRetention()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
@Stability(Experimental) public BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder bucketName(List<String> bucketName) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getBucketName()- Parameters:
bucketName- bucketName property. Specify an array of string values to match this event if the actual value of bucketName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
host
@Stability(Experimental) public BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder host(List<String> host) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getHost()- Parameters:
host- Host property. Specify an array of string values to match this event if the actual value of Host is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
key
@Stability(Experimental) public BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder key(List<String> key) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getKey()- Parameters:
key- key property. Specify an array of string values to match this event if the actual value of key is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
legalHold
@Stability(Experimental) public BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder legalHold(List<String> legalHold) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getLegalHold()- Parameters:
legalHold- legal-hold property. Specify an array of string values to match this event if the actual value of legal-hold is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
retention
@Stability(Experimental) public BucketEvents.AWSAPICallViaCloudTrail.RequestParameters.Builder retention(List<String> retention) Sets the value ofBucketEvents.AWSAPICallViaCloudTrail.RequestParameters.getRetention()- Parameters:
retention- retention property. Specify an array of string values to match this event if the actual value of retention 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<BucketEvents.AWSAPICallViaCloudTrail.RequestParameters>- Returns:
- a new instance of
BucketEvents.AWSAPICallViaCloudTrail.RequestParameters - Throws:
NullPointerException- if any required attribute was not provided
-