Struct aws_sdk_lightsail::types::builders::ContactMethodBuilder
source · #[non_exhaustive]pub struct ContactMethodBuilder { /* private fields */ }
Expand description
A builder for ContactMethod
.
Implementations§
source§impl ContactMethodBuilder
impl ContactMethodBuilder
sourcepub fn contact_endpoint(self, input: impl Into<String>) -> Self
pub fn contact_endpoint(self, input: impl Into<String>) -> Self
The destination of the contact method, such as an email address or a mobile phone number.
sourcepub fn set_contact_endpoint(self, input: Option<String>) -> Self
pub fn set_contact_endpoint(self, input: Option<String>) -> Self
The destination of the contact method, such as an email address or a mobile phone number.
sourcepub fn get_contact_endpoint(&self) -> &Option<String>
pub fn get_contact_endpoint(&self) -> &Option<String>
The destination of the contact method, such as an email address or a mobile phone number.
sourcepub fn status(self, input: ContactMethodStatus) -> Self
pub fn status(self, input: ContactMethodStatus) -> Self
The current status of the contact method.
A contact method has the following possible status:
-
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired. -
Valid
- The contact method has been verified. -
InValid
- An attempt was made to verify the contact method, but the verification has expired.
sourcepub fn set_status(self, input: Option<ContactMethodStatus>) -> Self
pub fn set_status(self, input: Option<ContactMethodStatus>) -> Self
The current status of the contact method.
A contact method has the following possible status:
-
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired. -
Valid
- The contact method has been verified. -
InValid
- An attempt was made to verify the contact method, but the verification has expired.
sourcepub fn get_status(&self) -> &Option<ContactMethodStatus>
pub fn get_status(&self) -> &Option<ContactMethodStatus>
The current status of the contact method.
A contact method has the following possible status:
-
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired. -
Valid
- The contact method has been verified. -
InValid
- An attempt was made to verify the contact method, but the verification has expired.
sourcepub fn protocol(self, input: ContactProtocol) -> Self
pub fn protocol(self, input: ContactProtocol) -> Self
The protocol of the contact method, such as email or SMS (text messaging).
sourcepub fn set_protocol(self, input: Option<ContactProtocol>) -> Self
pub fn set_protocol(self, input: Option<ContactProtocol>) -> Self
The protocol of the contact method, such as email or SMS (text messaging).
sourcepub fn get_protocol(&self) -> &Option<ContactProtocol>
pub fn get_protocol(&self) -> &Option<ContactProtocol>
The protocol of the contact method, such as email or SMS (text messaging).
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the contact method.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the contact method.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the contact method was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the contact method was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the contact method was created.
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type of the contact method.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type of the contact method.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type of the contact method.
sourcepub fn support_code(self, input: impl Into<String>) -> Self
pub fn support_code(self, input: impl Into<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn set_support_code(self, input: Option<String>) -> Self
pub fn set_support_code(self, input: Option<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn get_support_code(&self) -> &Option<String>
pub fn get_support_code(&self) -> &Option<String>
The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn build(self) -> ContactMethod
pub fn build(self) -> ContactMethod
Consumes the builder and constructs a ContactMethod
.
Trait Implementations§
source§impl Clone for ContactMethodBuilder
impl Clone for ContactMethodBuilder
source§fn clone(&self) -> ContactMethodBuilder
fn clone(&self) -> ContactMethodBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContactMethodBuilder
impl Debug for ContactMethodBuilder
source§impl Default for ContactMethodBuilder
impl Default for ContactMethodBuilder
source§fn default() -> ContactMethodBuilder
fn default() -> ContactMethodBuilder
source§impl PartialEq for ContactMethodBuilder
impl PartialEq for ContactMethodBuilder
source§fn eq(&self, other: &ContactMethodBuilder) -> bool
fn eq(&self, other: &ContactMethodBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContactMethodBuilder
Auto Trait Implementations§
impl Freeze for ContactMethodBuilder
impl RefUnwindSafe for ContactMethodBuilder
impl Send for ContactMethodBuilder
impl Sync for ContactMethodBuilder
impl Unpin for ContactMethodBuilder
impl UnwindSafe for ContactMethodBuilder
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