Class ContactDetail
- java.lang.Object
-
- software.amazon.awssdk.services.route53domains.model.ContactDetail
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
@Generated("software.amazon.awssdk:codegen") public final class ContactDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
ContactDetail includes the following elements.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContactDetail.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddressLine1()First line of the contact's address.StringaddressLine2()Second line of contact's address, if any.static ContactDetail.Builderbuilder()Stringcity()The city of the contact's address.ContactTypecontactType()Indicates whether the contact is a person, company, association, or public organization.StringcontactTypeAsString()Indicates whether the contact is a person, company, association, or public organization.CountryCodecountryCode()Code for the country of the contact's address.StringcountryCodeAsString()Code for the country of the contact's address.Stringemail()Email address of the contact.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<ExtraParam>extraParams()A list of name-value pairs for parameters required by certain top-level domains.Stringfax()Fax number of the contact.StringfirstName()First name of contact.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasExtraParams()For responses, this returns true if the service returned a value for the ExtraParams property.inthashCode()StringlastName()Last name of contact.StringorganizationName()Name of the organization for contact types other thanPERSON.StringphoneNumber()The phone number of the contact.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ContactDetail.Builder>serializableBuilderClass()Stringstate()The state or province of the contact's city.ContactDetail.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringzipCode()The zip or postal code of the contact's address.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
firstName
public final String firstName()
First name of contact.
- Returns:
- First name of contact.
-
lastName
public final String lastName()
Last name of contact.
- Returns:
- Last name of contact.
-
contactType
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 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:
ContactType
-
-
contactTypeAsString
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 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:
ContactType
-
-
organizationName
public final String organizationName()
Name of the organization for contact types other than
PERSON.- Returns:
- Name of the organization for contact types other than
PERSON.
-
addressLine1
public final String addressLine1()
First line of the contact's address.
- Returns:
- First line of the contact's address.
-
addressLine2
public final String addressLine2()
Second line of contact's address, if any.
- Returns:
- Second line of contact's address, if any.
-
city
public final String city()
The city of the contact's address.
- Returns:
- The city of the contact's address.
-
state
public final String state()
The state or province of the contact's city.
- Returns:
- The state or province of the contact's city.
-
countryCode
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,
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:
CountryCode
-
countryCodeAsString
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,
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:
CountryCode
-
zipCode
public final String zipCode()
The zip or postal code of the contact's address.
- Returns:
- The zip or postal code of the contact's address.
-
phoneNumber
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".- 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
public final String email()
Email address of the contact.
- Returns:
- Email address of the contact.
-
fax
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".- 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
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.- Returns:
- A list of name-value pairs for parameters required by certain top-level domains.
-
toBuilder
public ContactDetail.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContactDetail.Builder,ContactDetail>
-
builder
public static ContactDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContactDetail.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-