@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDataCatalogRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDataCatalogRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDataCatalogRequest |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
CreateDataCatalogRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
CreateDataCatalogRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description of the data catalog to be created.
|
String |
getName()
The name of the data catalog to create.
|
Map<String,String> |
getParameters()
Specifies the Lambda function or functions to use for creating the data catalog.
|
List<Tag> |
getTags()
A list of comma separated tags to add to the data catalog that is created.
|
String |
getType()
The type of data catalog to create:
LAMBDA for a federated catalog, HIVE for an
external hive metastore, or GLUE for an Glue Data Catalog. |
int |
hashCode() |
void |
setDescription(String description)
A description of the data catalog to be created.
|
void |
setName(String name)
The name of the data catalog to create.
|
void |
setParameters(Map<String,String> parameters)
Specifies the Lambda function or functions to use for creating the data catalog.
|
void |
setTags(Collection<Tag> tags)
A list of comma separated tags to add to the data catalog that is created.
|
void |
setType(String type)
The type of data catalog to create:
LAMBDA for a federated catalog, HIVE for an
external hive metastore, or GLUE for an Glue Data Catalog. |
String |
toString()
Returns a string representation of this object.
|
CreateDataCatalogRequest |
withDescription(String description)
A description of the data catalog to be created.
|
CreateDataCatalogRequest |
withName(String name)
The name of the data catalog to create.
|
CreateDataCatalogRequest |
withParameters(Map<String,String> parameters)
Specifies the Lambda function or functions to use for creating the data catalog.
|
CreateDataCatalogRequest |
withTags(Collection<Tag> tags)
A list of comma separated tags to add to the data catalog that is created.
|
CreateDataCatalogRequest |
withTags(Tag... tags)
A list of comma separated tags to add to the data catalog that is created.
|
CreateDataCatalogRequest |
withType(DataCatalogType type)
The type of data catalog to create:
LAMBDA for a federated catalog, HIVE for an
external hive metastore, or GLUE for an Glue Data Catalog. |
CreateDataCatalogRequest |
withType(String type)
The type of data catalog to create:
LAMBDA for a federated catalog, HIVE for an
external hive metastore, or GLUE for an Glue Data Catalog. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
name
- The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services
account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The
remainder of the length constraint of 256 is reserved for use by Athena.public String getName()
The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
public CreateDataCatalogRequest withName(String name)
The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
name
- The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services
account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The
remainder of the length constraint of 256 is reserved for use by Athena.public void setType(String type)
The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.
type
- The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.DataCatalogType
public String getType()
The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.
LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.DataCatalogType
public CreateDataCatalogRequest withType(String type)
The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.
type
- The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.DataCatalogType
public CreateDataCatalogRequest withType(DataCatalogType type)
The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.
type
- The type of data catalog to create: LAMBDA
for a federated catalog, HIVE
for an
external hive metastore, or GLUE
for an Glue Data Catalog.DataCatalogType
public void setDescription(String description)
A description of the data catalog to be created.
description
- A description of the data catalog to be created.public String getDescription()
A description of the data catalog to be created.
public CreateDataCatalogRequest withDescription(String description)
A description of the data catalog to be created.
description
- A description of the data catalog to be created.public Map<String,String> getParameters()
Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently supported
version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but not
both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The catalog_id
is
the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that already
exists in your account, of which you can have only one and cannot modify.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently
supported version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but
not both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The
catalog_id
is the account ID of the Amazon Web Services account to which the Glue
Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that
already exists in your account, of which you can have only one and cannot modify.
public void setParameters(Map<String,String> parameters)
Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently supported
version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but not
both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The catalog_id
is
the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that already
exists in your account, of which you can have only one and cannot modify.
parameters
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose
values depend on the catalog type.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently
supported version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but
not both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The
catalog_id
is the account ID of the Amazon Web Services account to which the Glue
Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that
already exists in your account, of which you can have only one and cannot modify.
public CreateDataCatalogRequest withParameters(Map<String,String> parameters)
Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently supported
version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but not
both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The catalog_id
is
the account ID of the Amazon Web Services account to which the Glue Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that already
exists in your account, of which you can have only one and cannot modify.
parameters
- Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose
values depend on the catalog type.
For the HIVE
data catalog type, use the following syntax. The metadata-function
parameter is required. The sdk-version
parameter is optional and defaults to the currently
supported version.
metadata-function=lambda_arn, sdk-version=version_number
For the LAMBDA
data catalog type, use one of the following sets of required parameters, but
not both.
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
The GLUE
type takes a catalog ID parameter and is required. The
catalog_id
is the account ID of the Amazon Web Services account to which the Glue
Data Catalog belongs.
catalog-id=catalog_id
The GLUE
data catalog type also applies to the default AwsDataCatalog
that
already exists in your account, of which you can have only one and cannot modify.
public CreateDataCatalogRequest addParametersEntry(String key, String value)
public CreateDataCatalogRequest clearParametersEntries()
public List<Tag> getTags()
A list of comma separated tags to add to the data catalog that is created.
public void setTags(Collection<Tag> tags)
A list of comma separated tags to add to the data catalog that is created.
tags
- A list of comma separated tags to add to the data catalog that is created.public CreateDataCatalogRequest withTags(Tag... tags)
A list of comma separated tags to add to the data catalog that is created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of comma separated tags to add to the data catalog that is created.public CreateDataCatalogRequest withTags(Collection<Tag> tags)
A list of comma separated tags to add to the data catalog that is created.
tags
- A list of comma separated tags to add to the data catalog that is created.public String toString()
toString
in class Object
Object.toString()
public CreateDataCatalogRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()