@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContactDetail extends Object implements Serializable, Cloneable, StructuredPojo
ContactDetail includes the following elements.
Constructor and Description |
---|
ContactDetail() |
Modifier and Type | Method and Description |
---|---|
ContactDetail |
clone() |
boolean |
equals(Object obj) |
String |
getAddressLine1()
First line of the contact's address.
|
String |
getAddressLine2()
Second line of contact's address, if any.
|
String |
getCity()
The city of the contact's address.
|
String |
getContactType()
Indicates whether the contact is a person, company, association, or public organization.
|
String |
getCountryCode()
Code for the country of the contact's address.
|
String |
getEmail()
Email address of the contact.
|
List<ExtraParam> |
getExtraParams()
A list of name-value pairs for parameters required by certain top-level domains.
|
String |
getFax()
Fax number of the contact.
|
String |
getFirstName()
First name of contact.
|
String |
getLastName()
Last name of contact.
|
String |
getOrganizationName()
Name of the organization for contact types other than
PERSON . |
String |
getPhoneNumber()
The phone number of the contact.
|
String |
getState()
The state or province of the contact's city.
|
String |
getZipCode()
The zip or postal code of the contact's address.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddressLine1(String addressLine1)
First line of the contact's address.
|
void |
setAddressLine2(String addressLine2)
Second line of contact's address, if any.
|
void |
setCity(String city)
The city of the contact's address.
|
void |
setContactType(ContactType contactType)
Indicates whether the contact is a person, company, association, or public organization.
|
void |
setContactType(String contactType)
Indicates whether the contact is a person, company, association, or public organization.
|
void |
setCountryCode(CountryCode countryCode)
Code for the country of the contact's address.
|
void |
setCountryCode(String countryCode)
Code for the country of the contact's address.
|
void |
setEmail(String email)
Email address of the contact.
|
void |
setExtraParams(Collection<ExtraParam> extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
|
void |
setFax(String fax)
Fax number of the contact.
|
void |
setFirstName(String firstName)
First name of contact.
|
void |
setLastName(String lastName)
Last name of contact.
|
void |
setOrganizationName(String organizationName)
Name of the organization for contact types other than
PERSON . |
void |
setPhoneNumber(String phoneNumber)
The phone number of the contact.
|
void |
setState(String state)
The state or province of the contact's city.
|
void |
setZipCode(String zipCode)
The zip or postal code of the contact's address.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ContactDetail |
withAddressLine1(String addressLine1)
First line of the contact's address.
|
ContactDetail |
withAddressLine2(String addressLine2)
Second line of contact's address, if any.
|
ContactDetail |
withCity(String city)
The city of the contact's address.
|
ContactDetail |
withContactType(ContactType contactType)
Indicates whether the contact is a person, company, association, or public organization.
|
ContactDetail |
withContactType(String contactType)
Indicates whether the contact is a person, company, association, or public organization.
|
ContactDetail |
withCountryCode(CountryCode countryCode)
Code for the country of the contact's address.
|
ContactDetail |
withCountryCode(String countryCode)
Code for the country of the contact's address.
|
ContactDetail |
withEmail(String email)
Email address of the contact.
|
ContactDetail |
withExtraParams(Collection<ExtraParam> extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
|
ContactDetail |
withExtraParams(ExtraParam... extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
|
ContactDetail |
withFax(String fax)
Fax number of the contact.
|
ContactDetail |
withFirstName(String firstName)
First name of contact.
|
ContactDetail |
withLastName(String lastName)
Last name of contact.
|
ContactDetail |
withOrganizationName(String organizationName)
Name of the organization for contact types other than
PERSON . |
ContactDetail |
withPhoneNumber(String phoneNumber)
The phone number of the contact.
|
ContactDetail |
withState(String state)
The state or province of the contact's city.
|
ContactDetail |
withZipCode(String zipCode)
The zip or postal code of the contact's address.
|
public void setFirstName(String firstName)
First name of contact.
firstName
- First name of contact.public String getFirstName()
First name of contact.
public ContactDetail withFirstName(String firstName)
First name of contact.
firstName
- First name of contact.public void setLastName(String lastName)
Last name of contact.
lastName
- Last name of contact.public String getLastName()
Last name of contact.
public ContactDetail withLastName(String lastName)
Last name of contact.
lastName
- Last name of contact.public void setContactType(String contactType)
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.
contactType
- 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.ContactType
public String getContactType()
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.
PERSON
, you must enter an organization name, and you can't enable privacy
protection for the contact.ContactType
public ContactDetail withContactType(String contactType)
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.
contactType
- 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.ContactType
public void setContactType(ContactType contactType)
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.
contactType
- 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.ContactType
public ContactDetail withContactType(ContactType contactType)
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.
contactType
- 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.ContactType
public void setOrganizationName(String organizationName)
Name of the organization for contact types other than PERSON
.
organizationName
- Name of the organization for contact types other than PERSON
.public String getOrganizationName()
Name of the organization for contact types other than PERSON
.
PERSON
.public ContactDetail withOrganizationName(String organizationName)
Name of the organization for contact types other than PERSON
.
organizationName
- Name of the organization for contact types other than PERSON
.public void setAddressLine1(String addressLine1)
First line of the contact's address.
addressLine1
- First line of the contact's address.public String getAddressLine1()
First line of the contact's address.
public ContactDetail withAddressLine1(String addressLine1)
First line of the contact's address.
addressLine1
- First line of the contact's address.public void setAddressLine2(String addressLine2)
Second line of contact's address, if any.
addressLine2
- Second line of contact's address, if any.public String getAddressLine2()
Second line of contact's address, if any.
public ContactDetail withAddressLine2(String addressLine2)
Second line of contact's address, if any.
addressLine2
- Second line of contact's address, if any.public void setCity(String city)
The city of the contact's address.
city
- The city of the contact's address.public String getCity()
The city of the contact's address.
public ContactDetail withCity(String city)
The city of the contact's address.
city
- The city of the contact's address.public void setState(String state)
The state or province of the contact's city.
state
- The state or province of the contact's city.public String getState()
The state or province of the contact's city.
public ContactDetail withState(String state)
The state or province of the contact's city.
state
- The state or province of the contact's city.public void setCountryCode(String countryCode)
Code for the country of the contact's address.
countryCode
- Code for the country of the contact's address.CountryCode
public String getCountryCode()
Code for the country of the contact's address.
CountryCode
public ContactDetail withCountryCode(String countryCode)
Code for the country of the contact's address.
countryCode
- Code for the country of the contact's address.CountryCode
public void setCountryCode(CountryCode countryCode)
Code for the country of the contact's address.
countryCode
- Code for the country of the contact's address.CountryCode
public ContactDetail withCountryCode(CountryCode countryCode)
Code for the country of the contact's address.
countryCode
- Code for the country of the contact's address.CountryCode
public void setZipCode(String zipCode)
The zip or postal code of the contact's address.
zipCode
- The zip or postal code of the contact's address.public String getZipCode()
The zip or postal code of the contact's address.
public ContactDetail withZipCode(String zipCode)
The zip or postal code of the contact's address.
zipCode
- The zip or postal code of the contact's address.public void setPhoneNumber(String phoneNumber)
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"
.
phoneNumber
- 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"
.
public String getPhoneNumber()
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"
.
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"
.
public ContactDetail withPhoneNumber(String phoneNumber)
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"
.
phoneNumber
- 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"
.
public void setEmail(String email)
Email address of the contact.
email
- Email address of the contact.public String getEmail()
Email address of the contact.
public ContactDetail withEmail(String email)
Email address of the contact.
email
- Email address of the contact.public void setFax(String fax)
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"
.
fax
- 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"
.
public String getFax()
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"
.
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"
.
public ContactDetail withFax(String fax)
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"
.
fax
- 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"
.
public List<ExtraParam> getExtraParams()
A list of name-value pairs for parameters required by certain top-level domains.
public void setExtraParams(Collection<ExtraParam> extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
extraParams
- A list of name-value pairs for parameters required by certain top-level domains.public ContactDetail withExtraParams(ExtraParam... extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
NOTE: This method appends the values to the existing list (if any). Use
setExtraParams(java.util.Collection)
or withExtraParams(java.util.Collection)
if you want to
override the existing values.
extraParams
- A list of name-value pairs for parameters required by certain top-level domains.public ContactDetail withExtraParams(Collection<ExtraParam> extraParams)
A list of name-value pairs for parameters required by certain top-level domains.
extraParams
- A list of name-value pairs for parameters required by certain top-level domains.public String toString()
toString
in class Object
Object.toString()
public ContactDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.