@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getBody() == null) ? 0 : getBody().hashCode()); hashCode = prime * hashCode + ((getSubmittedBy() == null) ? 0 : getSubmittedBy().hashCode()); hashCode = prime * hashCode + ((getTimeCreated() == null) ? 0 : getTimeCreated().hashCode()); hashCode = prime * hashCode + ((getAttachmentSet() == null) ? 0 : getAttachmentSet().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 (getBody() != null) sb.append("Body: ").append(getBody()).append(","); if (getSubmittedBy() != null) sb.append("SubmittedBy: ").append(getSubmittedBy()).append(","); if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).append(","); if (getAttachmentSet() != null) sb.append("AttachmentSet: ").append(getAttachmentSet()); sb.append("}"); return sb.toString(); }
if (other.getTimeCreated() != null && other.getTimeCreated().equals(this.getTimeCreated()) == false) return false; if (other.getAttachmentSet() == null ^ this.getAttachmentSet() == null) return false; if (other.getAttachmentSet() != null && other.getAttachmentSet().equals(this.getAttachmentSet()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(Communication communication, ProtocolMarshaller protocolMarshaller) { if (communication == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(communication.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(communication.getBody(), BODY_BINDING); protocolMarshaller.marshall(communication.getSubmittedBy(), SUBMITTEDBY_BINDING); protocolMarshaller.marshall(communication.getTimeCreated(), TIMECREATED_BINDING); protocolMarshaller.marshall(communication.getAttachmentSet(), ATTACHMENTSET_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 + ((getBody() == null) ? 0 : getBody().hashCode()); hashCode = prime * hashCode + ((getSubmittedBy() == null) ? 0 : getSubmittedBy().hashCode()); hashCode = prime * hashCode + ((getTimeCreated() == null) ? 0 : getTimeCreated().hashCode()); hashCode = prime * hashCode + ((getAttachmentSet() == null) ? 0 : getAttachmentSet().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 (getBody() != null) sb.append("Body: ").append(getBody()).append(","); if (getSubmittedBy() != null) sb.append("SubmittedBy: ").append(getSubmittedBy()).append(","); if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).append(","); if (getAttachmentSet() != null) sb.append("AttachmentSet: ").append(getAttachmentSet()); sb.append("}"); return sb.toString(); }
if (other.getTimeCreated() != null && other.getTimeCreated().equals(this.getTimeCreated()) == false) return false; if (other.getAttachmentSet() == null ^ this.getAttachmentSet() == null) return false; if (other.getAttachmentSet() != null && other.getAttachmentSet().equals(this.getAttachmentSet()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(Communication communication, ProtocolMarshaller protocolMarshaller) { if (communication == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(communication.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(communication.getBody(), BODY_BINDING); protocolMarshaller.marshall(communication.getSubmittedBy(), SUBMITTEDBY_BINDING); protocolMarshaller.marshall(communication.getTimeCreated(), TIMECREATED_BINDING); protocolMarshaller.marshall(communication.getAttachmentSet(), ATTACHMENTSET_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }