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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3.model.S3Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaNotificationConfiguration.builder()
.When the
Consumer
completes,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 account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code
403 Forbidden
(access denied).- Parameters:
expectedBucketOwner
- The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-