#[non_exhaustive]
pub struct ContactDetailBuilder { /* private fields */ }
Expand description

A builder for ContactDetail.

Implementations§

source§

impl ContactDetailBuilder

source

pub fn first_name(self, input: impl Into<String>) -> Self

First name of contact.

source

pub fn set_first_name(self, input: Option<String>) -> Self

First name of contact.

source

pub fn get_first_name(&self) -> &Option<String>

First name of contact.

source

pub fn last_name(self, input: impl Into<String>) -> Self

Last name of contact.

source

pub fn set_last_name(self, input: Option<String>) -> Self

Last name of contact.

source

pub fn get_last_name(&self) -> &Option<String>

Last name of contact.

source

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 for OrganizationName.

  • 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 be PERSON for all three contacts.

source

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 for OrganizationName.

  • 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 be PERSON for all three contacts.

source

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 for OrganizationName.

  • 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 be PERSON for all three contacts.

source

pub fn organization_name(self, input: impl Into<String>) -> Self

Name of the organization for contact types other than PERSON.

source

pub fn set_organization_name(self, input: Option<String>) -> Self

Name of the organization for contact types other than PERSON.

source

pub fn get_organization_name(&self) -> &Option<String>

Name of the organization for contact types other than PERSON.

source

pub fn address_line1(self, input: impl Into<String>) -> Self

First line of the contact's address.

source

pub fn set_address_line1(self, input: Option<String>) -> Self

First line of the contact's address.

source

pub fn get_address_line1(&self) -> &Option<String>

First line of the contact's address.

source

pub fn address_line2(self, input: impl Into<String>) -> Self

Second line of contact's address, if any.

source

pub fn set_address_line2(self, input: Option<String>) -> Self

Second line of contact's address, if any.

source

pub fn get_address_line2(&self) -> &Option<String>

Second line of contact's address, if any.

source

pub fn city(self, input: impl Into<String>) -> Self

The city of the contact's address.

source

pub fn set_city(self, input: Option<String>) -> Self

The city of the contact's address.

source

pub fn get_city(&self) -> &Option<String>

The city of the contact's address.

source

pub fn state(self, input: impl Into<String>) -> Self

The state or province of the contact's city.

source

pub fn set_state(self, input: Option<String>) -> Self

The state or province of the contact's city.

source

pub fn get_state(&self) -> &Option<String>

The state or province of the contact's city.

source

pub fn country_code(self, input: CountryCode) -> Self

Code for the country of the contact's address.

source

pub fn set_country_code(self, input: Option<CountryCode>) -> Self

Code for the country of the contact's address.

source

pub fn get_country_code(&self) -> &Option<CountryCode>

Code for the country of the contact's address.

source

pub fn zip_code(self, input: impl Into<String>) -> Self

The zip or postal code of the contact's address.

source

pub fn set_zip_code(self, input: Option<String>) -> Self

The zip or postal code of the contact's address.

source

pub fn get_zip_code(&self) -> &Option<String>

The zip or postal code of the contact's address.

source

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".

source

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".

source

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".

source

pub fn email(self, input: impl Into<String>) -> Self

Email address of the contact.

source

pub fn set_email(self, input: Option<String>) -> Self

Email address of the contact.

source

pub fn get_email(&self) -> &Option<String>

Email address of the contact.

source

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".

source

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".

source

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".

source

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.

source

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.

source

pub fn get_extra_params(&self) -> &Option<Vec<ExtraParam>>

A list of name-value pairs for parameters required by certain top-level domains.

source

pub fn build(self) -> ContactDetail

Consumes the builder and constructs a ContactDetail.

Trait Implementations§

source§

impl Clone for ContactDetailBuilder

source§

fn clone(&self) -> ContactDetailBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ContactDetailBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ContactDetailBuilder

source§

fn default() -> ContactDetailBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for ContactDetailBuilder

source§

fn eq(&self, other: &ContactDetailBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ContactDetailBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more