Class ObjectCreated.ObjectCreatedProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.events.ObjectCreated.ObjectCreatedProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ObjectCreated.ObjectCreatedProps>
- Enclosing interface:
ObjectCreated.ObjectCreatedProps
@Stability(Experimental)
public static final class ObjectCreated.ObjectCreatedProps.Builder
extends Object
implements software.amazon.jsii.Builder<ObjectCreated.ObjectCreatedProps>
A builder for
ObjectCreated.ObjectCreatedProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucket(ObjectCreated.Bucket bucket) Sets the value ofObjectCreated.ObjectCreatedProps.getBucket()build()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofObjectCreated.ObjectCreatedProps.getEventMetadata()object(ObjectCreated.ObjectType object) Sets the value ofObjectCreated.ObjectCreatedProps.getObject()Sets the value ofObjectCreated.ObjectCreatedProps.getReason()Sets the value ofObjectCreated.ObjectCreatedProps.getRequester()Sets the value ofObjectCreated.ObjectCreatedProps.getRequestId()sourceIpAddress(List<String> sourceIpAddress) Sets the value ofObjectCreated.ObjectCreatedProps.getSourceIpAddress()Sets the value ofObjectCreated.ObjectCreatedProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
@Stability(Experimental) public ObjectCreated.ObjectCreatedProps.Builder bucket(ObjectCreated.Bucket bucket) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofObjectCreated.ObjectCreatedProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
object
@Stability(Experimental) public ObjectCreated.ObjectCreatedProps.Builder object(ObjectCreated.ObjectType object) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder reason(List<String> reason) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder requester(List<String> requester) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder requestId(List<String> requestId) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder sourceIpAddress(List<String> sourceIpAddress) Sets the value ofObjectCreated.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 ObjectCreated.ObjectCreatedProps.Builder version(List<String> version) Sets the value ofObjectCreated.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<ObjectCreated.ObjectCreatedProps>- Returns:
- a new instance of
ObjectCreated.ObjectCreatedProps - Throws:
NullPointerException- if any required attribute was not provided
-