@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getBeforeTime() == null) ? 0 : getBeforeTime().hashCode()); hashCode = prime * hashCode + ((getAfterTime() == null) ? 0 : getAfterTime().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().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 (getBeforeTime() != null) sb.append("BeforeTime: ").append(getBeforeTime()).append(","); if (getAfterTime() != null) sb.append("AfterTime: ").append(getAfterTime()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); }
if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false) return false; if (other.getBeforeTime() == null ^ this.getBeforeTime() == null) return false; if (other.getBeforeTime() != null && other.getBeforeTime().equals(this.getBeforeTime()) == false) return false; if (other.getAfterTime() == null ^ this.getAfterTime() == null)
/** * Marshall the given parameter object. */ public void marshall(DescribeCommunicationsRequest describeCommunicationsRequest, ProtocolMarshaller protocolMarshaller) { if (describeCommunicationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeCommunicationsRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getBeforeTime(), BEFORETIME_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getAfterTime(), AFTERTIME_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getMaxResults(), MAXRESULTS_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 + ((getBeforeTime() == null) ? 0 : getBeforeTime().hashCode()); hashCode = prime * hashCode + ((getAfterTime() == null) ? 0 : getAfterTime().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().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 (getBeforeTime() != null) sb.append("BeforeTime: ").append(getBeforeTime()).append(","); if (getAfterTime() != null) sb.append("AfterTime: ").append(getAfterTime()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); }
if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false) return false; if (other.getBeforeTime() == null ^ this.getBeforeTime() == null) return false; if (other.getBeforeTime() != null && other.getBeforeTime().equals(this.getBeforeTime()) == false) return false; if (other.getAfterTime() == null ^ this.getAfterTime() == null)
/** * Marshall the given parameter object. */ public void marshall(DescribeCommunicationsRequest describeCommunicationsRequest, ProtocolMarshaller protocolMarshaller) { if (describeCommunicationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeCommunicationsRequest.getCaseId(), CASEID_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getBeforeTime(), BEFORETIME_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getAfterTime(), AFTERTIME_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(describeCommunicationsRequest.getMaxResults(), MAXRESULTS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }