pub struct UpdatePool { /* private fields */ }Expand description
Fluent builder constructing a request to UpdatePool.
Updates the configuration of an existing pool. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, enable or disable deletion protection, and enable or disable shared routes.
Implementations
sourceimpl UpdatePool
impl UpdatePool
sourcepub async fn send(self) -> Result<UpdatePoolOutput, SdkError<UpdatePoolError>>
pub async fn send(self) -> Result<UpdatePoolOutput, SdkError<UpdatePoolError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn pool_id(self, input: impl Into<String>) -> Self
pub fn pool_id(self, input: impl Into<String>) -> Self
The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.
sourcepub fn set_pool_id(self, input: Option<String>) -> Self
pub fn set_pool_id(self, input: Option<String>) -> Self
The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.
sourcepub fn two_way_enabled(self, input: bool) -> Self
pub fn two_way_enabled(self, input: bool) -> Self
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
sourcepub fn set_two_way_enabled(self, input: Option<bool>) -> Self
pub fn set_two_way_enabled(self, input: Option<bool>) -> Self
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
sourcepub fn two_way_channel_arn(self, input: impl Into<String>) -> Self
pub fn two_way_channel_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the two way channel.
sourcepub fn set_two_way_channel_arn(self, input: Option<String>) -> Self
pub fn set_two_way_channel_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the two way channel.
sourcepub fn self_managed_opt_outs_enabled(self, input: bool) -> Self
pub fn self_managed_opt_outs_enabled(self, input: bool) -> Self
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
sourcepub fn set_self_managed_opt_outs_enabled(self, input: Option<bool>) -> Self
pub fn set_self_managed_opt_outs_enabled(self, input: Option<bool>) -> Self
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
sourcepub fn opt_out_list_name(self, input: impl Into<String>) -> Self
pub fn opt_out_list_name(self, input: impl Into<String>) -> Self
The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.
sourcepub fn set_opt_out_list_name(self, input: Option<String>) -> Self
pub fn set_opt_out_list_name(self, input: Option<String>) -> Self
The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.
Indicates whether shared routes are enabled for the pool.
Indicates whether shared routes are enabled for the pool.
sourcepub fn deletion_protection_enabled(self, input: bool) -> Self
pub fn deletion_protection_enabled(self, input: bool) -> Self
When set to true the pool can't be deleted.
sourcepub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
pub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
When set to true the pool can't be deleted.
Trait Implementations
sourceimpl Clone for UpdatePool
impl Clone for UpdatePool
sourcefn clone(&self) -> UpdatePool
fn clone(&self) -> UpdatePool
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for UpdatePool
impl Send for UpdatePool
impl Sync for UpdatePool
impl Unpin for UpdatePool
impl !UnwindSafe for UpdatePool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more