* Contains information about one or more analysis results. *
*/ private java.util.List
* The token that you can use to return the next set of results, or null
if there are no more results.
*
* Contains information about one or more analysis results. *
* * @return Contains information about one or more analysis results. */ public java.util.List* Contains information about one or more analysis results. *
* * @param analysisResults * Contains information about one or more analysis results. */ public void setAnalysisResults(java.util.Collection* Contains information about one or more analysis results. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAnalysisResults(java.util.Collection)} or {@link #withAnalysisResults(java.util.Collection)} if you * want to override the existing values. *
* * @param analysisResults * Contains information about one or more analysis results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorModelAnalysisResultsResult withAnalysisResults(AnalysisResult... analysisResults) { if (this.analysisResults == null) { setAnalysisResults(new java.util.ArrayList* Contains information about one or more analysis results. *
* * @param analysisResults * Contains information about one or more analysis results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDetectorModelAnalysisResultsResult withAnalysisResults(java.util.Collection
* The token that you can use to return the next set of results, or null
if there are no more results.
*
null
if there are no more
* results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The token that you can use to return the next set of results, or null
if there are no more results.
*
null
if there are no more
* results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The token that you can use to return the next set of results, or null
if there are no more results.
*
null
if there are no more
* results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDetectorModelAnalysisResultsResult 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 (getAnalysisResults() != null)
sb.append("AnalysisResults: ").append(getAnalysisResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetDetectorModelAnalysisResultsResult == false)
return false;
GetDetectorModelAnalysisResultsResult other = (GetDetectorModelAnalysisResultsResult) obj;
if (other.getAnalysisResults() == null ^ this.getAnalysisResults() == null)
return false;
if (other.getAnalysisResults() != null && other.getAnalysisResults().equals(this.getAnalysisResults()) == 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;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAnalysisResults() == null) ? 0 : getAnalysisResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetDetectorModelAnalysisResultsResult clone() {
try {
return (GetDetectorModelAnalysisResultsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}