Struct aws_sdk_lightsail::operation::get_contact_methods::builders::GetContactMethodsInputBuilder
source · #[non_exhaustive]pub struct GetContactMethodsInputBuilder { /* private fields */ }
Expand description
A builder for GetContactMethodsInput
.
Implementations§
source§impl GetContactMethodsInputBuilder
impl GetContactMethodsInputBuilder
sourcepub fn protocols(self, input: ContactProtocol) -> Self
pub fn protocols(self, input: ContactProtocol) -> Self
Appends an item to protocols
.
To override the contents of this collection use set_protocols
.
The protocols used to send notifications, such as Email
, or SMS
(text messaging).
Specify a protocol in your request to return information about a specific contact method protocol.
sourcepub fn set_protocols(self, input: Option<Vec<ContactProtocol>>) -> Self
pub fn set_protocols(self, input: Option<Vec<ContactProtocol>>) -> Self
The protocols used to send notifications, such as Email
, or SMS
(text messaging).
Specify a protocol in your request to return information about a specific contact method protocol.
sourcepub fn get_protocols(&self) -> &Option<Vec<ContactProtocol>>
pub fn get_protocols(&self) -> &Option<Vec<ContactProtocol>>
The protocols used to send notifications, such as Email
, or SMS
(text messaging).
Specify a protocol in your request to return information about a specific contact method protocol.
sourcepub fn build(self) -> Result<GetContactMethodsInput, BuildError>
pub fn build(self) -> Result<GetContactMethodsInput, BuildError>
Consumes the builder and constructs a GetContactMethodsInput
.
source§impl GetContactMethodsInputBuilder
impl GetContactMethodsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetContactMethodsOutput, SdkError<GetContactMethodsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetContactMethodsOutput, SdkError<GetContactMethodsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetContactMethodsInputBuilder
impl Clone for GetContactMethodsInputBuilder
source§fn clone(&self) -> GetContactMethodsInputBuilder
fn clone(&self) -> GetContactMethodsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetContactMethodsInputBuilder
impl Default for GetContactMethodsInputBuilder
source§fn default() -> GetContactMethodsInputBuilder
fn default() -> GetContactMethodsInputBuilder
source§impl PartialEq for GetContactMethodsInputBuilder
impl PartialEq for GetContactMethodsInputBuilder
source§fn eq(&self, other: &GetContactMethodsInputBuilder) -> bool
fn eq(&self, other: &GetContactMethodsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetContactMethodsInputBuilder
Auto Trait Implementations§
impl Freeze for GetContactMethodsInputBuilder
impl RefUnwindSafe for GetContactMethodsInputBuilder
impl Send for GetContactMethodsInputBuilder
impl Sync for GetContactMethodsInputBuilder
impl Unpin for GetContactMethodsInputBuilder
impl UnwindSafe for GetContactMethodsInputBuilder
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