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