Class ContactDetail
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
ContactDetail includes the following elements.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringFirst line of the contact's address.final StringSecond line of contact's address, if any.static ContactDetail.Builderbuilder()final Stringcity()The city of the contact's address.final ContactTypeIndicates whether the contact is a person, company, association, or public organization.final StringIndicates whether the contact is a person, company, association, or public organization.final CountryCodeCode for the country of the contact's address.final StringCode for the country of the contact's address.final Stringemail()Email address of the contact.final booleanfinal booleanequalsBySdkFields(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 Stringfax()Fax number of the contact.final StringFirst name of contact.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the ExtraParams property.final inthashCode()final StringlastName()Last name of contact.final StringName of the organization for contact types other thanPERSON.final StringThe phone number of the contact.static Class<? extends ContactDetail.Builder> final Stringstate()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 StringtoString()Returns a string representation of this object.final StringzipCode()The zip or postal code of the contact's address.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
firstName
-
lastName
-
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
ContactTypemust bePERSONfor all three contacts.
If the service returns an enum value that is not available in the current SDK version,
contactTypewill 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
ContactTypemust bePERSONfor 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
ContactTypemust bePERSONfor all three contacts.
If the service returns an enum value that is not available in the current SDK version,
contactTypewill 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
ContactTypemust bePERSONfor 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,
countryCodewill 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,
countryCodewill 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
-
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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ContactDetail.Builder,ContactDetail> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-