Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.route53domains.model;
  

ContactDetail includes the following elements.

  
  public class ContactDetail implements SerializableCloneable {

    
First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

  
      private String firstName;

    
Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

  
      private String lastName;

    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

  
      private String contactType;

    
Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

  
      private String organizationName;

    
First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

  
      private String addressLine1;

    
Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

  
      private String addressLine2;

    
The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

 
     private String city;

    
The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

 
     private String state;

    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

 
     private String countryCode;

    
The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

 
     private String zipCode;

    
The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 30

 
     private String phoneNumber;

    
Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 254

 
     private String email;

    
Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 30

 
     private String fax;

    
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

 
First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Returns:
First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public String getFirstName() {
         return ;
     }
    
    
First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Parameters:
firstName First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public void setFirstName(String firstName) {
         this. = firstName;
     }
    
    
First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
firstName First name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withFirstName(String firstName) {
         this. = firstName;
         return this;
     }

    
Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Returns:
Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public String getLastName() {
         return ;
     }
    
    
Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Parameters:
lastName Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public void setLastName(String lastName) {
         this. = lastName;
     }
    
    
Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
lastName Last name of contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withLastName(String lastName) {
         this. = lastName;
         return this;
     }

    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

Returns:
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
ContactType
 
     public String getContactType() {
         return ;
     }
    
    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

Parameters:
contactType Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
ContactType
 
     public void setContactType(String contactType) {
         this. = contactType;
     }
    
    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

Parameters:
contactType Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ContactType
 
     public ContactDetail withContactType(String contactType) {
         this. = contactType;
         return this;
     }

    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

Parameters:
contactType Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
ContactType
 
     public void setContactType(ContactType contactType) {
         this. = contactType.toString();
     }
    
    
Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER

Parameters:
contactType Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ContactType
 
     public ContactDetail withContactType(ContactType contactType) {
         this. = contactType.toString();
         return this;
     }

    
Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Returns:
Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public String getOrganizationName() {
         return ;
     }
    
    
Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Parameters:
organizationName Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public void setOrganizationName(String organizationName) {
         this. = organizationName;
     }
    
    
Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
organizationName Name of the organization for contact types other than PERSON.

Type: String

Default: None

Constraints: Maximum 255 characters. Contact type must not be PERSON.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withOrganizationName(String organizationName) {
         this. = organizationName;
         return this;
     }

    
First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Returns:
First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public String getAddressLine1() {
         return ;
     }
    
    
First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Parameters:
addressLine1 First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public void setAddressLine1(String addressLine1) {
         this. = addressLine1;
     }
    
    
First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
addressLine1 First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withAddressLine1(String addressLine1) {
         this. = addressLine1;
         return this;
     }

    
Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Returns:
Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public String getAddressLine2() {
         return ;
     }
    
    
Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Parameters:
addressLine2 Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public void setAddressLine2(String addressLine2) {
         this. = addressLine2;
     }
    
    
Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
addressLine2 Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withAddressLine2(String addressLine2) {
         this. = addressLine2;
         return this;
     }

    
The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Returns:
The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public String getCity() {
         return ;
     }
    
    
The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 255

Parameters:
city The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public void setCity(String city) {
         this. = city;
     }
    
    
The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
city The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withCity(String city) {
         this. = city;
         return this;
     }

    
The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Returns:
The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public String getState() {
         return ;
     }
    
    
The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Parameters:
state The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public void setState(String state) {
         this. = state;
     }
    
    
The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
state The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withState(String state) {
         this. = state;
         return this;
     }

    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

Returns:
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
CountryCode
 
     public String getCountryCode() {
         return ;
     }
    
    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

Parameters:
countryCode Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
CountryCode
 
     public void setCountryCode(String countryCode) {
         this. = countryCode;
     }
    
    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

Parameters:
countryCode Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
CountryCode
 
     public ContactDetail withCountryCode(String countryCode) {
         this. = countryCode;
         return this;
     }

    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

Parameters:
countryCode Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

See also:
CountryCode
 
     public void setCountryCode(CountryCode countryCode) {
         this. = countryCode.toString();
     }
    
    
Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW

Parameters:
countryCode Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
CountryCode
 
     public ContactDetail withCountryCode(CountryCode countryCode) {
         this. = countryCode.toString();
         return this;
     }

    
The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Returns:
The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public String getZipCode() {
         return ;
     }
    
    
The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 255

Parameters:
zipCode The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

 
     public void setZipCode(String zipCode) {
         this. = zipCode;
     }
    
    
The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255

Parameters:
zipCode The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ContactDetail withZipCode(String zipCode) {
         this. = zipCode;
         return this;
     }

    
The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 30

Returns:
The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public String getPhoneNumber() {
         return ;
     }
    
    
The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 30

Parameters:
phoneNumber The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

 
     public void setPhoneNumber(String phoneNumber) {
         this. = phoneNumber;
     }
    
    
The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 30

Parameters:
phoneNumber The phone number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
    public ContactDetail withPhoneNumber(String phoneNumber) {
        this. = phoneNumber;
        return this;
    }

    
Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 254

Returns:
Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

    public String getEmail() {
        return ;
    }
    
    
Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Constraints:
Length: 0 - 254

Parameters:
email Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

    public void setEmail(String email) {
        this. = email;
    }
    
    
Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 254

Parameters:
email Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
    public ContactDetail withEmail(String email) {
        this. = email;
        return this;
    }

    
Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 30

Returns:
Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

    public String getFax() {
        return ;
    }
    
    
Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Constraints:
Length: 0 - 30

Parameters:
fax Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

    public void setFax(String fax) {
        this. = fax;
    }
    
    
Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 30

Parameters:
fax Fax number of the contact.

Type: String

Default: None

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

Parents: RegistrantContact, AdminContact, TechContact

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
    public ContactDetail withFax(String fax) {
        this. = fax;
        return this;
    }

    
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

Returns:
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

    public java.util.List<ExtraParamgetExtraParams() {
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

Parameters:
extraParams A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

    public void setExtraParams(java.util.Collection<ExtraParamextraParams) {
        if (extraParams == null) {
            this. = null;
            return;
        }
        extraParamsCopy.addAll(extraParams);
        this. = extraParamsCopy;
    }
    
    
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

NOTE: This method appends the values to the existing list (if any). Use setExtraParams(java.util.Collection) or withExtraParams(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
extraParams A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
    public ContactDetail withExtraParams(ExtraParam... extraParams) {
        if (getExtraParams() == nullsetExtraParams(new java.util.ArrayList<ExtraParam>(extraParams.length));
        for (ExtraParam value : extraParams) {
            getExtraParams().add(value);
        }
        return this;
    }
    
    
A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

Returns a reference to this object so that method calls can be chained together.

Parameters:
extraParams A list of name-value pairs for parameters required by certain top-level domains.

Type: Complex

Default: None

Parents: RegistrantContact, AdminContact, TechContact

Children: Name, Value

Required: No

Returns:
A reference to this updated object so that method calls can be chained together.
    public ContactDetail withExtraParams(java.util.Collection<ExtraParamextraParams) {
        if (extraParams == null) {
            this. = null;
        } else {
            extraParamsCopy.addAll(extraParams);
            this. = extraParamsCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getFirstName() != nullsb.append("FirstName: " + getFirstName() + ",");
        if (getLastName() != nullsb.append("LastName: " + getLastName() + ",");
        if (getContactType() != nullsb.append("ContactType: " + getContactType() + ",");
        if (getOrganizationName() != nullsb.append("OrganizationName: " + getOrganizationName() + ",");
        if (getAddressLine1() != nullsb.append("AddressLine1: " + getAddressLine1() + ",");
        if (getAddressLine2() != nullsb.append("AddressLine2: " + getAddressLine2() + ",");
        if (getCity() != nullsb.append("City: " + getCity() + ",");
        if (getState() != nullsb.append("State: " + getState() + ",");
        if (getCountryCode() != nullsb.append("CountryCode: " + getCountryCode() + ",");
        if (getZipCode() != nullsb.append("ZipCode: " + getZipCode() + ",");
        if (getPhoneNumber() != nullsb.append("PhoneNumber: " + getPhoneNumber() + ",");
        if (getEmail() != nullsb.append("Email: " + getEmail() + ",");
        if (getFax() != nullsb.append("Fax: " + getFax() + ",");
        if (getExtraParams() != nullsb.append("ExtraParams: " + getExtraParams() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getFirstName() == null) ? 0 : getFirstName().hashCode()); 
        hashCode = prime * hashCode + ((getLastName() == null) ? 0 : getLastName().hashCode()); 
        hashCode = prime * hashCode + ((getContactType() == null) ? 0 : getContactType().hashCode()); 
        hashCode = prime * hashCode + ((getOrganizationName() == null) ? 0 : getOrganizationName().hashCode()); 
        hashCode = prime * hashCode + ((getAddressLine1() == null) ? 0 : getAddressLine1().hashCode()); 
        hashCode = prime * hashCode + ((getAddressLine2() == null) ? 0 : getAddressLine2().hashCode()); 
        hashCode = prime * hashCode + ((getCity() == null) ? 0 : getCity().hashCode()); 
        hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); 
        hashCode = prime * hashCode + ((getCountryCode() == null) ? 0 : getCountryCode().hashCode()); 
        hashCode = prime * hashCode + ((getZipCode() == null) ? 0 : getZipCode().hashCode()); 
        hashCode = prime * hashCode + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode()); 
        hashCode = prime * hashCode + ((getEmail() == null) ? 0 : getEmail().hashCode()); 
        hashCode = prime * hashCode + ((getFax() == null) ? 0 : getFax().hashCode()); 
        hashCode = prime * hashCode + ((getExtraParams() == null) ? 0 : getExtraParams().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ContactDetail == falsereturn false;
        ContactDetail other = (ContactDetail)obj;
        
        if (other.getFirstName() == null ^ this.getFirstName() == nullreturn false;
        if (other.getFirstName() != null && other.getFirstName().equals(this.getFirstName()) == falsereturn false
        if (other.getLastName() == null ^ this.getLastName() == nullreturn false;
        if (other.getLastName() != null && other.getLastName().equals(this.getLastName()) == falsereturn false
        if (other.getContactType() == null ^ this.getContactType() == nullreturn false;
        if (other.getContactType() != null && other.getContactType().equals(this.getContactType()) == falsereturn false
        if (other.getOrganizationName() == null ^ this.getOrganizationName() == nullreturn false;
        if (other.getOrganizationName() != null && other.getOrganizationName().equals(this.getOrganizationName()) == falsereturn false
        if (other.getAddressLine1() == null ^ this.getAddressLine1() == nullreturn false;
        if (other.getAddressLine1() != null && other.getAddressLine1().equals(this.getAddressLine1()) == falsereturn false
        if (other.getAddressLine2() == null ^ this.getAddressLine2() == nullreturn false;
        if (other.getAddressLine2() != null && other.getAddressLine2().equals(this.getAddressLine2()) == falsereturn false
        if (other.getCity() == null ^ this.getCity() == nullreturn false;
        if (other.getCity() != null && other.getCity().equals(this.getCity()) == falsereturn false
        if (other.getState() == null ^ this.getState() == nullreturn false;
        if (other.getState() != null && other.getState().equals(this.getState()) == falsereturn false
        if (other.getCountryCode() == null ^ this.getCountryCode() == nullreturn false;
        if (other.getCountryCode() != null && other.getCountryCode().equals(this.getCountryCode()) == falsereturn false
        if (other.getZipCode() == null ^ this.getZipCode() == nullreturn false;
        if (other.getZipCode() != null && other.getZipCode().equals(this.getZipCode()) == falsereturn false
        if (other.getPhoneNumber() == null ^ this.getPhoneNumber() == nullreturn false;
        if (other.getPhoneNumber() != null && other.getPhoneNumber().equals(this.getPhoneNumber()) == falsereturn false
        if (other.getEmail() == null ^ this.getEmail() == nullreturn false;
        if (other.getEmail() != null && other.getEmail().equals(this.getEmail()) == falsereturn false
        if (other.getFax() == null ^ this.getFax() == nullreturn false;
        if (other.getFax() != null && other.getFax().equals(this.getFax()) == falsereturn false
        if (other.getExtraParams() == null ^ this.getExtraParams() == nullreturn false;
        if (other.getExtraParams() != null && other.getExtraParams().equals(this.getExtraParams()) == falsereturn false
        return true;
    }
    
    @Override
    public ContactDetail clone() {
        try {
            return (ContactDetailsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X