/* * 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: *

* */ private String contactType; /** *

* Name of the organization for contact types other than PERSON. *

*/ private String organizationName; /** *

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

*/ private String phoneNumber; /** *

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

*/ private String fax; /** *

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

*/ private com.amazonaws.internal.SdkInternalList extraParams; /** *

* 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: *

* * * @param contactType * Indicates whether the contact is a person, company, association, or public organization. Note the * following:

*