Interface PutBucketNotificationConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutBucketNotificationConfigurationRequest.Builder,,PutBucketNotificationConfigurationRequest> S3Request.Builder,SdkBuilder<PutBucketNotificationConfigurationRequest.Builder,,PutBucketNotificationConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutBucketNotificationConfigurationRequest
public static interface PutBucketNotificationConfigurationRequest.Builder
extends S3Request.Builder, SdkPojo, CopyableBuilder<PutBucketNotificationConfigurationRequest.Builder,PutBucketNotificationConfigurationRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the bucket.expectedBucketOwner(String expectedBucketOwner) The account ID of the expected bucket owner.notificationConfiguration(Consumer<NotificationConfiguration.Builder> notificationConfiguration) Sets the value of the NotificationConfiguration property for this object.notificationConfiguration(NotificationConfiguration notificationConfiguration) Sets the value of the NotificationConfiguration property for this object.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.skipDestinationValidation(Boolean skipDestinationValidation) Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3.model.S3Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
bucket
The name of the bucket.
- Parameters:
bucket- The name of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationConfiguration
PutBucketNotificationConfigurationRequest.Builder notificationConfiguration(NotificationConfiguration notificationConfiguration) Sets the value of the NotificationConfiguration property for this object.- Parameters:
notificationConfiguration- The new value for the NotificationConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationConfiguration
default PutBucketNotificationConfigurationRequest.Builder notificationConfiguration(Consumer<NotificationConfiguration.Builder> notificationConfiguration) Sets the value of the NotificationConfiguration property for this object. This is a convenience method that creates an instance of theNotificationConfiguration.Builderavoiding the need to create one manually viaNotificationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotificationConfiguration(NotificationConfiguration).- Parameters:
notificationConfiguration- a consumer that will call methods onNotificationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedBucketOwner
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code
403 Forbidden(access denied).- Parameters:
expectedBucketOwner- The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code403 Forbidden(access denied).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skipDestinationValidation
PutBucketNotificationConfigurationRequest.Builder skipDestinationValidation(Boolean skipDestinationValidation) Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.
- Parameters:
skipDestinationValidation- Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutBucketNotificationConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutBucketNotificationConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-