/* * 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.customerprofiles.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique name of the domain. *
*/ private String domainName; /** ** The unique identifier of a customer profile. *
*/ private String profileId; /** ** Any additional information relevant to the customer’s profile. *
*/ private String additionalInformation; /** ** A unique account number that you have given to the customer. *
*/ private String accountNumber; /** ** The type of profile used to describe the customer. *
*/ private String partyType; /** ** The name of the customer’s business. *
*/ private String businessName; /** ** The customer’s first name. *
*/ private String firstName; /** ** The customer’s middle name. *
*/ private String middleName; /** ** The customer’s last name. *
*/ private String lastName; /** ** The customer’s birth date. *
*/ private String birthDate; /** ** The gender with which the customer identifies. *
*/ private String gender; /** ** The customer’s phone number, which has not been specified as a mobile, home, or business number. *
*/ private String phoneNumber; /** ** The customer’s mobile phone number. *
*/ private String mobilePhoneNumber; /** ** The customer’s home phone number. *
*/ private String homePhoneNumber; /** ** The customer’s business phone number. *
*/ private String businessPhoneNumber; /** ** The customer’s email address, which has not been specified as a personal or business address. *
*/ private String emailAddress; /** ** The customer’s personal email address. *
*/ private String personalEmailAddress; /** ** The customer’s business email address. *
*/ private String businessEmailAddress; /** ** A generic address associated with the customer that is not mailing, shipping, or billing. *
*/ private UpdateAddress address; /** ** The customer’s shipping address. *
*/ private UpdateAddress shippingAddress; /** ** The customer’s mailing address. *
*/ private UpdateAddress mailingAddress; /** ** The customer’s billing address. *
*/ private UpdateAddress billingAddress; /** ** A key value pair of attributes of a customer profile. *
*/ private java.util.Map
* An alternative to PartyType
which accepts any string as input.
*
* An alternative to Gender
which accepts any string as input.
*
* The unique name of the domain. *
* * @param domainName * The unique name of the domain. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The unique name of the domain. *
* * @return The unique name of the domain. */ public String getDomainName() { return this.domainName; } /** ** The unique name of the domain. *
* * @param domainName * The unique name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** The unique identifier of a customer profile. *
* * @param profileId * The unique identifier of a customer profile. */ public void setProfileId(String profileId) { this.profileId = profileId; } /** ** The unique identifier of a customer profile. *
* * @return The unique identifier of a customer profile. */ public String getProfileId() { return this.profileId; } /** ** The unique identifier of a customer profile. *
* * @param profileId * The unique identifier of a customer profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withProfileId(String profileId) { setProfileId(profileId); return this; } /** ** Any additional information relevant to the customer’s profile. *
* * @param additionalInformation * Any additional information relevant to the customer’s profile. */ public void setAdditionalInformation(String additionalInformation) { this.additionalInformation = additionalInformation; } /** ** Any additional information relevant to the customer’s profile. *
* * @return Any additional information relevant to the customer’s profile. */ public String getAdditionalInformation() { return this.additionalInformation; } /** ** Any additional information relevant to the customer’s profile. *
* * @param additionalInformation * Any additional information relevant to the customer’s profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withAdditionalInformation(String additionalInformation) { setAdditionalInformation(additionalInformation); return this; } /** ** A unique account number that you have given to the customer. *
* * @param accountNumber * A unique account number that you have given to the customer. */ public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } /** ** A unique account number that you have given to the customer. *
* * @return A unique account number that you have given to the customer. */ public String getAccountNumber() { return this.accountNumber; } /** ** A unique account number that you have given to the customer. *
* * @param accountNumber * A unique account number that you have given to the customer. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withAccountNumber(String accountNumber) { setAccountNumber(accountNumber); return this; } /** ** The type of profile used to describe the customer. *
* * @param partyType * The type of profile used to describe the customer. * @see PartyType */ @Deprecated public void setPartyType(String partyType) { this.partyType = partyType; } /** ** The type of profile used to describe the customer. *
* * @return The type of profile used to describe the customer. * @see PartyType */ @Deprecated public String getPartyType() { return this.partyType; } /** ** The type of profile used to describe the customer. *
* * @param partyType * The type of profile used to describe the customer. * @return Returns a reference to this object so that method calls can be chained together. * @see PartyType */ @Deprecated public UpdateProfileRequest withPartyType(String partyType) { setPartyType(partyType); return this; } /** ** The type of profile used to describe the customer. *
* * @param partyType * The type of profile used to describe the customer. * @return Returns a reference to this object so that method calls can be chained together. * @see PartyType */ @Deprecated public UpdateProfileRequest withPartyType(PartyType partyType) { this.partyType = partyType.toString(); return this; } /** ** The name of the customer’s business. *
* * @param businessName * The name of the customer’s business. */ public void setBusinessName(String businessName) { this.businessName = businessName; } /** ** The name of the customer’s business. *
* * @return The name of the customer’s business. */ public String getBusinessName() { return this.businessName; } /** ** The name of the customer’s business. *
* * @param businessName * The name of the customer’s business. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withBusinessName(String businessName) { setBusinessName(businessName); return this; } /** ** The customer’s first name. *
* * @param firstName * The customer’s first name. */ public void setFirstName(String firstName) { this.firstName = firstName; } /** ** The customer’s first name. *
* * @return The customer’s first name. */ public String getFirstName() { return this.firstName; } /** ** The customer’s first name. *
* * @param firstName * The customer’s first name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withFirstName(String firstName) { setFirstName(firstName); return this; } /** ** The customer’s middle name. *
* * @param middleName * The customer’s middle name. */ public void setMiddleName(String middleName) { this.middleName = middleName; } /** ** The customer’s middle name. *
* * @return The customer’s middle name. */ public String getMiddleName() { return this.middleName; } /** ** The customer’s middle name. *
* * @param middleName * The customer’s middle name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withMiddleName(String middleName) { setMiddleName(middleName); return this; } /** ** The customer’s last name. *
* * @param lastName * The customer’s last name. */ public void setLastName(String lastName) { this.lastName = lastName; } /** ** The customer’s last name. *
* * @return The customer’s last name. */ public String getLastName() { return this.lastName; } /** ** The customer’s last name. *
* * @param lastName * The customer’s last name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withLastName(String lastName) { setLastName(lastName); return this; } /** ** The customer’s birth date. *
* * @param birthDate * The customer’s birth date. */ public void setBirthDate(String birthDate) { this.birthDate = birthDate; } /** ** The customer’s birth date. *
* * @return The customer’s birth date. */ public String getBirthDate() { return this.birthDate; } /** ** The customer’s birth date. *
* * @param birthDate * The customer’s birth date. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withBirthDate(String birthDate) { setBirthDate(birthDate); return this; } /** ** The gender with which the customer identifies. *
* * @param gender * The gender with which the customer identifies. * @see Gender */ @Deprecated public void setGender(String gender) { this.gender = gender; } /** ** The gender with which the customer identifies. *
* * @return The gender with which the customer identifies. * @see Gender */ @Deprecated public String getGender() { return this.gender; } /** ** The gender with which the customer identifies. *
* * @param gender * The gender with which the customer identifies. * @return Returns a reference to this object so that method calls can be chained together. * @see Gender */ @Deprecated public UpdateProfileRequest withGender(String gender) { setGender(gender); return this; } /** ** The gender with which the customer identifies. *
* * @param gender * The gender with which the customer identifies. * @return Returns a reference to this object so that method calls can be chained together. * @see Gender */ @Deprecated public UpdateProfileRequest withGender(Gender gender) { this.gender = gender.toString(); return this; } /** ** The customer’s phone number, which has not been specified as a mobile, home, or business number. *
* * @param phoneNumber * The customer’s phone number, which has not been specified as a mobile, home, or business number. */ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } /** ** The customer’s phone number, which has not been specified as a mobile, home, or business number. *
* * @return The customer’s phone number, which has not been specified as a mobile, home, or business number. */ public String getPhoneNumber() { return this.phoneNumber; } /** ** The customer’s phone number, which has not been specified as a mobile, home, or business number. *
* * @param phoneNumber * The customer’s phone number, which has not been specified as a mobile, home, or business number. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withPhoneNumber(String phoneNumber) { setPhoneNumber(phoneNumber); return this; } /** ** The customer’s mobile phone number. *
* * @param mobilePhoneNumber * The customer’s mobile phone number. */ public void setMobilePhoneNumber(String mobilePhoneNumber) { this.mobilePhoneNumber = mobilePhoneNumber; } /** ** The customer’s mobile phone number. *
* * @return The customer’s mobile phone number. */ public String getMobilePhoneNumber() { return this.mobilePhoneNumber; } /** ** The customer’s mobile phone number. *
* * @param mobilePhoneNumber * The customer’s mobile phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withMobilePhoneNumber(String mobilePhoneNumber) { setMobilePhoneNumber(mobilePhoneNumber); return this; } /** ** The customer’s home phone number. *
* * @param homePhoneNumber * The customer’s home phone number. */ public void setHomePhoneNumber(String homePhoneNumber) { this.homePhoneNumber = homePhoneNumber; } /** ** The customer’s home phone number. *
* * @return The customer’s home phone number. */ public String getHomePhoneNumber() { return this.homePhoneNumber; } /** ** The customer’s home phone number. *
* * @param homePhoneNumber * The customer’s home phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withHomePhoneNumber(String homePhoneNumber) { setHomePhoneNumber(homePhoneNumber); return this; } /** ** The customer’s business phone number. *
* * @param businessPhoneNumber * The customer’s business phone number. */ public void setBusinessPhoneNumber(String businessPhoneNumber) { this.businessPhoneNumber = businessPhoneNumber; } /** ** The customer’s business phone number. *
* * @return The customer’s business phone number. */ public String getBusinessPhoneNumber() { return this.businessPhoneNumber; } /** ** The customer’s business phone number. *
* * @param businessPhoneNumber * The customer’s business phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withBusinessPhoneNumber(String businessPhoneNumber) { setBusinessPhoneNumber(businessPhoneNumber); return this; } /** ** The customer’s email address, which has not been specified as a personal or business address. *
* * @param emailAddress * The customer’s email address, which has not been specified as a personal or business address. */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** ** The customer’s email address, which has not been specified as a personal or business address. *
* * @return The customer’s email address, which has not been specified as a personal or business address. */ public String getEmailAddress() { return this.emailAddress; } /** ** The customer’s email address, which has not been specified as a personal or business address. *
* * @param emailAddress * The customer’s email address, which has not been specified as a personal or business address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withEmailAddress(String emailAddress) { setEmailAddress(emailAddress); return this; } /** ** The customer’s personal email address. *
* * @param personalEmailAddress * The customer’s personal email address. */ public void setPersonalEmailAddress(String personalEmailAddress) { this.personalEmailAddress = personalEmailAddress; } /** ** The customer’s personal email address. *
* * @return The customer’s personal email address. */ public String getPersonalEmailAddress() { return this.personalEmailAddress; } /** ** The customer’s personal email address. *
* * @param personalEmailAddress * The customer’s personal email address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withPersonalEmailAddress(String personalEmailAddress) { setPersonalEmailAddress(personalEmailAddress); return this; } /** ** The customer’s business email address. *
* * @param businessEmailAddress * The customer’s business email address. */ public void setBusinessEmailAddress(String businessEmailAddress) { this.businessEmailAddress = businessEmailAddress; } /** ** The customer’s business email address. *
* * @return The customer’s business email address. */ public String getBusinessEmailAddress() { return this.businessEmailAddress; } /** ** The customer’s business email address. *
* * @param businessEmailAddress * The customer’s business email address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withBusinessEmailAddress(String businessEmailAddress) { setBusinessEmailAddress(businessEmailAddress); return this; } /** ** A generic address associated with the customer that is not mailing, shipping, or billing. *
* * @param address * A generic address associated with the customer that is not mailing, shipping, or billing. */ public void setAddress(UpdateAddress address) { this.address = address; } /** ** A generic address associated with the customer that is not mailing, shipping, or billing. *
* * @return A generic address associated with the customer that is not mailing, shipping, or billing. */ public UpdateAddress getAddress() { return this.address; } /** ** A generic address associated with the customer that is not mailing, shipping, or billing. *
* * @param address * A generic address associated with the customer that is not mailing, shipping, or billing. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withAddress(UpdateAddress address) { setAddress(address); return this; } /** ** The customer’s shipping address. *
* * @param shippingAddress * The customer’s shipping address. */ public void setShippingAddress(UpdateAddress shippingAddress) { this.shippingAddress = shippingAddress; } /** ** The customer’s shipping address. *
* * @return The customer’s shipping address. */ public UpdateAddress getShippingAddress() { return this.shippingAddress; } /** ** The customer’s shipping address. *
* * @param shippingAddress * The customer’s shipping address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withShippingAddress(UpdateAddress shippingAddress) { setShippingAddress(shippingAddress); return this; } /** ** The customer’s mailing address. *
* * @param mailingAddress * The customer’s mailing address. */ public void setMailingAddress(UpdateAddress mailingAddress) { this.mailingAddress = mailingAddress; } /** ** The customer’s mailing address. *
* * @return The customer’s mailing address. */ public UpdateAddress getMailingAddress() { return this.mailingAddress; } /** ** The customer’s mailing address. *
* * @param mailingAddress * The customer’s mailing address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withMailingAddress(UpdateAddress mailingAddress) { setMailingAddress(mailingAddress); return this; } /** ** The customer’s billing address. *
* * @param billingAddress * The customer’s billing address. */ public void setBillingAddress(UpdateAddress billingAddress) { this.billingAddress = billingAddress; } /** ** The customer’s billing address. *
* * @return The customer’s billing address. */ public UpdateAddress getBillingAddress() { return this.billingAddress; } /** ** The customer’s billing address. *
* * @param billingAddress * The customer’s billing address. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withBillingAddress(UpdateAddress billingAddress) { setBillingAddress(billingAddress); return this; } /** ** A key value pair of attributes of a customer profile. *
* * @return A key value pair of attributes of a customer profile. */ public java.util.Map* A key value pair of attributes of a customer profile. *
* * @param attributes * A key value pair of attributes of a customer profile. */ public void setAttributes(java.util.Map* A key value pair of attributes of a customer profile. *
* * @param attributes * A key value pair of attributes of a customer profile. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withAttributes(java.util.Map
* An alternative to PartyType
which accepts any string as input.
*
PartyType
which accepts any string as input.
*/
public void setPartyTypeString(String partyTypeString) {
this.partyTypeString = partyTypeString;
}
/**
*
* An alternative to PartyType
which accepts any string as input.
*
PartyType
which accepts any string as input.
*/
public String getPartyTypeString() {
return this.partyTypeString;
}
/**
*
* An alternative to PartyType
which accepts any string as input.
*
PartyType
which accepts any string as input.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateProfileRequest withPartyTypeString(String partyTypeString) {
setPartyTypeString(partyTypeString);
return this;
}
/**
*
* An alternative to Gender
which accepts any string as input.
*
Gender
which accepts any string as input.
*/
public void setGenderString(String genderString) {
this.genderString = genderString;
}
/**
*
* An alternative to Gender
which accepts any string as input.
*
Gender
which accepts any string as input.
*/
public String getGenderString() {
return this.genderString;
}
/**
*
* An alternative to Gender
which accepts any string as input.
*
Gender
which accepts any string as input.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateProfileRequest withGenderString(String genderString) {
setGenderString(genderString);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getDomainName() != null)
sb.append("DomainName: ").append(getDomainName()).append(",");
if (getProfileId() != null)
sb.append("ProfileId: ").append(getProfileId()).append(",");
if (getAdditionalInformation() != null)
sb.append("AdditionalInformation: ").append(getAdditionalInformation()).append(",");
if (getAccountNumber() != null)
sb.append("AccountNumber: ").append(getAccountNumber()).append(",");
if (getPartyType() != null)
sb.append("PartyType: ").append(getPartyType()).append(",");
if (getBusinessName() != null)
sb.append("BusinessName: ").append(getBusinessName()).append(",");
if (getFirstName() != null)
sb.append("FirstName: ").append(getFirstName()).append(",");
if (getMiddleName() != null)
sb.append("MiddleName: ").append(getMiddleName()).append(",");
if (getLastName() != null)
sb.append("LastName: ").append(getLastName()).append(",");
if (getBirthDate() != null)
sb.append("BirthDate: ").append(getBirthDate()).append(",");
if (getGender() != null)
sb.append("Gender: ").append(getGender()).append(",");
if (getPhoneNumber() != null)
sb.append("PhoneNumber: ").append(getPhoneNumber()).append(",");
if (getMobilePhoneNumber() != null)
sb.append("MobilePhoneNumber: ").append(getMobilePhoneNumber()).append(",");
if (getHomePhoneNumber() != null)
sb.append("HomePhoneNumber: ").append(getHomePhoneNumber()).append(",");
if (getBusinessPhoneNumber() != null)
sb.append("BusinessPhoneNumber: ").append(getBusinessPhoneNumber()).append(",");
if (getEmailAddress() != null)
sb.append("EmailAddress: ").append(getEmailAddress()).append(",");
if (getPersonalEmailAddress() != null)
sb.append("PersonalEmailAddress: ").append(getPersonalEmailAddress()).append(",");
if (getBusinessEmailAddress() != null)
sb.append("BusinessEmailAddress: ").append(getBusinessEmailAddress()).append(",");
if (getAddress() != null)
sb.append("Address: ").append(getAddress()).append(",");
if (getShippingAddress() != null)
sb.append("ShippingAddress: ").append(getShippingAddress()).append(",");
if (getMailingAddress() != null)
sb.append("MailingAddress: ").append(getMailingAddress()).append(",");
if (getBillingAddress() != null)
sb.append("BillingAddress: ").append(getBillingAddress()).append(",");
if (getAttributes() != null)
sb.append("Attributes: ").append(getAttributes()).append(",");
if (getPartyTypeString() != null)
sb.append("PartyTypeString: ").append(getPartyTypeString()).append(",");
if (getGenderString() != null)
sb.append("GenderString: ").append(getGenderString());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateProfileRequest == false)
return false;
UpdateProfileRequest other = (UpdateProfileRequest) obj;
if (other.getDomainName() == null ^ this.getDomainName() == null)
return false;
if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false)
return false;
if (other.getProfileId() == null ^ this.getProfileId() == null)
return false;
if (other.getProfileId() != null && other.getProfileId().equals(this.getProfileId()) == false)
return false;
if (other.getAdditionalInformation() == null ^ this.getAdditionalInformation() == null)
return false;
if (other.getAdditionalInformation() != null && other.getAdditionalInformation().equals(this.getAdditionalInformation()) == false)
return false;
if (other.getAccountNumber() == null ^ this.getAccountNumber() == null)
return false;
if (other.getAccountNumber() != null && other.getAccountNumber().equals(this.getAccountNumber()) == false)
return false;
if (other.getPartyType() == null ^ this.getPartyType() == null)
return false;
if (other.getPartyType() != null && other.getPartyType().equals(this.getPartyType()) == false)
return false;
if (other.getBusinessName() == null ^ this.getBusinessName() == null)
return false;
if (other.getBusinessName() != null && other.getBusinessName().equals(this.getBusinessName()) == false)
return false;
if (other.getFirstName() == null ^ this.getFirstName() == null)
return false;
if (other.getFirstName() != null && other.getFirstName().equals(this.getFirstName()) == false)
return false;
if (other.getMiddleName() == null ^ this.getMiddleName() == null)
return false;
if (other.getMiddleName() != null && other.getMiddleName().equals(this.getMiddleName()) == false)
return false;
if (other.getLastName() == null ^ this.getLastName() == null)
return false;
if (other.getLastName() != null && other.getLastName().equals(this.getLastName()) == false)
return false;
if (other.getBirthDate() == null ^ this.getBirthDate() == null)
return false;
if (other.getBirthDate() != null && other.getBirthDate().equals(this.getBirthDate()) == false)
return false;
if (other.getGender() == null ^ this.getGender() == null)
return false;
if (other.getGender() != null && other.getGender().equals(this.getGender()) == false)
return false;
if (other.getPhoneNumber() == null ^ this.getPhoneNumber() == null)
return false;
if (other.getPhoneNumber() != null && other.getPhoneNumber().equals(this.getPhoneNumber()) == false)
return false;
if (other.getMobilePhoneNumber() == null ^ this.getMobilePhoneNumber() == null)
return false;
if (other.getMobilePhoneNumber() != null && other.getMobilePhoneNumber().equals(this.getMobilePhoneNumber()) == false)
return false;
if (other.getHomePhoneNumber() == null ^ this.getHomePhoneNumber() == null)
return false;
if (other.getHomePhoneNumber() != null && other.getHomePhoneNumber().equals(this.getHomePhoneNumber()) == false)
return false;
if (other.getBusinessPhoneNumber() == null ^ this.getBusinessPhoneNumber() == null)
return false;
if (other.getBusinessPhoneNumber() != null && other.getBusinessPhoneNumber().equals(this.getBusinessPhoneNumber()) == false)
return false;
if (other.getEmailAddress() == null ^ this.getEmailAddress() == null)
return false;
if (other.getEmailAddress() != null && other.getEmailAddress().equals(this.getEmailAddress()) == false)
return false;
if (other.getPersonalEmailAddress() == null ^ this.getPersonalEmailAddress() == null)
return false;
if (other.getPersonalEmailAddress() != null && other.getPersonalEmailAddress().equals(this.getPersonalEmailAddress()) == false)
return false;
if (other.getBusinessEmailAddress() == null ^ this.getBusinessEmailAddress() == null)
return false;
if (other.getBusinessEmailAddress() != null && other.getBusinessEmailAddress().equals(this.getBusinessEmailAddress()) == false)
return false;
if (other.getAddress() == null ^ this.getAddress() == null)
return false;
if (other.getAddress() != null && other.getAddress().equals(this.getAddress()) == false)
return false;
if (other.getShippingAddress() == null ^ this.getShippingAddress() == null)
return false;
if (other.getShippingAddress() != null && other.getShippingAddress().equals(this.getShippingAddress()) == false)
return false;
if (other.getMailingAddress() == null ^ this.getMailingAddress() == null)
return false;
if (other.getMailingAddress() != null && other.getMailingAddress().equals(this.getMailingAddress()) == false)
return false;
if (other.getBillingAddress() == null ^ this.getBillingAddress() == null)
return false;
if (other.getBillingAddress() != null && other.getBillingAddress().equals(this.getBillingAddress()) == false)
return false;
if (other.getAttributes() == null ^ this.getAttributes() == null)
return false;
if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false)
return false;
if (other.getPartyTypeString() == null ^ this.getPartyTypeString() == null)
return false;
if (other.getPartyTypeString() != null && other.getPartyTypeString().equals(this.getPartyTypeString()) == false)
return false;
if (other.getGenderString() == null ^ this.getGenderString() == null)
return false;
if (other.getGenderString() != null && other.getGenderString().equals(this.getGenderString()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
hashCode = prime * hashCode + ((getProfileId() == null) ? 0 : getProfileId().hashCode());
hashCode = prime * hashCode + ((getAdditionalInformation() == null) ? 0 : getAdditionalInformation().hashCode());
hashCode = prime * hashCode + ((getAccountNumber() == null) ? 0 : getAccountNumber().hashCode());
hashCode = prime * hashCode + ((getPartyType() == null) ? 0 : getPartyType().hashCode());
hashCode = prime * hashCode + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode());
hashCode = prime * hashCode + ((getFirstName() == null) ? 0 : getFirstName().hashCode());
hashCode = prime * hashCode + ((getMiddleName() == null) ? 0 : getMiddleName().hashCode());
hashCode = prime * hashCode + ((getLastName() == null) ? 0 : getLastName().hashCode());
hashCode = prime * hashCode + ((getBirthDate() == null) ? 0 : getBirthDate().hashCode());
hashCode = prime * hashCode + ((getGender() == null) ? 0 : getGender().hashCode());
hashCode = prime * hashCode + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
hashCode = prime * hashCode + ((getMobilePhoneNumber() == null) ? 0 : getMobilePhoneNumber().hashCode());
hashCode = prime * hashCode + ((getHomePhoneNumber() == null) ? 0 : getHomePhoneNumber().hashCode());
hashCode = prime * hashCode + ((getBusinessPhoneNumber() == null) ? 0 : getBusinessPhoneNumber().hashCode());
hashCode = prime * hashCode + ((getEmailAddress() == null) ? 0 : getEmailAddress().hashCode());
hashCode = prime * hashCode + ((getPersonalEmailAddress() == null) ? 0 : getPersonalEmailAddress().hashCode());
hashCode = prime * hashCode + ((getBusinessEmailAddress() == null) ? 0 : getBusinessEmailAddress().hashCode());
hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().hashCode());
hashCode = prime * hashCode + ((getShippingAddress() == null) ? 0 : getShippingAddress().hashCode());
hashCode = prime * hashCode + ((getMailingAddress() == null) ? 0 : getMailingAddress().hashCode());
hashCode = prime * hashCode + ((getBillingAddress() == null) ? 0 : getBillingAddress().hashCode());
hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode());
hashCode = prime * hashCode + ((getPartyTypeString() == null) ? 0 : getPartyTypeString().hashCode());
hashCode = prime * hashCode + ((getGenderString() == null) ? 0 : getGenderString().hashCode());
return hashCode;
}
@Override
public UpdateProfileRequest clone() {
return (UpdateProfileRequest) super.clone();
}
}