* The identifier of the hierarchy group. *
*/ private String hierarchyGroupId; /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
*/ private String hierarchyGroupArn; /** ** The identifier of the hierarchy group. *
* * @param hierarchyGroupId * The identifier of the hierarchy group. */ public void setHierarchyGroupId(String hierarchyGroupId) { this.hierarchyGroupId = hierarchyGroupId; } /** ** The identifier of the hierarchy group. *
* * @return The identifier of the hierarchy group. */ public String getHierarchyGroupId() { return this.hierarchyGroupId; } /** ** The identifier of the hierarchy group. *
* * @param hierarchyGroupId * The identifier of the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserHierarchyGroupResult withHierarchyGroupId(String hierarchyGroupId) { setHierarchyGroupId(hierarchyGroupId); return this; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @param hierarchyGroupArn * The Amazon Resource Name (ARN) of the hierarchy group. */ public void setHierarchyGroupArn(String hierarchyGroupArn) { this.hierarchyGroupArn = hierarchyGroupArn; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @return The Amazon Resource Name (ARN) of the hierarchy group. */ public String getHierarchyGroupArn() { return this.hierarchyGroupArn; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @param hierarchyGroupArn * The Amazon Resource Name (ARN) of the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserHierarchyGroupResult withHierarchyGroupArn(String hierarchyGroupArn) { setHierarchyGroupArn(hierarchyGroupArn); 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 (getHierarchyGroupId() != null) sb.append("HierarchyGroupId: ").append(getHierarchyGroupId()).append(","); if (getHierarchyGroupArn() != null) sb.append("HierarchyGroupArn: ").append(getHierarchyGroupArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateUserHierarchyGroupResult == false) return false; CreateUserHierarchyGroupResult other = (CreateUserHierarchyGroupResult) obj; if (other.getHierarchyGroupId() == null ^ this.getHierarchyGroupId() == null) return false; if (other.getHierarchyGroupId() != null && other.getHierarchyGroupId().equals(this.getHierarchyGroupId()) == false) return false; if (other.getHierarchyGroupArn() == null ^ this.getHierarchyGroupArn() == null) return false; if (other.getHierarchyGroupArn() != null && other.getHierarchyGroupArn().equals(this.getHierarchyGroupArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHierarchyGroupId() == null) ? 0 : getHierarchyGroupId().hashCode()); hashCode = prime * hashCode + ((getHierarchyGroupArn() == null) ? 0 : getHierarchyGroupArn().hashCode()); return hashCode; } @Override public CreateUserHierarchyGroupResult clone() { try { return (CreateUserHierarchyGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }