pub struct Builder { /* private fields */ }Expand description
A builder for PutBucketNotificationConfigurationInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the bucket.
sourcepub fn notification_configuration(self, input: NotificationConfiguration) -> Self
pub fn notification_configuration(self, input: NotificationConfiguration) -> Self
A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.
sourcepub fn set_notification_configuration(
self,
input: Option<NotificationConfiguration>
) -> Self
pub fn set_notification_configuration(
self,
input: Option<NotificationConfiguration>
) -> Self
A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.
sourcepub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
pub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
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).
sourcepub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
pub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
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).
sourcepub fn skip_destination_validation(self, input: bool) -> Self
pub fn skip_destination_validation(self, input: bool) -> Self
Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.
sourcepub fn set_skip_destination_validation(self, input: Option<bool>) -> Self
pub fn set_skip_destination_validation(self, input: Option<bool>) -> Self
Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.
sourcepub fn build(
self
) -> Result<PutBucketNotificationConfigurationInput, BuildError>
pub fn build(
self
) -> Result<PutBucketNotificationConfigurationInput, BuildError>
Consumes the builder and constructs a PutBucketNotificationConfigurationInput.