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:
  • Method Details

    • 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 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().

      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 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.

      See Also:
    • 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 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().

      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 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.

      See Also:
    • 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, countryCode will return CountryCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from countryCodeAsString().

      Returns:
      Code for the country of the contact's address.
      See Also:
    • 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, countryCode will return CountryCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from countryCodeAsString().

      Returns:
      Code for the country of the contact's address.
      See Also:
    • 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 the 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.
    • 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()
      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 interface ToCopyableBuilder<ContactDetail.Builder,ContactDetail>
      Returns:
      a builder for type T
    • builder

      public static ContactDetail.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ContactDetail.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an 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.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.