Class ContactDetail
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ContactDetail.Builder,
ContactDetail>
ContactDetail includes the following elements.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
First line of the contact's address.final String
Second line of contact's address, if any.static ContactDetail.Builder
builder()
final String
city()
The city of the contact's address.final ContactType
Indicates whether the contact is a person, company, association, or public organization.final String
Indicates whether the contact is a person, company, association, or public organization.final CountryCode
Code for the country of the contact's address.final String
Code for the country of the contact's address.final String
email()
Email address of the contact.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List
<ExtraParam> A list of name-value pairs for parameters required by certain top-level domains.final String
fax()
Fax number of the contact.final String
First name of contact.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the ExtraParams property.final int
hashCode()
final String
lastName()
Last name of contact.final String
Name of the organization for contact types other thanPERSON
.final String
The phone number of the contact.static Class
<? extends ContactDetail.Builder> final String
state()
The state or province of the contact's city.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
zipCode()
The zip or postal code of the contact's address.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
firstName
First name of contact.
- Returns:
- First name of contact.
-
lastName
Last name of contact.
- Returns:
- Last name of contact.
-
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 forOrganizationName
. -
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 bePERSON
for all three contacts.
If the service returns an enum value that is not available in the current SDK version,
contactType
will returnContactType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcontactTypeAsString()
.- Returns:
- 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 forOrganizationName
. -
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 bePERSON
for all three contacts.
-
- See Also:
-
-
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 forOrganizationName
. -
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 bePERSON
for all three contacts.
If the service returns an enum value that is not available in the current SDK version,
contactType
will returnContactType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcontactTypeAsString()
.- Returns:
- 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 forOrganizationName
. -
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 bePERSON
for all three contacts.
-
- See Also:
-
-
organizationName
Name of the organization for contact types other than
PERSON
.- Returns:
- Name of the organization for contact types other than
PERSON
.
-
addressLine1
First line of the contact's address.
- Returns:
- First line of the contact's address.
-
addressLine2
Second line of contact's address, if any.
- Returns:
- Second line of contact's address, if any.
-
city
The city of the contact's address.
- Returns:
- The city of the contact's address.
-
state
The state or province of the contact's city.
- Returns:
- The state or province of the contact's city.
-
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 returnCountryCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcountryCodeAsString()
.- Returns:
- Code for the country of the contact's address.
- See Also:
-
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 returnCountryCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcountryCodeAsString()
.- Returns:
- Code for the country of the contact's address.
- See Also:
-
zipCode
The zip or postal code of the contact's address.
- Returns:
- The zip or postal code of the contact's address.
-
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"
.- Returns:
- 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"
.
-
email
Email address of the contact.
- Returns:
- Email address of the contact.
-
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"
.- Returns:
- 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"
.
-
hasExtraParams
public final boolean hasExtraParams()For responses, this returns true if the service returned a value for the ExtraParams property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- A list of name-value pairs for parameters required by certain top-level domains.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ContactDetail.Builder,
ContactDetail> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-