@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
/** * 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 (getCaseId() != null) sb.append("CaseId: ").append(getCaseId()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddCommunicationToCaseRequest == false) return false; AddCommunicationToCaseRequest other = (AddCommunicationToCaseRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false) return false; if (other.getCommunicationBody() == null ^ this.getCommunicationBody() == null) return false; if (other.getCommunicationBody() != null && other.getCommunicationBody().equals(this.getCommunicationBody()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == null) return false; if (other.getCcEmailAddresses() != null && other.getCcEmailAddresses().equals(this.getCcEmailAddresses()) == false) return false; if (other.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null) return false; if (other.getAttachmentSetId() != null && other.getAttachmentSetId().equals(this.getAttachmentSetId()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) { if (addCommunicationToCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(addCommunicationToCaseRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getAttachmentSetId(), ATTACHMENTSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getCommunicationBody() == null) ? 0 : getCommunicationBody().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getAttachmentSetId() == null) ? 0 : getAttachmentSetId().hashCode()); return hashCode; }
/** * 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 (getCaseId() != null) sb.append("CaseId: ").append(getCaseId()).append(","); if (getCommunicationBody() != null) sb.append("CommunicationBody: ").append(getCommunicationBody()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(","); if (getAttachmentSetId() != null) sb.append("AttachmentSetId: ").append(getAttachmentSetId()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddCommunicationToCaseRequest == false) return false; AddCommunicationToCaseRequest other = (AddCommunicationToCaseRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false) return false; if (other.getCommunicationBody() == null ^ this.getCommunicationBody() == null) return false; if (other.getCommunicationBody() != null && other.getCommunicationBody().equals(this.getCommunicationBody()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == null) return false; if (other.getCcEmailAddresses() != null && other.getCcEmailAddresses().equals(this.getCcEmailAddresses()) == false) return false; if (other.getAttachmentSetId() == null ^ this.getAttachmentSetId() == null) return false; if (other.getAttachmentSetId() != null && other.getAttachmentSetId().equals(this.getAttachmentSetId()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) { if (addCommunicationToCaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(addCommunicationToCaseRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCommunicationBody(), COMMUNICATIONBODY_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(addCommunicationToCaseRequest.getAttachmentSetId(), ATTACHMENTSETID_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }