* Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. *
*/ private String queryArn; /** ** Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. *
* * @param queryArn * Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. */ public void setQueryArn(String queryArn) { this.queryArn = queryArn; } /** ** Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. *
* * @return Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. */ public String getQueryArn() { return this.queryArn; } /** ** Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. *
* * @param queryArn * Amazon Resource Name (ARN) of the query. For example, * arn:partition:service:region:account-id:resource-type/resource-name/resource-id. * @return Returns a reference to this object so that method calls can be chained together. */ public PutStoredQueryResult withQueryArn(String queryArn) { setQueryArn(queryArn); 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 (getQueryArn() != null) sb.append("QueryArn: ").append(getQueryArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutStoredQueryResult == false) return false; PutStoredQueryResult other = (PutStoredQueryResult) obj; if (other.getQueryArn() == null ^ this.getQueryArn() == null) return false; if (other.getQueryArn() != null && other.getQueryArn().equals(this.getQueryArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueryArn() == null) ? 0 : getQueryArn().hashCode()); return hashCode; } @Override public PutStoredQueryResult clone() { try { return (PutStoredQueryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }