Class MetadataResponse
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationResponse
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GetDataSourceCapabilitiesResponse
,GetSplitsResponse
,GetTableLayoutResponse
,GetTableResponse
,ListSchemasResponse
,ListTablesResponse
public abstract class MetadataResponse extends FederationResponse
Parent class representing the generic output of allMetadata
operations.
-
-
Constructor Summary
Constructors Constructor Description MetadataResponse(MetadataRequestType requestType, String catalogName)
Constructs a new MetadataResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalogName()
Returns the catalog name that the metadata is for.MetadataRequestType
getRequestType()
Returns the type of request this response corresponds to.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
MetadataResponse
public MetadataResponse(MetadataRequestType requestType, String catalogName)
Constructs a new MetadataResponse object.- Parameters:
requestType
- The type of request this response corresponds to.catalogName
- The catalog name that the metadata is for.
-
-
Method Detail
-
getRequestType
public MetadataRequestType getRequestType()
Returns the type of request this response corresponds to.- Returns:
- The type of request this response corresponds to.
-
getCatalogName
public String getCatalogName()
Returns the catalog name that the metadata is for.- Returns:
- The catalog name that the metadata is for.
-
-