AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ContactDetail

import "github.com/aws/aws-sdk-go/service/route53domains"

type ContactDetail struct { AddressLine1 *string `type:"string"` AddressLine2 *string `type:"string"` City *string `type:"string"` ContactType *string `type:"string" enum:"ContactType"` CountryCode *string `type:"string" enum:"CountryCode"` Email *string `type:"string"` ExtraParams []*ExtraParam `type:"list"` Fax *string `type:"string"` FirstName *string `type:"string"` LastName *string `type:"string"` OrganizationName *string `type:"string"` PhoneNumber *string `type:"string"` State *string `type:"string"` ZipCode *string `type:"string"` }

ContactDetail includes the following elements.

AddressLine1

Type: *string

First line of the contact's address.

AddressLine2

Type: *string

Second line of contact's address, if any.

City

Type: *string

The city of the contact's address.

ContactType

Type: *string

Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

CountryCode

Type: *string

Code for the country of the contact's address.

Email

Type: *string

Email address of the contact.

ExtraParams

ExtraParam includes the following elements.

Fax

Type: *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".

FirstName

Type: *string

First name of contact.

LastName

Type: *string

Last name of contact.

OrganizationName

Type: *string

Name of the organization for contact types other than PERSON.

PhoneNumber

Type: *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".

State

Type: *string

The state or province of the contact's city.

ZipCode

Type: *string

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

Method

GoString

func (s ContactDetail) GoString() string

GoString returns the string representation

SetAddressLine1

func (s *ContactDetail) SetAddressLine1(v string) *ContactDetail

SetAddressLine1 sets the AddressLine1 field's value.

SetAddressLine2

func (s *ContactDetail) SetAddressLine2(v string) *ContactDetail

SetAddressLine2 sets the AddressLine2 field's value.

SetCity

func (s *ContactDetail) SetCity(v string) *ContactDetail

SetCity sets the City field's value.

SetContactType

func (s *ContactDetail) SetContactType(v string) *ContactDetail

SetContactType sets the ContactType field's value.

SetCountryCode

func (s *ContactDetail) SetCountryCode(v string) *ContactDetail

SetCountryCode sets the CountryCode field's value.

SetEmail

func (s *ContactDetail) SetEmail(v string) *ContactDetail

SetEmail sets the Email field's value.

SetExtraParams

func (s *ContactDetail) SetExtraParams(v []*ExtraParam) *ContactDetail

SetExtraParams sets the ExtraParams field's value.

SetFax

func (s *ContactDetail) SetFax(v string) *ContactDetail

SetFax sets the Fax field's value.

SetFirstName

func (s *ContactDetail) SetFirstName(v string) *ContactDetail

SetFirstName sets the FirstName field's value.

SetLastName

func (s *ContactDetail) SetLastName(v string) *ContactDetail

SetLastName sets the LastName field's value.

SetOrganizationName

func (s *ContactDetail) SetOrganizationName(v string) *ContactDetail

SetOrganizationName sets the OrganizationName field's value.

SetPhoneNumber

func (s *ContactDetail) SetPhoneNumber(v string) *ContactDetail

SetPhoneNumber sets the PhoneNumber field's value.

SetState

func (s *ContactDetail) SetState(v string) *ContactDetail

SetState sets the State field's value.

SetZipCode

func (s *ContactDetail) SetZipCode(v string) *ContactDetail

SetZipCode sets the ZipCode field's value.

String

func (s ContactDetail) String() string

String returns the string representation

Validate

func (s *ContactDetail) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: