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 bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the bucket.
This field is required.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 get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
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.
This field is required.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 get_notification_configuration(
&self,
) -> &Option<NotificationConfiguration>
pub fn get_notification_configuration( &self, ) -> &Option<NotificationConfiguration>
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 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).
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 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).
sourcepub fn get_expected_bucket_owner(&self) -> &Option<String>
pub fn get_expected_bucket_owner(&self) -> &Option<String>
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).
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 get_skip_destination_validation(&self) -> &Option<bool>
pub fn get_skip_destination_validation(&self) -> &Option<bool>
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
.
source§impl PutBucketNotificationConfigurationInputBuilder
impl PutBucketNotificationConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutBucketNotificationConfigurationOutput, SdkError<PutBucketNotificationConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutBucketNotificationConfigurationOutput, SdkError<PutBucketNotificationConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
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 for PutBucketNotificationConfigurationInputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for PutBucketNotificationConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for PutBucketNotificationConfigurationInputBuilder
impl RefUnwindSafe for PutBucketNotificationConfigurationInputBuilder
impl Send for PutBucketNotificationConfigurationInputBuilder
impl Sync for PutBucketNotificationConfigurationInputBuilder
impl Unpin for PutBucketNotificationConfigurationInputBuilder
impl UnwindSafe for PutBucketNotificationConfigurationInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)