* A list of ColumnDescription objects. *
*/ private java.util.List* Represents a single row in the query results. *
*/ private java.util.List* The string that specifies the next page of results. *
*/ private String nextToken; /** ** A list of ColumnDescription objects. *
* * @return A list of ColumnDescription objects. */ public java.util.List* A list of ColumnDescription objects. *
* * @param columnDescriptions * A list of ColumnDescription objects. */ public void setColumnDescriptions(java.util.Collection* A list of ColumnDescription objects. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnDescriptions(java.util.Collection)} or {@link #withColumnDescriptions(java.util.Collection)} if * you want to override the existing values. *
* * @param columnDescriptions * A list of ColumnDescription objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteQueryResult withColumnDescriptions(ColumnDescription... columnDescriptions) { if (this.columnDescriptions == null) { setColumnDescriptions(new java.util.ArrayList* A list of ColumnDescription objects. *
* * @param columnDescriptions * A list of ColumnDescription objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteQueryResult withColumnDescriptions(java.util.Collection* Represents a single row in the query results. *
* * @return Represents a single row in the query results. */ public java.util.List* Represents a single row in the query results. *
* * @param rows * Represents a single row in the query results. */ public void setRows(java.util.Collection* Represents a single row in the query results. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRows(java.util.Collection)} or {@link #withRows(java.util.Collection)} if you want to override the * existing values. *
* * @param rows * Represents a single row in the query results. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteQueryResult withRows(Row... rows) { if (this.rows == null) { setRows(new java.util.ArrayList* Represents a single row in the query results. *
* * @param rows * Represents a single row in the query results. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteQueryResult withRows(java.util.Collection* The string that specifies the next page of results. *
* * @param nextToken * The string that specifies the next page of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The string that specifies the next page of results. *
* * @return The string that specifies the next page of results. */ public String getNextToken() { return this.nextToken; } /** ** The string that specifies the next page of results. *
* * @param nextToken * The string that specifies the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteQueryResult withNextToken(String nextToken) { setNextToken(nextToken); 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 (getColumnDescriptions() != null) sb.append("ColumnDescriptions: ").append(getColumnDescriptions()).append(","); if (getRows() != null) sb.append("Rows: ").append(getRows()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExecuteQueryResult == false) return false; ExecuteQueryResult other = (ExecuteQueryResult) obj; if (other.getColumnDescriptions() == null ^ this.getColumnDescriptions() == null) return false; if (other.getColumnDescriptions() != null && other.getColumnDescriptions().equals(this.getColumnDescriptions()) == false) return false; if (other.getRows() == null ^ this.getRows() == null) return false; if (other.getRows() != null && other.getRows().equals(this.getRows()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getColumnDescriptions() == null) ? 0 : getColumnDescriptions().hashCode()); hashCode = prime * hashCode + ((getRows() == null) ? 0 : getRows().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ExecuteQueryResult clone() { try { return (ExecuteQueryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }