Class BucketEvents.ObjectCreated.ObjectCreatedProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.events.BucketEvents.ObjectCreated.ObjectCreatedProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketEvents.ObjectCreated.ObjectCreatedProps>
- Enclosing interface:
BucketEvents.ObjectCreated.ObjectCreatedProps
@Stability(Experimental)
public static final class BucketEvents.ObjectCreated.ObjectCreatedProps.Builder
extends Object
implements software.amazon.jsii.Builder<BucketEvents.ObjectCreated.ObjectCreatedProps>
A builder for
BucketEvents.ObjectCreated.ObjectCreatedProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getBucket()build()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getEventMetadata()Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getObject()Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getReason()Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getRequester()Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getRequestId()sourceIpAddress(List<String> sourceIpAddress) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getSourceIpAddress()Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder bucket(BucketEvents.ObjectCreated.Bucket bucket) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getBucket()- Parameters:
bucket- bucket property. Specify an array of string values to match this event if the actual value of bucket is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
object
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder object(BucketEvents.ObjectCreated.ObjectType object) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getObject()- Parameters:
object- object property. Specify an array of string values to match this event if the actual value of object is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
reason
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder reason(List<String> reason) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getReason()- Parameters:
reason- reason property. Specify an array of string values to match this event if the actual value of reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requester
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder requester(List<String> requester) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getRequester()- Parameters:
requester- requester property. Specify an array of string values to match this event if the actual value of requester is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
requestId
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder requestId(List<String> requestId) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getRequestId()- Parameters:
requestId- request-id property. Specify an array of string values to match this event if the actual value of request-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sourceIpAddress
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder sourceIpAddress(List<String> sourceIpAddress) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getSourceIpAddress()- Parameters:
sourceIpAddress- source-ip-address property. Specify an array of string values to match this event if the actual value of source-ip-address is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
version
@Stability(Experimental) public BucketEvents.ObjectCreated.ObjectCreatedProps.Builder version(List<String> version) Sets the value ofBucketEvents.ObjectCreated.ObjectCreatedProps.getVersion()- Parameters:
version- version property. Specify an array of string values to match this event if the actual value of version 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.ObjectCreated.ObjectCreatedProps>- Returns:
- a new instance of
BucketEvents.ObjectCreated.ObjectCreatedProps - Throws:
NullPointerException- if any required attribute was not provided
-