@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) |
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()
For responses, this returns true if the service returned a value for the ExtraParams property.
|
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() |
String |
toString()
Returns a string representation of this object.
|
String |
zipCode()
The zip or postal code of the contact's address.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, the value of ContactType must be PERSON for all three contacts.
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, the value of ContactType must be PERSON for all three
contacts.
ContactTypepublic 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, the value of ContactType must be PERSON for all three contacts.
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, the value of ContactType must be PERSON for all three
contacts.
ContactTypepublic 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().
CountryCodepublic 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().
CountryCodepublic 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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExtraParams() method.
public ContactDetail.Builder toBuilder()
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)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.