@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContactInformation extends Object implements Serializable, Cloneable, StructuredPojo
Contains the details of the primary contact information associated with an Amazon Web Services account.
Constructor and Description |
---|
ContactInformation() |
Modifier and Type | Method and Description |
---|---|
ContactInformation |
clone() |
boolean |
equals(Object obj) |
String |
getAddressLine1()
The first line of the primary contact address.
|
String |
getAddressLine2()
The second line of the primary contact address, if any.
|
String |
getAddressLine3()
The third line of the primary contact address, if any.
|
String |
getCity()
The city of the primary contact address.
|
String |
getCompanyName()
The name of the company associated with the primary contact information, if any.
|
String |
getCountryCode()
The ISO-3166 two-letter country code for the primary contact address.
|
String |
getDistrictOrCounty()
The district or county of the primary contact address, if any.
|
String |
getFullName()
The full name of the primary contact address.
|
String |
getPhoneNumber()
The phone number of the primary contact information.
|
String |
getPostalCode()
The postal code of the primary contact address.
|
String |
getStateOrRegion()
The state or region of the primary contact address.
|
String |
getWebsiteUrl()
The URL of the website associated with the primary contact information, if any.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddressLine1(String addressLine1)
The first line of the primary contact address.
|
void |
setAddressLine2(String addressLine2)
The second line of the primary contact address, if any.
|
void |
setAddressLine3(String addressLine3)
The third line of the primary contact address, if any.
|
void |
setCity(String city)
The city of the primary contact address.
|
void |
setCompanyName(String companyName)
The name of the company associated with the primary contact information, if any.
|
void |
setCountryCode(String countryCode)
The ISO-3166 two-letter country code for the primary contact address.
|
void |
setDistrictOrCounty(String districtOrCounty)
The district or county of the primary contact address, if any.
|
void |
setFullName(String fullName)
The full name of the primary contact address.
|
void |
setPhoneNumber(String phoneNumber)
The phone number of the primary contact information.
|
void |
setPostalCode(String postalCode)
The postal code of the primary contact address.
|
void |
setStateOrRegion(String stateOrRegion)
The state or region of the primary contact address.
|
void |
setWebsiteUrl(String websiteUrl)
The URL of the website associated with the primary contact information, if any.
|
String |
toString()
Returns a string representation of this object.
|
ContactInformation |
withAddressLine1(String addressLine1)
The first line of the primary contact address.
|
ContactInformation |
withAddressLine2(String addressLine2)
The second line of the primary contact address, if any.
|
ContactInformation |
withAddressLine3(String addressLine3)
The third line of the primary contact address, if any.
|
ContactInformation |
withCity(String city)
The city of the primary contact address.
|
ContactInformation |
withCompanyName(String companyName)
The name of the company associated with the primary contact information, if any.
|
ContactInformation |
withCountryCode(String countryCode)
The ISO-3166 two-letter country code for the primary contact address.
|
ContactInformation |
withDistrictOrCounty(String districtOrCounty)
The district or county of the primary contact address, if any.
|
ContactInformation |
withFullName(String fullName)
The full name of the primary contact address.
|
ContactInformation |
withPhoneNumber(String phoneNumber)
The phone number of the primary contact information.
|
ContactInformation |
withPostalCode(String postalCode)
The postal code of the primary contact address.
|
ContactInformation |
withStateOrRegion(String stateOrRegion)
The state or region of the primary contact address.
|
ContactInformation |
withWebsiteUrl(String websiteUrl)
The URL of the website associated with the primary contact information, if any.
|
public void setAddressLine1(String addressLine1)
The first line of the primary contact address.
addressLine1
- The first line of the primary contact address.public String getAddressLine1()
The first line of the primary contact address.
public ContactInformation withAddressLine1(String addressLine1)
The first line of the primary contact address.
addressLine1
- The first line of the primary contact address.public void setAddressLine2(String addressLine2)
The second line of the primary contact address, if any.
addressLine2
- The second line of the primary contact address, if any.public String getAddressLine2()
The second line of the primary contact address, if any.
public ContactInformation withAddressLine2(String addressLine2)
The second line of the primary contact address, if any.
addressLine2
- The second line of the primary contact address, if any.public void setAddressLine3(String addressLine3)
The third line of the primary contact address, if any.
addressLine3
- The third line of the primary contact address, if any.public String getAddressLine3()
The third line of the primary contact address, if any.
public ContactInformation withAddressLine3(String addressLine3)
The third line of the primary contact address, if any.
addressLine3
- The third line of the primary contact address, if any.public void setCity(String city)
The city of the primary contact address.
city
- The city of the primary contact address.public String getCity()
The city of the primary contact address.
public ContactInformation withCity(String city)
The city of the primary contact address.
city
- The city of the primary contact address.public void setCompanyName(String companyName)
The name of the company associated with the primary contact information, if any.
companyName
- The name of the company associated with the primary contact information, if any.public String getCompanyName()
The name of the company associated with the primary contact information, if any.
public ContactInformation withCompanyName(String companyName)
The name of the company associated with the primary contact information, if any.
companyName
- The name of the company associated with the primary contact information, if any.public void setCountryCode(String countryCode)
The ISO-3166 two-letter country code for the primary contact address.
countryCode
- The ISO-3166 two-letter country code for the primary contact address.public String getCountryCode()
The ISO-3166 two-letter country code for the primary contact address.
public ContactInformation withCountryCode(String countryCode)
The ISO-3166 two-letter country code for the primary contact address.
countryCode
- The ISO-3166 two-letter country code for the primary contact address.public void setDistrictOrCounty(String districtOrCounty)
The district or county of the primary contact address, if any.
districtOrCounty
- The district or county of the primary contact address, if any.public String getDistrictOrCounty()
The district or county of the primary contact address, if any.
public ContactInformation withDistrictOrCounty(String districtOrCounty)
The district or county of the primary contact address, if any.
districtOrCounty
- The district or county of the primary contact address, if any.public void setFullName(String fullName)
The full name of the primary contact address.
fullName
- The full name of the primary contact address.public String getFullName()
The full name of the primary contact address.
public ContactInformation withFullName(String fullName)
The full name of the primary contact address.
fullName
- The full name of the primary contact address.public void setPhoneNumber(String phoneNumber)
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
phoneNumber
- The phone number of the primary contact information. The number will be validated and, in some countries,
checked for activation.public String getPhoneNumber()
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
public ContactInformation withPhoneNumber(String phoneNumber)
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
phoneNumber
- The phone number of the primary contact information. The number will be validated and, in some countries,
checked for activation.public void setPostalCode(String postalCode)
The postal code of the primary contact address.
postalCode
- The postal code of the primary contact address.public String getPostalCode()
The postal code of the primary contact address.
public ContactInformation withPostalCode(String postalCode)
The postal code of the primary contact address.
postalCode
- The postal code of the primary contact address.public void setStateOrRegion(String stateOrRegion)
The state or region of the primary contact address. If the mailing address is within the United States (US), the
value in this field can be either a two character state code (for example, NJ
) or the full state
name (for example, New Jersey
). This field is required in the following countries: US
,
CA
, GB
, DE
, JP
, IN
, and BR
.
stateOrRegion
- The state or region of the primary contact address. If the mailing address is within the United States
(US), the value in this field can be either a two character state code (for example, NJ
) or
the full state name (for example, New Jersey
). This field is required in the following
countries: US
, CA
, GB
, DE
, JP
,
IN
, and BR
.public String getStateOrRegion()
The state or region of the primary contact address. If the mailing address is within the United States (US), the
value in this field can be either a two character state code (for example, NJ
) or the full state
name (for example, New Jersey
). This field is required in the following countries: US
,
CA
, GB
, DE
, JP
, IN
, and BR
.
NJ
) or
the full state name (for example, New Jersey
). This field is required in the following
countries: US
, CA
, GB
, DE
, JP
,
IN
, and BR
.public ContactInformation withStateOrRegion(String stateOrRegion)
The state or region of the primary contact address. If the mailing address is within the United States (US), the
value in this field can be either a two character state code (for example, NJ
) or the full state
name (for example, New Jersey
). This field is required in the following countries: US
,
CA
, GB
, DE
, JP
, IN
, and BR
.
stateOrRegion
- The state or region of the primary contact address. If the mailing address is within the United States
(US), the value in this field can be either a two character state code (for example, NJ
) or
the full state name (for example, New Jersey
). This field is required in the following
countries: US
, CA
, GB
, DE
, JP
,
IN
, and BR
.public void setWebsiteUrl(String websiteUrl)
The URL of the website associated with the primary contact information, if any.
websiteUrl
- The URL of the website associated with the primary contact information, if any.public String getWebsiteUrl()
The URL of the website associated with the primary contact information, if any.
public ContactInformation withWebsiteUrl(String websiteUrl)
The URL of the website associated with the primary contact information, if any.
websiteUrl
- The URL of the website associated with the primary contact information, if any.public String toString()
toString
in class Object
Object.toString()
public ContactInformation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.