* The resource query associated with the specified group. For more information about resource queries, see Create a tag-based group in Resource Groups. *
*/ private GroupQuery groupQuery; /** ** The resource query associated with the specified group. For more information about resource queries, see Create a tag-based group in Resource Groups. *
* * @param groupQuery * The resource query associated with the specified group. For more information about resource queries, see * Create a tag-based group in Resource Groups. */ public void setGroupQuery(GroupQuery groupQuery) { this.groupQuery = groupQuery; } /** ** The resource query associated with the specified group. For more information about resource queries, see Create a tag-based group in Resource Groups. *
* * @return The resource query associated with the specified group. For more information about resource queries, see * Create a tag-based group in Resource Groups. */ public GroupQuery getGroupQuery() { return this.groupQuery; } /** ** The resource query associated with the specified group. For more information about resource queries, see Create a tag-based group in Resource Groups. *
* * @param groupQuery * The resource query associated with the specified group. For more information about resource queries, see * Create a tag-based group in Resource Groups. * @return Returns a reference to this object so that method calls can be chained together. */ public GetGroupQueryResult withGroupQuery(GroupQuery groupQuery) { setGroupQuery(groupQuery); 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 (getGroupQuery() != null) sb.append("GroupQuery: ").append(getGroupQuery()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetGroupQueryResult == false) return false; GetGroupQueryResult other = (GetGroupQueryResult) obj; if (other.getGroupQuery() == null ^ this.getGroupQuery() == null) return false; if (other.getGroupQuery() != null && other.getGroupQuery().equals(this.getGroupQuery()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupQuery() == null) ? 0 : getGroupQuery().hashCode()); return hashCode; } @Override public GetGroupQueryResult clone() { try { return (GetGroupQueryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }