Class NotificationKeyFilter.Builder
java.lang.Object
software.amazon.awscdk.services.s3.NotificationKeyFilter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotificationKeyFilter>
- Enclosing interface:
NotificationKeyFilter
@Stability(Stable)
public static final class NotificationKeyFilter.Builder
extends Object
implements software.amazon.jsii.Builder<NotificationKeyFilter>
A builder for
NotificationKeyFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofNotificationKeyFilter.getPrefix()
Sets the value ofNotificationKeyFilter.getSuffix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefix
Sets the value ofNotificationKeyFilter.getPrefix()
- Parameters:
prefix
- S3 keys must have the specified prefix.- Returns:
this
-
suffix
Sets the value ofNotificationKeyFilter.getSuffix()
- Parameters:
suffix
- S3 keys must have the specified suffix.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NotificationKeyFilter>
- Returns:
- a new instance of
NotificationKeyFilter
- Throws:
NullPointerException
- if any required attribute was not provided
-