Class MetadataRequest
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationRequest
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataRequest
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GetDataSourceCapabilitiesRequest,GetSplitsRequest,GetTableLayoutRequest,GetTableRequest,ListSchemasRequest,ListTablesRequest
public abstract class MetadataRequest extends FederationRequest
Parent class representing the generic input of allMetadataoperations.
-
-
Constructor Summary
Constructors Constructor Description MetadataRequest(FederatedIdentity identity, MetadataRequestType requestType, String queryId, String catalogName)Constructs a new MetadataRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCatalogName()Returns the catalog name that metadata is requested for.com.amazonaws.services.lambda.runtime.ContextgetContext()Returns Context from Lambda.StringgetQueryId()Returns the ID of the query requesting metadata.MetadataRequestTypegetRequestType()Returns the type of the request.voidsetContext(com.amazonaws.services.lambda.runtime.Context context)Set the Context from Lambda.-
Methods inherited from class com.amazonaws.athena.connector.lambda.request.FederationRequest
getIdentity
-
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
-
MetadataRequest
public MetadataRequest(FederatedIdentity identity, MetadataRequestType requestType, String queryId, String catalogName)
Constructs a new MetadataRequest object.- Parameters:
identity- The identity of the caller.requestType- The type of the request.queryId- The ID of the query requesting metadata.catalogName- The catalog name that metadata is requested for.
-
-
Method Detail
-
getRequestType
public MetadataRequestType getRequestType()
Returns the type of the request.- Returns:
- The type of the request.
-
getCatalogName
public String getCatalogName()
Returns the catalog name that metadata is requested for.- Returns:
- The catalog name that metadata is requested for.
-
getQueryId
public String getQueryId()
Returns the ID of the query requesting metadata.- Returns:
- The ID of the query requesting metadata.
-
getContext
public com.amazonaws.services.lambda.runtime.Context getContext()
Returns Context from Lambda.- Returns:
- The Context of the Lambda
-
setContext
public void setContext(com.amazonaws.services.lambda.runtime.Context context)
Set the Context from Lambda.
-
-