Struct aws_sdk_lightsail::operation::delete_contact_method::builders::DeleteContactMethodFluentBuilder
source · pub struct DeleteContactMethodFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteContactMethod
.
Deletes a contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region. However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
Implementations§
source§impl DeleteContactMethodFluentBuilder
impl DeleteContactMethodFluentBuilder
sourcepub fn as_input(&self) -> &DeleteContactMethodInputBuilder
pub fn as_input(&self) -> &DeleteContactMethodInputBuilder
Access the DeleteContactMethod as a reference.
sourcepub async fn send(
self
) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<DeleteContactMethodOutput, DeleteContactMethodError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteContactMethodOutput, DeleteContactMethodError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn protocol(self, input: ContactProtocol) -> Self
pub fn protocol(self, input: ContactProtocol) -> Self
The protocol that will be deleted, such as Email
or SMS
(text messaging).
To delete an Email
and an SMS
contact method if you added both, you must run separate DeleteContactMethod
actions to delete each protocol.
sourcepub fn set_protocol(self, input: Option<ContactProtocol>) -> Self
pub fn set_protocol(self, input: Option<ContactProtocol>) -> Self
The protocol that will be deleted, such as Email
or SMS
(text messaging).
To delete an Email
and an SMS
contact method if you added both, you must run separate DeleteContactMethod
actions to delete each protocol.
sourcepub fn get_protocol(&self) -> &Option<ContactProtocol>
pub fn get_protocol(&self) -> &Option<ContactProtocol>
The protocol that will be deleted, such as Email
or SMS
(text messaging).
To delete an Email
and an SMS
contact method if you added both, you must run separate DeleteContactMethod
actions to delete each protocol.
Trait Implementations§
source§impl Clone for DeleteContactMethodFluentBuilder
impl Clone for DeleteContactMethodFluentBuilder
source§fn clone(&self) -> DeleteContactMethodFluentBuilder
fn clone(&self) -> DeleteContactMethodFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DeleteContactMethodFluentBuilder
impl !RefUnwindSafe for DeleteContactMethodFluentBuilder
impl Send for DeleteContactMethodFluentBuilder
impl Sync for DeleteContactMethodFluentBuilder
impl Unpin for DeleteContactMethodFluentBuilder
impl !UnwindSafe for DeleteContactMethodFluentBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more