#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct ResendContactReachabilityEmailOutput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub email_address: ::std::option::Option<::std::string::String>,
pub is_already_verified: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl ResendContactReachabilityEmailOutput {
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn email_address(&self) -> ::std::option::Option<&str> {
self.email_address.as_deref()
}
pub fn is_already_verified(&self) -> ::std::option::Option<bool> {
self.is_already_verified
}
}
impl ::std::fmt::Debug for ResendContactReachabilityEmailOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("ResendContactReachabilityEmailOutput");
formatter.field("domain_name", &self.domain_name);
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("is_already_verified", &self.is_already_verified);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for ResendContactReachabilityEmailOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl ResendContactReachabilityEmailOutput {
pub fn builder() -> crate::operation::resend_contact_reachability_email::builders::ResendContactReachabilityEmailOutputBuilder {
crate::operation::resend_contact_reachability_email::builders::ResendContactReachabilityEmailOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct ResendContactReachabilityEmailOutputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) email_address: ::std::option::Option<::std::string::String>,
pub(crate) is_already_verified: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl ResendContactReachabilityEmailOutputBuilder {
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.email_address = ::std::option::Option::Some(input.into());
self
}
pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.email_address = input;
self
}
pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
&self.email_address
}
pub fn is_already_verified(mut self, input: bool) -> Self {
self.is_already_verified = ::std::option::Option::Some(input);
self
}
pub fn set_is_already_verified(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_already_verified = input;
self
}
pub fn get_is_already_verified(&self) -> &::std::option::Option<bool> {
&self.is_already_verified
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput {
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput {
domain_name: self.domain_name,
email_address: self.email_address,
is_already_verified: self.is_already_verified,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for ResendContactReachabilityEmailOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("ResendContactReachabilityEmailOutputBuilder");
formatter.field("domain_name", &self.domain_name);
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("is_already_verified", &self.is_already_verified);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}