if (getSeverityCode() != null) sb.append("SeverityCode: ").append(getSeverityCode()).append(","); if (getSubmittedBy() != null) sb.append("SubmittedBy: ").append(getSubmittedBy()).append(","); if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).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.getSeverityCode() != null && other.getSeverityCode().equals(this.getSeverityCode()) == false) return false; if (other.getSubmittedBy() == null ^ this.getSubmittedBy() == null) return false; if (other.getSubmittedBy() != null && other.getSubmittedBy().equals(this.getSubmittedBy()) == false) return false; if (other.getTimeCreated() == null ^ this.getTimeCreated() == 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 (getSeverityCode() != null) sb.append("SeverityCode: ").append(getSeverityCode()).append(","); if (getSubmittedBy() != null) sb.append("SubmittedBy: ").append(getSubmittedBy()).append(","); if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).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.getSeverityCode() != null && other.getSeverityCode().equals(this.getSeverityCode()) == false) return false; if (other.getSubmittedBy() == null ^ this.getSubmittedBy() == null) return false; if (other.getSubmittedBy() != null && other.getSubmittedBy().equals(this.getSubmittedBy()) == false) return false; if (other.getTimeCreated() == null ^ this.getTimeCreated() == 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); } }