Struct aws_sdk_lightsail::operation::delete_contact_method::builders::DeleteContactMethodInputBuilder
source · #[non_exhaustive]pub struct DeleteContactMethodInputBuilder { /* private fields */ }
Expand description
A builder for DeleteContactMethodInput
.
Implementations§
source§impl DeleteContactMethodInputBuilder
impl DeleteContactMethodInputBuilder
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.
sourcepub fn build(self) -> Result<DeleteContactMethodInput, BuildError>
pub fn build(self) -> Result<DeleteContactMethodInput, BuildError>
Consumes the builder and constructs a DeleteContactMethodInput
.
source§impl DeleteContactMethodInputBuilder
impl DeleteContactMethodInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteContactMethodOutput, SdkError<DeleteContactMethodError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteContactMethodInputBuilder
impl Clone for DeleteContactMethodInputBuilder
source§fn clone(&self) -> DeleteContactMethodInputBuilder
fn clone(&self) -> DeleteContactMethodInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteContactMethodInputBuilder
impl Default for DeleteContactMethodInputBuilder
source§fn default() -> DeleteContactMethodInputBuilder
fn default() -> DeleteContactMethodInputBuilder
source§impl PartialEq for DeleteContactMethodInputBuilder
impl PartialEq for DeleteContactMethodInputBuilder
source§fn eq(&self, other: &DeleteContactMethodInputBuilder) -> bool
fn eq(&self, other: &DeleteContactMethodInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteContactMethodInputBuilder
Auto Trait Implementations§
impl Freeze for DeleteContactMethodInputBuilder
impl RefUnwindSafe for DeleteContactMethodInputBuilder
impl Send for DeleteContactMethodInputBuilder
impl Sync for DeleteContactMethodInputBuilder
impl Unpin for DeleteContactMethodInputBuilder
impl UnwindSafe for DeleteContactMethodInputBuilder
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