* Defines the level of access on an AWS account. *
*/ private PermissionSet permissionSet; /** ** Defines the level of access on an AWS account. *
* * @param permissionSet * Defines the level of access on an AWS account. */ public void setPermissionSet(PermissionSet permissionSet) { this.permissionSet = permissionSet; } /** ** Defines the level of access on an AWS account. *
* * @return Defines the level of access on an AWS account. */ public PermissionSet getPermissionSet() { return this.permissionSet; } /** ** Defines the level of access on an AWS account. *
* * @param permissionSet * Defines the level of access on an AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePermissionSetResult withPermissionSet(PermissionSet permissionSet) { setPermissionSet(permissionSet); 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 (getPermissionSet() != null) sb.append("PermissionSet: ").append(getPermissionSet()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePermissionSetResult == false) return false; CreatePermissionSetResult other = (CreatePermissionSetResult) obj; if (other.getPermissionSet() == null ^ this.getPermissionSet() == null) return false; if (other.getPermissionSet() != null && other.getPermissionSet().equals(this.getPermissionSet()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPermissionSet() == null) ? 0 : getPermissionSet().hashCode()); return hashCode; } @Override public CreatePermissionSetResult clone() { try { return (CreatePermissionSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }