@Generated(value="software.amazon.awssdk:codegen") public final class ContactDetail extends Object implements StructuredPojo, ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
ContactDetail includes the following elements.
Modifier and Type | Class and Description |
---|---|
static interface |
ContactDetail.Builder |
Modifier and Type | Method and Description |
---|---|
String |
addressLine1()
First line of the contact's address.
|
String |
addressLine2()
Second line of contact's address, if any.
|
static ContactDetail.Builder |
builder() |
String |
city()
The city of the contact's address.
|
ContactType |
contactType()
Indicates whether the contact is a person, company, association, or public organization.
|
String |
contactTypeAsString()
Indicates whether the contact is a person, company, association, or public organization.
|
CountryCode |
countryCode()
Code for the country of the contact's address.
|
String |
countryCodeAsString()
Code for the country of the contact's address.
|
String |
email()
Email address of the contact.
|
boolean |
equals(Object obj) |
List<ExtraParam> |
extraParams()
A list of name-value pairs for parameters required by certain top-level domains.
|
String |
fax()
Fax number of the contact.
|
String |
firstName()
First name of contact.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
lastName()
Last name of contact.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
organizationName()
Name of the organization for contact types other than
PERSON . |
String |
phoneNumber()
The phone number of the contact.
|
static Class<? extends ContactDetail.Builder> |
serializableBuilderClass() |
String |
state()
The state or province of the contact's city.
|
ContactDetail.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
zipCode()
The zip or postal code of the contact's address.
|
copy
public String firstName()
First name of contact.
public String lastName()
Last name of contact.
public 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.
If the service returns an enum value that is not available in the current SDK version, contactType
will
return ContactType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
contactTypeAsString()
.
PERSON
, you must enter an organization name, and you can't enable privacy
protection for the contact.ContactType
public String contactTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, contactType
will
return ContactType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
contactTypeAsString()
.
PERSON
, you must enter an organization name, and you can't enable privacy
protection for the contact.ContactType
public String organizationName()
Name of the organization for contact types other than PERSON
.
PERSON
.public String addressLine1()
First line of the contact's address.
public String addressLine2()
Second line of contact's address, if any.
public String city()
The city of the contact's address.
public String state()
The state or province of the contact's city.
public CountryCode countryCode()
Code for the country of the contact's address.
If the service returns an enum value that is not available in the current SDK version, countryCode
will
return CountryCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
countryCodeAsString()
.
CountryCode
public String countryCodeAsString()
Code for the country of the contact's address.
If the service returns an enum value that is not available in the current SDK version, countryCode
will
return CountryCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
countryCodeAsString()
.
CountryCode
public String zipCode()
The zip or postal code of the contact's address.
public 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"
.
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 email()
Email address of the contact.
public 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"
.
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> extraParams()
A list of name-value pairs for parameters required by certain top-level domains.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ContactDetail.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
public static ContactDetail.Builder builder()
public static Class<? extends ContactDetail.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.