@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCommunications() == null) ? 0 : getCommunications().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * <p> * The five most recent communications associated with the case. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(java.util.Collection<Communication> communications) { setCommunications(communications); 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 RecentCaseCommunications withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public RecentCaseCommunications unmarshall(JsonUnmarshallerContext context) throws Exception { RecentCaseCommunications recentCaseCommunications = new RecentCaseCommunications(); if (context.testExpression("communications", targetDepth)) { context.nextToken(); recentCaseCommunications.setCommunications(new ListUnmarshaller<Communication>(CommunicationJsonUnmarshaller.getInstance()) .unmarshall(context)); recentCaseCommunications.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
@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.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)
public RecentCaseCommunications unmarshall(JsonUnmarshallerContext context) throws Exception { RecentCaseCommunications recentCaseCommunications = new RecentCaseCommunications(); if (context.testExpression("communications", targetDepth)) { context.nextToken(); recentCaseCommunications.setCommunications(new ListUnmarshaller<Communication>(CommunicationJsonUnmarshaller.getInstance()) .unmarshall(context)); recentCaseCommunications.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
@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.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)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RecentCaseCommunications == false) return false; RecentCaseCommunications other = (RecentCaseCommunications) obj; if (other.getCommunications() == null ^ this.getCommunications() == null) return false; if (other.getCommunications() != null && other.getCommunications().equals(this.getCommunications()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; }
/** * <p> * The five most recent communications associated with the case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCommunications(java.util.Collection)} or {@link #withCommunications(java.util.Collection)} if you want * to override the existing values. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(Communication... communications) { if (this.communications == null) { setCommunications(new com.amazonaws.internal.SdkInternalList<Communication>(communications.length)); } for (Communication ele : communications) { this.communications.add(ele); } 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 RecentCaseCommunications withNextToken(String nextToken) { setNextToken(nextToken); 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 (getCommunications() != null) sb.append("Communications: ").append(getCommunications()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
/** * <p> * The five most recent communications associated with the case. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(java.util.Collection<Communication> communications) { setCommunications(communications); return this; }
/** * Marshall the given parameter object. */ public void marshall(RecentCaseCommunications recentCaseCommunications, ProtocolMarshaller protocolMarshaller) { if (recentCaseCommunications == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(recentCaseCommunications.getCommunications(), COMMUNICATIONS_BINDING); protocolMarshaller.marshall(recentCaseCommunications.getNextToken(), NEXTTOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * The five most recent communications associated with the case. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCommunications(java.util.Collection)} or {@link #withCommunications(java.util.Collection)} if you want * to override the existing values. * </p> * * @param communications * The five most recent communications associated with the case. * @return Returns a reference to this object so that method calls can be chained together. */ public RecentCaseCommunications withCommunications(Communication... communications) { if (this.communications == null) { setCommunications(new com.amazonaws.internal.SdkInternalList<Communication>(communications.length)); } for (Communication ele : communications) { this.communications.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCommunications() == null) ? 0 : getCommunications().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RecentCaseCommunications == false) return false; RecentCaseCommunications other = (RecentCaseCommunications) obj; if (other.getCommunications() == null ^ this.getCommunications() == null) return false; if (other.getCommunications() != null && other.getCommunications().equals(this.getCommunications()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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 (getCommunications() != null) sb.append("Communications: ").append(getCommunications()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(RecentCaseCommunications recentCaseCommunications, ProtocolMarshaller protocolMarshaller) { if (recentCaseCommunications == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(recentCaseCommunications.getCommunications(), COMMUNICATIONS_BINDING); protocolMarshaller.marshall(recentCaseCommunications.getNextToken(), NEXTTOKEN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }