@Generated(value="software.amazon.awssdk:codegen") public final class ContactDetail extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
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) |
boolean |
hasExtraParams()
Returns true if the ExtraParams property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
String |
lastName()
Last name of contact.
|
String |
organizationName()
Name of the organization for contact types other than
PERSON . |
String |
phoneNumber()
The phone number of the contact.
|
List<SdkField<?>> |
sdkFields() |
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()
Returns a string representation of this object.
|
String |
zipCode()
The zip or postal code of the contact's address.
|
copy
public final String firstName()
First name of contact.
public final String lastName()
Last name of contact.
public final ContactType 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, if you specify PERSON
, you must specify INDIVIDUAL
for the value of
ES_LEGAL_FORM
.
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()
.
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, if you specify PERSON
, you must specify INDIVIDUAL
for the
value of ES_LEGAL_FORM
.
ContactType
public final String contactTypeAsString()
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, if you specify PERSON
, you must specify INDIVIDUAL
for the value of
ES_LEGAL_FORM
.
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()
.
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, if you specify PERSON
, you must specify INDIVIDUAL
for the
value of ES_LEGAL_FORM
.
ContactType
public final String organizationName()
Name of the organization for contact types other than PERSON
.
PERSON
.public final String addressLine1()
First line of the contact's address.
public final String addressLine2()
Second line of contact's address, if any.
public final String city()
The city of the contact's address.
public final String state()
The state or province of the contact's city.
public final 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 final 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 final String zipCode()
The zip or postal code of the contact's address.
public final 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 final String email()
Email address of the contact.
public final 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 final boolean hasExtraParams()
public final 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.
You can use hasExtraParams()
to see if a value was sent in this field.
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 final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.