* Information about the data access policies in your account. *
*/ private AccessPolicyStats accessPolicyStats; /** ** Information about the security configurations in your account. *
*/ private SecurityConfigStats securityConfigStats; /** ** Information about the security policies in your account. *
*/ private SecurityPolicyStats securityPolicyStats; /** ** The total number of OpenSearch Serverless security policies and configurations in your account. *
*/ private Long totalPolicyCount; /** ** Information about the data access policies in your account. *
* * @param accessPolicyStats * Information about the data access policies in your account. */ public void setAccessPolicyStats(AccessPolicyStats accessPolicyStats) { this.accessPolicyStats = accessPolicyStats; } /** ** Information about the data access policies in your account. *
* * @return Information about the data access policies in your account. */ public AccessPolicyStats getAccessPolicyStats() { return this.accessPolicyStats; } /** ** Information about the data access policies in your account. *
* * @param accessPolicyStats * Information about the data access policies in your account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPoliciesStatsResult withAccessPolicyStats(AccessPolicyStats accessPolicyStats) { setAccessPolicyStats(accessPolicyStats); return this; } /** ** Information about the security configurations in your account. *
* * @param securityConfigStats * Information about the security configurations in your account. */ public void setSecurityConfigStats(SecurityConfigStats securityConfigStats) { this.securityConfigStats = securityConfigStats; } /** ** Information about the security configurations in your account. *
* * @return Information about the security configurations in your account. */ public SecurityConfigStats getSecurityConfigStats() { return this.securityConfigStats; } /** ** Information about the security configurations in your account. *
* * @param securityConfigStats * Information about the security configurations in your account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPoliciesStatsResult withSecurityConfigStats(SecurityConfigStats securityConfigStats) { setSecurityConfigStats(securityConfigStats); return this; } /** ** Information about the security policies in your account. *
* * @param securityPolicyStats * Information about the security policies in your account. */ public void setSecurityPolicyStats(SecurityPolicyStats securityPolicyStats) { this.securityPolicyStats = securityPolicyStats; } /** ** Information about the security policies in your account. *
* * @return Information about the security policies in your account. */ public SecurityPolicyStats getSecurityPolicyStats() { return this.securityPolicyStats; } /** ** Information about the security policies in your account. *
* * @param securityPolicyStats * Information about the security policies in your account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPoliciesStatsResult withSecurityPolicyStats(SecurityPolicyStats securityPolicyStats) { setSecurityPolicyStats(securityPolicyStats); return this; } /** ** The total number of OpenSearch Serverless security policies and configurations in your account. *
* * @param totalPolicyCount * The total number of OpenSearch Serverless security policies and configurations in your account. */ public void setTotalPolicyCount(Long totalPolicyCount) { this.totalPolicyCount = totalPolicyCount; } /** ** The total number of OpenSearch Serverless security policies and configurations in your account. *
* * @return The total number of OpenSearch Serverless security policies and configurations in your account. */ public Long getTotalPolicyCount() { return this.totalPolicyCount; } /** ** The total number of OpenSearch Serverless security policies and configurations in your account. *
* * @param totalPolicyCount * The total number of OpenSearch Serverless security policies and configurations in your account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPoliciesStatsResult withTotalPolicyCount(Long totalPolicyCount) { setTotalPolicyCount(totalPolicyCount); 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 (getAccessPolicyStats() != null) sb.append("AccessPolicyStats: ").append(getAccessPolicyStats()).append(","); if (getSecurityConfigStats() != null) sb.append("SecurityConfigStats: ").append(getSecurityConfigStats()).append(","); if (getSecurityPolicyStats() != null) sb.append("SecurityPolicyStats: ").append(getSecurityPolicyStats()).append(","); if (getTotalPolicyCount() != null) sb.append("TotalPolicyCount: ").append(getTotalPolicyCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPoliciesStatsResult == false) return false; GetPoliciesStatsResult other = (GetPoliciesStatsResult) obj; if (other.getAccessPolicyStats() == null ^ this.getAccessPolicyStats() == null) return false; if (other.getAccessPolicyStats() != null && other.getAccessPolicyStats().equals(this.getAccessPolicyStats()) == false) return false; if (other.getSecurityConfigStats() == null ^ this.getSecurityConfigStats() == null) return false; if (other.getSecurityConfigStats() != null && other.getSecurityConfigStats().equals(this.getSecurityConfigStats()) == false) return false; if (other.getSecurityPolicyStats() == null ^ this.getSecurityPolicyStats() == null) return false; if (other.getSecurityPolicyStats() != null && other.getSecurityPolicyStats().equals(this.getSecurityPolicyStats()) == false) return false; if (other.getTotalPolicyCount() == null ^ this.getTotalPolicyCount() == null) return false; if (other.getTotalPolicyCount() != null && other.getTotalPolicyCount().equals(this.getTotalPolicyCount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccessPolicyStats() == null) ? 0 : getAccessPolicyStats().hashCode()); hashCode = prime * hashCode + ((getSecurityConfigStats() == null) ? 0 : getSecurityConfigStats().hashCode()); hashCode = prime * hashCode + ((getSecurityPolicyStats() == null) ? 0 : getSecurityPolicyStats().hashCode()); hashCode = prime * hashCode + ((getTotalPolicyCount() == null) ? 0 : getTotalPolicyCount().hashCode()); return hashCode; } @Override public GetPoliciesStatsResult clone() { try { return (GetPoliciesStatsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }