if (getDisplayId() != null) sb.append("DisplayId: ").append(getDisplayId()).append(","); if (getSubject() != null) sb.append("Subject: ").append(getSubject()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).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.getDisplayId() != null && other.getDisplayId().equals(this.getDisplayId()) == false) return false; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == 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 (getDisplayId() != null) sb.append("DisplayId: ").append(getDisplayId()).append(","); if (getSubject() != null) sb.append("Subject: ").append(getSubject()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(",");
@Override public void onSuccess(DescribeCasesRequest request, DescribeCasesResult describeCasesResult) { describeCasesResult.getCases().forEach(caseDetails -> { logger.debug(caseDetails.toString()); cases.addOpenCase( caseDetails.getCaseId(), caseDetails.getTimeCreated(), caseDetails.getStatus(), caseDetails.getSubmittedBy(), caseDetails.getSubject() ); }); String returnedNextToken = describeCasesResult.getNextToken(); if (returnedNextToken != null && !returnedNextToken.isEmpty()){ describeCases(returnedNextToken, cases, future); } else { future.complete(cases); if (autoshutdown){ shutdown(); } } } });
@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.getDisplayId() != null && other.getDisplayId().equals(this.getDisplayId()) == false) return false; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == 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); } }