* A continuation token, present if the current list segment is not the last.
*
*/
private String nextToken;
/**
* tableList;
/**
*
* A continuation token, present if the current list segment is not the last.
*
*
* @param nextToken
* A continuation token, present if the current list segment is not the last.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* A continuation token, present if the current list segment is not the last.
*
*
* @return A continuation token, present if the current list segment is not the last.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* A continuation token, present if the current list segment is not the last.
*
*
* @param nextToken
* A continuation token, present if the current list segment is not the last.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchTablesResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* A list of the requested Table
objects. The SearchTables
response returns only the
* tables that you have access to.
*
*
* @return A list of the requested Table
objects. The SearchTables
response returns only
* the tables that you have access to.
*/
public java.util.List getTableList() {
return tableList;
}
/**
*
* A list of the requested Table
objects. The SearchTables
response returns only the
* tables that you have access to.
*
*
* @param tableList
* A list of the requested Table
objects. The SearchTables
response returns only
* the tables that you have access to.
*/
public void setTableList(java.util.Collection tableList) {
if (tableList == null) {
this.tableList = null;
return;
}
this.tableList = new java.util.ArrayList(tableList);
}
/**
*
* A list of the requested Table
objects. The SearchTables
response returns only the
* tables that you have access to.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTableList(java.util.Collection)} or {@link #withTableList(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param tableList
* A list of the requested Table
objects. The SearchTables
response returns only
* the tables that you have access to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchTablesResult withTableList(Table... tableList) {
if (this.tableList == null) {
setTableList(new java.util.ArrayList(tableList.length));
}
for (Table ele : tableList) {
this.tableList.add(ele);
}
return this;
}
/**
*
* A list of the requested Table
objects. The SearchTables
response returns only the
* tables that you have access to.
*
*
* @param tableList
* A list of the requested Table
objects. The SearchTables
response returns only
* the tables that you have access to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchTablesResult withTableList(java.util.Collection tableList) {
setTableList(tableList);
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 (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getTableList() != null)
sb.append("TableList: ").append(getTableList());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SearchTablesResult == false)
return false;
SearchTablesResult other = (SearchTablesResult) obj;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getTableList() == null ^ this.getTableList() == null)
return false;
if (other.getTableList() != null && other.getTableList().equals(this.getTableList()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getTableList() == null) ? 0 : getTableList().hashCode());
return hashCode;
}
@Override
public SearchTablesResult clone() {
try {
return (SearchTablesResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}