* A list of detailed field information. *
*/ private java.util.List* The token for the next set of results. This is null if there are no more results to return. *
*/ private String nextToken; /** ** A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control * access for this resource. *
*/ private java.util.Map* A unique identifier of a template. *
*/ private String templateId; /** ** A list of detailed field information. *
* * @return A list of detailed field information. */ public java.util.List* A list of detailed field information. *
* * @param fields * A list of detailed field information. */ public void setFields(java.util.Collection* A list of detailed field information. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the * existing values. *
* * @param fields * A list of detailed field information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCaseResult withFields(FieldValue... fields) { if (this.fields == null) { setFields(new java.util.ArrayList* A list of detailed field information. *
* * @param fields * A list of detailed field information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCaseResult withFields(java.util.Collection* The token for the next set of results. This is null if there are no more results to return. *
* * @param nextToken * The token for the next set of results. This is null if there are no more results to return. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The token for the next set of results. This is null if there are no more results to return. *
* * @return The token for the next set of results. This is null if there are no more results to return. */ public String getNextToken() { return this.nextToken; } /** ** The token for the next set of results. This is null if there are no more results to return. *
* * @param nextToken * The token for the next set of results. This is null if there are no more results to return. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCaseResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control * access for this resource. *
* * @return A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or * control access for this resource. */ public java.util.Map* A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control * access for this resource. *
* * @param tags * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or * control access for this resource. */ public void setTags(java.util.Map* A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control * access for this resource. *
* * @param tags * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or * control access for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCaseResult withTags(java.util.Map* A unique identifier of a template. *
* * @param templateId * A unique identifier of a template. */ public void setTemplateId(String templateId) { this.templateId = templateId; } /** ** A unique identifier of a template. *
* * @return A unique identifier of a template. */ public String getTemplateId() { return this.templateId; } /** ** A unique identifier of a template. *
* * @param templateId * A unique identifier of a template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCaseResult withTemplateId(String templateId) { setTemplateId(templateId); 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 (getFields() != null) sb.append("Fields: ").append(getFields()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getTemplateId() != null) sb.append("TemplateId: ").append(getTemplateId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetCaseResult == false) return false; GetCaseResult other = (GetCaseResult) obj; if (other.getFields() == null ^ this.getFields() == null) return false; if (other.getFields() != null && other.getFields().equals(this.getFields()) == 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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTemplateId() == null ^ this.getTemplateId() == null) return false; if (other.getTemplateId() != null && other.getTemplateId().equals(this.getTemplateId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFields() == null) ? 0 : getFields().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTemplateId() == null) ? 0 : getTemplateId().hashCode()); return hashCode; } @Override public GetCaseResult clone() { try { return (GetCaseResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }