if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).append(","); if (getRecentCommunications() != null) sb.append("RecentCommunications: ").append(getRecentCommunications()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getDisplayId() == null) ? 0 : getDisplayId().hashCode()); hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getCategoryCode() == null) ? 0 : getCategoryCode().hashCode()); hashCode = prime * hashCode + ((getSeverityCode() == null) ? 0 : getSeverityCode().hashCode()); hashCode = prime * hashCode + ((getSubmittedBy() == null) ? 0 : getSubmittedBy().hashCode()); hashCode = prime * hashCode + ((getTimeCreated() == null) ? 0 : getTimeCreated().hashCode()); hashCode = prime * hashCode + ((getRecentCommunications() == null) ? 0 : getRecentCommunications().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); return hashCode; }
if (other.getTimeCreated() != null && other.getTimeCreated().equals(this.getTimeCreated()) == false) return false; if (other.getRecentCommunications() == null ^ this.getRecentCommunications() == null) return false; if (other.getRecentCommunications() != null && other.getRecentCommunications().equals(this.getRecentCommunications()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == null)
/** * Marshall the given parameter object. */ public void marshall(CaseDetails caseDetails, ProtocolMarshaller protocolMarshaller) { if (caseDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(caseDetails.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(caseDetails.getDisplayId(), DISPLAYID_BINDING); protocolMarshaller.marshall(caseDetails.getSubject(), SUBJECT_BINDING); protocolMarshaller.marshall(caseDetails.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(caseDetails.getServiceCode(), SERVICECODE_BINDING); protocolMarshaller.marshall(caseDetails.getCategoryCode(), CATEGORYCODE_BINDING); protocolMarshaller.marshall(caseDetails.getSeverityCode(), SEVERITYCODE_BINDING); protocolMarshaller.marshall(caseDetails.getSubmittedBy(), SUBMITTEDBY_BINDING); protocolMarshaller.marshall(caseDetails.getTimeCreated(), TIMECREATED_BINDING); protocolMarshaller.marshall(caseDetails.getRecentCommunications(), RECENTCOMMUNICATIONS_BINDING); protocolMarshaller.marshall(caseDetails.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(caseDetails.getLanguage(), LANGUAGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).append(","); if (getRecentCommunications() != null) sb.append("RecentCommunications: ").append(getRecentCommunications()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getDisplayId() == null) ? 0 : getDisplayId().hashCode()); hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getCategoryCode() == null) ? 0 : getCategoryCode().hashCode()); hashCode = prime * hashCode + ((getSeverityCode() == null) ? 0 : getSeverityCode().hashCode()); hashCode = prime * hashCode + ((getSubmittedBy() == null) ? 0 : getSubmittedBy().hashCode()); hashCode = prime * hashCode + ((getTimeCreated() == null) ? 0 : getTimeCreated().hashCode()); hashCode = prime * hashCode + ((getRecentCommunications() == null) ? 0 : getRecentCommunications().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); return hashCode; }
if (other.getTimeCreated() != null && other.getTimeCreated().equals(this.getTimeCreated()) == false) return false; if (other.getRecentCommunications() == null ^ this.getRecentCommunications() == null) return false; if (other.getRecentCommunications() != null && other.getRecentCommunications().equals(this.getRecentCommunications()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == null)
/** * Marshall the given parameter object. */ public void marshall(CaseDetails caseDetails, ProtocolMarshaller protocolMarshaller) { if (caseDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(caseDetails.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(caseDetails.getDisplayId(), DISPLAYID_BINDING); protocolMarshaller.marshall(caseDetails.getSubject(), SUBJECT_BINDING); protocolMarshaller.marshall(caseDetails.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(caseDetails.getServiceCode(), SERVICECODE_BINDING); protocolMarshaller.marshall(caseDetails.getCategoryCode(), CATEGORYCODE_BINDING); protocolMarshaller.marshall(caseDetails.getSeverityCode(), SEVERITYCODE_BINDING); protocolMarshaller.marshall(caseDetails.getSubmittedBy(), SUBMITTEDBY_BINDING); protocolMarshaller.marshall(caseDetails.getTimeCreated(), TIMECREATED_BINDING); protocolMarshaller.marshall(caseDetails.getRecentCommunications(), RECENTCOMMUNICATIONS_BINDING); protocolMarshaller.marshall(caseDetails.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING); protocolMarshaller.marshall(caseDetails.getLanguage(), LANGUAGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }