Struct aws_sdk_s3::operation::put_bucket_notification_configuration::builders::PutBucketNotificationConfigurationInputBuilder
source · #[non_exhaustive]pub struct PutBucketNotificationConfigurationInputBuilder { /* private fields */ }
Expand description
A builder for PutBucketNotificationConfigurationInput
.
Implementations§
source§impl PutBucketNotificationConfigurationInputBuilder
impl PutBucketNotificationConfigurationInputBuilder
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
.
Trait Implementations§
source§impl Clone for PutBucketNotificationConfigurationInputBuilder
impl Clone for PutBucketNotificationConfigurationInputBuilder
source§fn clone(&self) -> PutBucketNotificationConfigurationInputBuilder
fn clone(&self) -> PutBucketNotificationConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutBucketNotificationConfigurationInputBuilder
impl Default for PutBucketNotificationConfigurationInputBuilder
source§fn default() -> PutBucketNotificationConfigurationInputBuilder
fn default() -> PutBucketNotificationConfigurationInputBuilder
source§impl PartialEq<PutBucketNotificationConfigurationInputBuilder> for PutBucketNotificationConfigurationInputBuilder
impl PartialEq<PutBucketNotificationConfigurationInputBuilder> for PutBucketNotificationConfigurationInputBuilder
source§fn eq(&self, other: &PutBucketNotificationConfigurationInputBuilder) -> bool
fn eq(&self, other: &PutBucketNotificationConfigurationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.