* The name of the contact list to which the contact belongs. *
*/ private String contactListName; /** ** The contact's email address. *
*/ private String emailAddress; /** ** The contact's preference for being opted-in to or opted-out of a topic.> *
*/ private java.util.List* The default topic preferences applied to the contact. *
*/ private java.util.List* A boolean value status noting if the contact is unsubscribed from all contact list topics. *
*/ private Boolean unsubscribeAll; /** ** The attribute data attached to a contact. *
*/ private String attributesData; /** ** A timestamp noting when the contact was created. *
*/ private java.util.Date createdTimestamp; /** ** A timestamp noting the last time the contact's information was updated. *
*/ private java.util.Date lastUpdatedTimestamp; /** ** The name of the contact list to which the contact belongs. *
* * @param contactListName * The name of the contact list to which the contact belongs. */ public void setContactListName(String contactListName) { this.contactListName = contactListName; } /** ** The name of the contact list to which the contact belongs. *
* * @return The name of the contact list to which the contact belongs. */ public String getContactListName() { return this.contactListName; } /** ** The name of the contact list to which the contact belongs. *
* * @param contactListName * The name of the contact list to which the contact belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withContactListName(String contactListName) { setContactListName(contactListName); return this; } /** ** The contact's email address. *
* * @param emailAddress * The contact's email address. */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** ** The contact's email address. *
* * @return The contact's email address. */ public String getEmailAddress() { return this.emailAddress; } /** ** The contact's email address. *
* * @param emailAddress * The contact's email address. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withEmailAddress(String emailAddress) { setEmailAddress(emailAddress); return this; } /** ** The contact's preference for being opted-in to or opted-out of a topic.> *
* * @return The contact's preference for being opted-in to or opted-out of a topic.> */ public java.util.List* The contact's preference for being opted-in to or opted-out of a topic.> *
* * @param topicPreferences * The contact's preference for being opted-in to or opted-out of a topic.> */ public void setTopicPreferences(java.util.Collection* The contact's preference for being opted-in to or opted-out of a topic.> *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTopicPreferences(java.util.Collection)} or {@link #withTopicPreferences(java.util.Collection)} if you * want to override the existing values. *
* * @param topicPreferences * The contact's preference for being opted-in to or opted-out of a topic.> * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withTopicPreferences(TopicPreference... topicPreferences) { if (this.topicPreferences == null) { setTopicPreferences(new java.util.ArrayList* The contact's preference for being opted-in to or opted-out of a topic.> *
* * @param topicPreferences * The contact's preference for being opted-in to or opted-out of a topic.> * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withTopicPreferences(java.util.Collection* The default topic preferences applied to the contact. *
* * @return The default topic preferences applied to the contact. */ public java.util.List* The default topic preferences applied to the contact. *
* * @param topicDefaultPreferences * The default topic preferences applied to the contact. */ public void setTopicDefaultPreferences(java.util.Collection* The default topic preferences applied to the contact. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTopicDefaultPreferences(java.util.Collection)} or * {@link #withTopicDefaultPreferences(java.util.Collection)} if you want to override the existing values. *
* * @param topicDefaultPreferences * The default topic preferences applied to the contact. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withTopicDefaultPreferences(TopicPreference... topicDefaultPreferences) { if (this.topicDefaultPreferences == null) { setTopicDefaultPreferences(new java.util.ArrayList* The default topic preferences applied to the contact. *
* * @param topicDefaultPreferences * The default topic preferences applied to the contact. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withTopicDefaultPreferences(java.util.Collection* A boolean value status noting if the contact is unsubscribed from all contact list topics. *
* * @param unsubscribeAll * A boolean value status noting if the contact is unsubscribed from all contact list topics. */ public void setUnsubscribeAll(Boolean unsubscribeAll) { this.unsubscribeAll = unsubscribeAll; } /** ** A boolean value status noting if the contact is unsubscribed from all contact list topics. *
* * @return A boolean value status noting if the contact is unsubscribed from all contact list topics. */ public Boolean getUnsubscribeAll() { return this.unsubscribeAll; } /** ** A boolean value status noting if the contact is unsubscribed from all contact list topics. *
* * @param unsubscribeAll * A boolean value status noting if the contact is unsubscribed from all contact list topics. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withUnsubscribeAll(Boolean unsubscribeAll) { setUnsubscribeAll(unsubscribeAll); return this; } /** ** A boolean value status noting if the contact is unsubscribed from all contact list topics. *
* * @return A boolean value status noting if the contact is unsubscribed from all contact list topics. */ public Boolean isUnsubscribeAll() { return this.unsubscribeAll; } /** ** The attribute data attached to a contact. *
* * @param attributesData * The attribute data attached to a contact. */ public void setAttributesData(String attributesData) { this.attributesData = attributesData; } /** ** The attribute data attached to a contact. *
* * @return The attribute data attached to a contact. */ public String getAttributesData() { return this.attributesData; } /** ** The attribute data attached to a contact. *
* * @param attributesData * The attribute data attached to a contact. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withAttributesData(String attributesData) { setAttributesData(attributesData); return this; } /** ** A timestamp noting when the contact was created. *
* * @param createdTimestamp * A timestamp noting when the contact was created. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** A timestamp noting when the contact was created. *
* * @return A timestamp noting when the contact was created. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** ** A timestamp noting when the contact was created. *
* * @param createdTimestamp * A timestamp noting when the contact was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** ** A timestamp noting the last time the contact's information was updated. *
* * @param lastUpdatedTimestamp * A timestamp noting the last time the contact's information was updated. */ public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; } /** ** A timestamp noting the last time the contact's information was updated. *
* * @return A timestamp noting the last time the contact's information was updated. */ public java.util.Date getLastUpdatedTimestamp() { return this.lastUpdatedTimestamp; } /** ** A timestamp noting the last time the contact's information was updated. *
* * @param lastUpdatedTimestamp * A timestamp noting the last time the contact's information was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactResult withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); 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 (getContactListName() != null) sb.append("ContactListName: ").append(getContactListName()).append(","); if (getEmailAddress() != null) sb.append("EmailAddress: ").append(getEmailAddress()).append(","); if (getTopicPreferences() != null) sb.append("TopicPreferences: ").append(getTopicPreferences()).append(","); if (getTopicDefaultPreferences() != null) sb.append("TopicDefaultPreferences: ").append(getTopicDefaultPreferences()).append(","); if (getUnsubscribeAll() != null) sb.append("UnsubscribeAll: ").append(getUnsubscribeAll()).append(","); if (getAttributesData() != null) sb.append("AttributesData: ").append(getAttributesData()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); if (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetContactResult == false) return false; GetContactResult other = (GetContactResult) obj; if (other.getContactListName() == null ^ this.getContactListName() == null) return false; if (other.getContactListName() != null && other.getContactListName().equals(this.getContactListName()) == 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.getTopicPreferences() == null ^ this.getTopicPreferences() == null) return false; if (other.getTopicPreferences() != null && other.getTopicPreferences().equals(this.getTopicPreferences()) == false) return false; if (other.getTopicDefaultPreferences() == null ^ this.getTopicDefaultPreferences() == null) return false; if (other.getTopicDefaultPreferences() != null && other.getTopicDefaultPreferences().equals(this.getTopicDefaultPreferences()) == false) return false; if (other.getUnsubscribeAll() == null ^ this.getUnsubscribeAll() == null) return false; if (other.getUnsubscribeAll() != null && other.getUnsubscribeAll().equals(this.getUnsubscribeAll()) == false) return false; if (other.getAttributesData() == null ^ this.getAttributesData() == null) return false; if (other.getAttributesData() != null && other.getAttributesData().equals(this.getAttributesData()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) return false; if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContactListName() == null) ? 0 : getContactListName().hashCode()); hashCode = prime * hashCode + ((getEmailAddress() == null) ? 0 : getEmailAddress().hashCode()); hashCode = prime * hashCode + ((getTopicPreferences() == null) ? 0 : getTopicPreferences().hashCode()); hashCode = prime * hashCode + ((getTopicDefaultPreferences() == null) ? 0 : getTopicDefaultPreferences().hashCode()); hashCode = prime * hashCode + ((getUnsubscribeAll() == null) ? 0 : getUnsubscribeAll().hashCode()); hashCode = prime * hashCode + ((getAttributesData() == null) ? 0 : getAttributesData().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); return hashCode; } @Override public GetContactResult clone() { try { return (GetContactResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }