#[non_exhaustive]pub struct ContactDetailBuilder { /* private fields */ }
Expand description
A builder for ContactDetail
.
Implementations§
source§impl ContactDetailBuilder
impl ContactDetailBuilder
sourcepub fn first_name(self, input: impl Into<String>) -> Self
pub fn first_name(self, input: impl Into<String>) -> Self
First name of contact.
sourcepub fn set_first_name(self, input: Option<String>) -> Self
pub fn set_first_name(self, input: Option<String>) -> Self
First name of contact.
sourcepub fn get_first_name(&self) -> &Option<String>
pub fn get_first_name(&self) -> &Option<String>
First name of contact.
sourcepub fn set_last_name(self, input: Option<String>) -> Self
pub fn set_last_name(self, input: Option<String>) -> Self
Last name of contact.
sourcepub fn get_last_name(&self) -> &Option<String>
pub fn get_last_name(&self) -> &Option<String>
Last name of contact.
sourcepub fn contact_type(self, input: ContactType) -> Self
pub fn contact_type(self, input: ContactType) -> Self
Indicates whether the contact is a person, company, association, or public organization. Note the following:
-
If you specify a value other than
PERSON
, you must also specify a value forOrganizationName
. -
For some TLDs, the privacy protection available depends on the value that you specify for
Contact Type
. For the privacy protection settings for your TLD, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide -
For .es domains, the value of
ContactType
must bePERSON
for all three contacts.
sourcepub fn set_contact_type(self, input: Option<ContactType>) -> Self
pub fn set_contact_type(self, input: Option<ContactType>) -> Self
Indicates whether the contact is a person, company, association, or public organization. Note the following:
-
If you specify a value other than
PERSON
, you must also specify a value forOrganizationName
. -
For some TLDs, the privacy protection available depends on the value that you specify for
Contact Type
. For the privacy protection settings for your TLD, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide -
For .es domains, the value of
ContactType
must bePERSON
for all three contacts.
sourcepub fn get_contact_type(&self) -> &Option<ContactType>
pub fn get_contact_type(&self) -> &Option<ContactType>
Indicates whether the contact is a person, company, association, or public organization. Note the following:
-
If you specify a value other than
PERSON
, you must also specify a value forOrganizationName
. -
For some TLDs, the privacy protection available depends on the value that you specify for
Contact Type
. For the privacy protection settings for your TLD, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide -
For .es domains, the value of
ContactType
must bePERSON
for all three contacts.
sourcepub fn organization_name(self, input: impl Into<String>) -> Self
pub fn organization_name(self, input: impl Into<String>) -> Self
Name of the organization for contact types other than PERSON
.
sourcepub fn set_organization_name(self, input: Option<String>) -> Self
pub fn set_organization_name(self, input: Option<String>) -> Self
Name of the organization for contact types other than PERSON
.
sourcepub fn get_organization_name(&self) -> &Option<String>
pub fn get_organization_name(&self) -> &Option<String>
Name of the organization for contact types other than PERSON
.
sourcepub fn address_line1(self, input: impl Into<String>) -> Self
pub fn address_line1(self, input: impl Into<String>) -> Self
First line of the contact's address.
sourcepub fn set_address_line1(self, input: Option<String>) -> Self
pub fn set_address_line1(self, input: Option<String>) -> Self
First line of the contact's address.
sourcepub fn get_address_line1(&self) -> &Option<String>
pub fn get_address_line1(&self) -> &Option<String>
First line of the contact's address.
sourcepub fn address_line2(self, input: impl Into<String>) -> Self
pub fn address_line2(self, input: impl Into<String>) -> Self
Second line of contact's address, if any.
sourcepub fn set_address_line2(self, input: Option<String>) -> Self
pub fn set_address_line2(self, input: Option<String>) -> Self
Second line of contact's address, if any.
sourcepub fn get_address_line2(&self) -> &Option<String>
pub fn get_address_line2(&self) -> &Option<String>
Second line of contact's address, if any.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The state or province of the contact's city.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The state or province of the contact's city.
sourcepub fn country_code(self, input: CountryCode) -> Self
pub fn country_code(self, input: CountryCode) -> Self
Code for the country of the contact's address.
sourcepub fn set_country_code(self, input: Option<CountryCode>) -> Self
pub fn set_country_code(self, input: Option<CountryCode>) -> Self
Code for the country of the contact's address.
sourcepub fn get_country_code(&self) -> &Option<CountryCode>
pub fn get_country_code(&self) -> &Option<CountryCode>
Code for the country of the contact's address.
sourcepub fn zip_code(self, input: impl Into<String>) -> Self
pub fn zip_code(self, input: impl Into<String>) -> Self
The zip or postal code of the contact's address.
sourcepub fn set_zip_code(self, input: Option<String>) -> Self
pub fn set_zip_code(self, input: Option<String>) -> Self
The zip or postal code of the contact's address.
sourcepub fn get_zip_code(&self) -> &Option<String>
pub fn get_zip_code(&self) -> &Option<String>
The zip or postal code of the contact's address.
sourcepub fn phone_number(self, input: impl Into<String>) -> Self
pub fn phone_number(self, input: impl Into<String>) -> Self
The phone number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn set_phone_number(self, input: Option<String>) -> Self
pub fn set_phone_number(self, input: Option<String>) -> Self
The phone number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn get_phone_number(&self) -> &Option<String>
pub fn get_phone_number(&self) -> &Option<String>
The phone number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn fax(self, input: impl Into<String>) -> Self
pub fn fax(self, input: impl Into<String>) -> Self
Fax number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn set_fax(self, input: Option<String>) -> Self
pub fn set_fax(self, input: Option<String>) -> Self
Fax number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn get_fax(&self) -> &Option<String>
pub fn get_fax(&self) -> &Option<String>
Fax number of the contact.
Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
sourcepub fn extra_params(self, input: ExtraParam) -> Self
pub fn extra_params(self, input: ExtraParam) -> Self
Appends an item to extra_params
.
To override the contents of this collection use set_extra_params
.
A list of name-value pairs for parameters required by certain top-level domains.
sourcepub fn set_extra_params(self, input: Option<Vec<ExtraParam>>) -> Self
pub fn set_extra_params(self, input: Option<Vec<ExtraParam>>) -> Self
A list of name-value pairs for parameters required by certain top-level domains.
sourcepub fn get_extra_params(&self) -> &Option<Vec<ExtraParam>>
pub fn get_extra_params(&self) -> &Option<Vec<ExtraParam>>
A list of name-value pairs for parameters required by certain top-level domains.
sourcepub fn build(self) -> ContactDetail
pub fn build(self) -> ContactDetail
Consumes the builder and constructs a ContactDetail
.
Trait Implementations§
source§impl Clone for ContactDetailBuilder
impl Clone for ContactDetailBuilder
source§fn clone(&self) -> ContactDetailBuilder
fn clone(&self) -> ContactDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContactDetailBuilder
impl Debug for ContactDetailBuilder
source§impl Default for ContactDetailBuilder
impl Default for ContactDetailBuilder
source§fn default() -> ContactDetailBuilder
fn default() -> ContactDetailBuilder
source§impl PartialEq for ContactDetailBuilder
impl PartialEq for ContactDetailBuilder
source§fn eq(&self, other: &ContactDetailBuilder) -> bool
fn eq(&self, other: &ContactDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContactDetailBuilder
Auto Trait Implementations§
impl Freeze for ContactDetailBuilder
impl RefUnwindSafe for ContactDetailBuilder
impl Send for ContactDetailBuilder
impl Sync for ContactDetailBuilder
impl Unpin for ContactDetailBuilder
impl UnwindSafe for ContactDetailBuilder
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