* The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. *
*/ private java.util.List* A token used for pagination of results returned. *
*/ private String nextToken; /** ** The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. *
* * @return The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. */ public java.util.List* The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. *
* * @param findings * The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. */ public void setFindings(java.util.Collection* The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFindings(java.util.Collection)} or {@link #withFindings(java.util.Collection)} if you want to override * the existing values. *
* * @param findings * The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyResult withFindings(ValidatePolicyFinding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList* The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. *
* * @param findings * The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyResult withFindings(java.util.Collection* A token used for pagination of results returned. *
* * @param nextToken * A token used for pagination of results returned. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** A token used for pagination of results returned. *
* * @return A token used for pagination of results returned. */ public String getNextToken() { return this.nextToken; } /** ** A token used for pagination of results returned. *
* * @param nextToken * A token used for pagination of results returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyResult 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 (getFindings() != null) sb.append("Findings: ").append(getFindings()).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 ValidatePolicyResult == false) return false; ValidatePolicyResult other = (ValidatePolicyResult) obj; if (other.getFindings() == null ^ this.getFindings() == null) return false; if (other.getFindings() != null && other.getFindings().equals(this.getFindings()) == 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 + ((getFindings() == null) ? 0 : getFindings().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ValidatePolicyResult clone() { try { return (ValidatePolicyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }