Class ListTablesResponse
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationResponse
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
-
- com.amazonaws.athena.connector.lambda.metadata.ListTablesResponse
-
- All Implemented Interfaces:
AutoCloseable
public class ListTablesResponse extends MetadataResponse
Represents the output of aListTables
operation.
-
-
Constructor Summary
Constructors Constructor Description ListTablesResponse(String catalogName, Collection<TableName> tables, String nextToken)
Constructs a new ListTablesResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
String
getNextToken()
Returns the nextToken (the starting table for the next request).Collection<TableName>
getTables()
Returns the list of table names.int
hashCode()
String
toString()
-
Methods inherited from class com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
getCatalogName, getRequestType
-
-
-
-
Constructor Detail
-
ListTablesResponse
public ListTablesResponse(String catalogName, Collection<TableName> tables, String nextToken)
Constructs a new ListTablesResponse object.- Parameters:
catalogName
- The catalog name that tables were listed for.tables
- The list of table names (they all must be lowercase).nextToken
- The pagination starting point for the next request (null indicates the end of the pagination).
-
-
Method Detail
-
getTables
public Collection<TableName> getTables()
Returns the list of table names.- Returns:
- The list of table names.
-
getNextToken
public String getNextToken()
Returns the nextToken (the starting table for the next request).- Returns:
- The pagination starting point for the next request (null indicates the end of the pagination).
-
-