@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; }
/** * <p> * The start date for a filtered date search on support case communications. Case communications are available for * 12 months after creation. * </p> * * @param afterTime * The start date for a filtered date search on support case communications. Case communications are * available for 12 months after creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withAfterTime(String afterTime) { setAfterTime(afterTime); return this; }
/** * <p> * The end date for a filtered date search on support case communications. Case communications are available for 12 * months after creation. * </p> * * @param beforeTime * The end date for a filtered date search on support case communications. Case communications are available * for 12 months after creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withBeforeTime(String beforeTime) { setBeforeTime(beforeTime); return this; }
/** * <p> * The maximum number of results to return before paginating. * </p> * * @param maxResults * The maximum number of results to return before paginating. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * A resumption point for pagination. * </p> * * @param nextToken * A resumption point for pagination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * </p> * * @param caseId * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted * as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withCaseId(String caseId) { setCaseId(caseId); return this; }
/** * <p> * The maximum number of results to return before paginating. * </p> * * @param maxResults * The maximum number of results to return before paginating. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * A resumption point for pagination. * </p> * * @param nextToken * A resumption point for pagination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * </p> * * @param caseId * The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted * as shown in this example: case-<i>12345678910-2013-c4c1d2bf33c5cf47</i> * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withCaseId(String caseId) { setCaseId(caseId); return this; }
return false; DescribeCommunicationsRequest other = (DescribeCommunicationsRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; 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) return false; if (other.getAfterTime() != null && other.getAfterTime().equals(this.getAfterTime()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true;
/** * <p> * The start date for a filtered date search on support case communications. Case communications are available for * 12 months after creation. * </p> * * @param afterTime * The start date for a filtered date search on support case communications. Case communications are * available for 12 months after creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withAfterTime(String afterTime) { setAfterTime(afterTime); return this; }
/** * <p> * The end date for a filtered date search on support case communications. Case communications are available for 12 * months after creation. * </p> * * @param beforeTime * The end date for a filtered date search on support case communications. Case communications are available * for 12 months after creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCommunicationsRequest withBeforeTime(String beforeTime) { setBeforeTime(beforeTime); return this; }
/** * 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(); }
/** * 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; }
return false; DescribeCommunicationsRequest other = (DescribeCommunicationsRequest) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; 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) return false; if (other.getAfterTime() != null && other.getAfterTime().equals(this.getAfterTime()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true;
/** * 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(); }
/** * 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); } }