/* * Copyright 2018-2023 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; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* ContactDetail includes the following elements. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ContactDetail implements Serializable, Cloneable, StructuredPojo { /** ** First name of contact. *
*/ private String firstName; /** ** Last name of contact. *
*/ private String lastName; /** ** 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.
*
* Name of the organization for contact types other than PERSON
.
*
* First line of the contact's address. *
*/ private String addressLine1; /** ** Second line of contact's address, if any. *
*/ private String addressLine2; /** ** The city of the contact's address. *
*/ private String city; /** ** The state or province of the contact's city. *
*/ private String state; /** ** Code for the country of the contact's address. *
*/ private String countryCode; /** ** The zip or postal code of the contact's address. *
*/ private String zipCode; /** ** 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 address of the contact. *
*/ private String email; /** ** 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"
.
*
* A list of name-value pairs for parameters required by certain top-level domains. *
*/ private com.amazonaws.internal.SdkInternalList* First name of contact. *
* * @param firstName * First name of contact. */ public void setFirstName(String firstName) { this.firstName = firstName; } /** ** First name of contact. *
* * @return First name of contact. */ public String getFirstName() { return this.firstName; } /** ** First name of contact. *
* * @param firstName * First name of contact. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withFirstName(String firstName) { setFirstName(firstName); return this; } /** ** Last name of contact. *
* * @param lastName * Last name of contact. */ public void setLastName(String lastName) { this.lastName = lastName; } /** ** Last name of contact. *
* * @return Last name of contact. */ public String getLastName() { return this.lastName; } /** ** Last name of contact. *
* * @param lastName * Last name of contact. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withLastName(String lastName) { setLastName(lastName); return this; } /** ** 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 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.
*
* 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 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.
*
* 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 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.
*
* 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 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.
*
* 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 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.
*
* Name of the organization for contact types other than PERSON
.
*
PERSON
.
*/
public void setOrganizationName(String organizationName) {
this.organizationName = organizationName;
}
/**
*
* Name of the organization for contact types other than PERSON
.
*
PERSON
.
*/
public String getOrganizationName() {
return this.organizationName;
}
/**
*
* Name of the organization for contact types other than PERSON
.
*
PERSON
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContactDetail withOrganizationName(String organizationName) {
setOrganizationName(organizationName);
return this;
}
/**
* * First line of the contact's address. *
* * @param addressLine1 * First line of the contact's address. */ public void setAddressLine1(String addressLine1) { this.addressLine1 = addressLine1; } /** ** First line of the contact's address. *
* * @return First line of the contact's address. */ public String getAddressLine1() { return this.addressLine1; } /** ** First line of the contact's address. *
* * @param addressLine1 * First line of the contact's address. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withAddressLine1(String addressLine1) { setAddressLine1(addressLine1); return this; } /** ** Second line of contact's address, if any. *
* * @param addressLine2 * Second line of contact's address, if any. */ public void setAddressLine2(String addressLine2) { this.addressLine2 = addressLine2; } /** ** Second line of contact's address, if any. *
* * @return Second line of contact's address, if any. */ public String getAddressLine2() { return this.addressLine2; } /** ** Second line of contact's address, if any. *
* * @param addressLine2 * Second line of contact's address, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withAddressLine2(String addressLine2) { setAddressLine2(addressLine2); return this; } /** ** The city of the contact's address. *
* * @param city * The city of the contact's address. */ public void setCity(String city) { this.city = city; } /** ** The city of the contact's address. *
* * @return The city of the contact's address. */ public String getCity() { return this.city; } /** ** The city of the contact's address. *
* * @param city * The city of the contact's address. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withCity(String city) { setCity(city); return this; } /** ** The state or province of the contact's city. *
* * @param state * The state or province of the contact's city. */ public void setState(String state) { this.state = state; } /** ** The state or province of the contact's city. *
* * @return The state or province of the contact's city. */ public String getState() { return this.state; } /** ** The state or province of the contact's city. *
* * @param state * The state or province of the contact's city. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withState(String state) { setState(state); return this; } /** ** Code for the country of the contact's address. *
* * @param countryCode * Code for the country of the contact's address. * @see CountryCode */ public void setCountryCode(String countryCode) { this.countryCode = countryCode; } /** ** Code for the country of the contact's address. *
* * @return Code for the country of the contact's address. * @see CountryCode */ public String getCountryCode() { return this.countryCode; } /** ** Code for the country of the contact's address. *
* * @param countryCode * Code for the country of the contact's address. * @return Returns a reference to this object so that method calls can be chained together. * @see CountryCode */ public ContactDetail withCountryCode(String countryCode) { setCountryCode(countryCode); return this; } /** ** Code for the country of the contact's address. *
* * @param countryCode * Code for the country of the contact's address. * @see CountryCode */ public void setCountryCode(CountryCode countryCode) { withCountryCode(countryCode); } /** ** Code for the country of the contact's address. *
* * @param countryCode * Code for the country of the contact's address. * @return Returns a reference to this object so that method calls can be chained together. * @see CountryCode */ public ContactDetail withCountryCode(CountryCode countryCode) { this.countryCode = countryCode.toString(); return this; } /** ** The zip or postal code of the contact's address. *
* * @param zipCode * The zip or postal code of the contact's address. */ public void setZipCode(String zipCode) { this.zipCode = zipCode; } /** ** The zip or postal code of the contact's address. *
* * @return The zip or postal code of the contact's address. */ public String getZipCode() { return this.zipCode; } /** ** The zip or postal code of the contact's address. *
* * @param zipCode * The zip or postal code of the contact's address. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withZipCode(String zipCode) { setZipCode(zipCode); return this; } /** ** 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"
.
*
* 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"
.
*/
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = 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"
.
*
* 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"
.
*/
public String getPhoneNumber() {
return this.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"
.
*
* 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"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContactDetail withPhoneNumber(String phoneNumber) {
setPhoneNumber(phoneNumber);
return this;
}
/**
*
* Email address of the contact. *
* * @param email * Email address of the contact. */ public void setEmail(String email) { this.email = email; } /** ** Email address of the contact. *
* * @return Email address of the contact. */ public String getEmail() { return this.email; } /** ** Email address of the contact. *
* * @param email * Email address of the contact. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withEmail(String email) { setEmail(email); return this; } /** ** 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"
.
*
* 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"
.
*/
public void setFax(String fax) {
this.fax = 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"
.
*
* 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"
.
*/
public String getFax() {
return this.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"
.
*
* 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"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ContactDetail withFax(String fax) {
setFax(fax);
return this;
}
/**
*
* A list of name-value pairs for parameters required by certain top-level domains. *
* * @return A list of name-value pairs for parameters required by certain top-level domains. */ public java.util.List* A list of name-value pairs for parameters required by certain top-level domains. *
* * @param extraParams * A list of name-value pairs for parameters required by certain top-level domains. */ public void setExtraParams(java.util.Collection* A list of name-value pairs for parameters required by certain top-level domains. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExtraParams(java.util.Collection)} or {@link #withExtraParams(java.util.Collection)} if you want to * override the existing values. *
* * @param extraParams * A list of name-value pairs for parameters required by certain top-level domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withExtraParams(ExtraParam... extraParams) { if (this.extraParams == null) { setExtraParams(new com.amazonaws.internal.SdkInternalList* A list of name-value pairs for parameters required by certain top-level domains. *
* * @param extraParams * A list of name-value pairs for parameters required by certain top-level domains. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactDetail withExtraParams(java.util.Collection