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