Class CfnTable.TableInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTable.TableInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.TableInputProperty>
- Enclosing interface:
CfnTable.TableInputProperty
@Stability(Stable)
public static final class CfnTable.TableInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.TableInputProperty>
A builder for
CfnTable.TableInputProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnTable.TableInputProperty.getDescription()
Sets the value ofCfnTable.TableInputProperty.getName()
Sets the value ofCfnTable.TableInputProperty.getOwner()
parameters
(Object parameters) Sets the value ofCfnTable.TableInputProperty.getParameters()
partitionKeys
(List<? extends Object> partitionKeys) Sets the value ofCfnTable.TableInputProperty.getPartitionKeys()
partitionKeys
(IResolvable partitionKeys) Sets the value ofCfnTable.TableInputProperty.getPartitionKeys()
Sets the value ofCfnTable.TableInputProperty.getRetention()
storageDescriptor
(IResolvable storageDescriptor) Sets the value ofCfnTable.TableInputProperty.getStorageDescriptor()
storageDescriptor
(CfnTable.StorageDescriptorProperty storageDescriptor) Sets the value ofCfnTable.TableInputProperty.getStorageDescriptor()
Sets the value ofCfnTable.TableInputProperty.getTableType()
targetTable
(IResolvable targetTable) Sets the value ofCfnTable.TableInputProperty.getTargetTable()
targetTable
(CfnTable.TableIdentifierProperty targetTable) Sets the value ofCfnTable.TableInputProperty.getTargetTable()
viewExpandedText
(String viewExpandedText) Sets the value ofCfnTable.TableInputProperty.getViewExpandedText()
viewOriginalText
(String viewOriginalText) Sets the value ofCfnTable.TableInputProperty.getViewOriginalText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnTable.TableInputProperty.getDescription()
- Parameters:
description
- A description of the table.- Returns:
this
-
name
Sets the value ofCfnTable.TableInputProperty.getName()
- Parameters:
name
- The table name. For Hive compatibility, this is folded to lowercase when it is stored.- Returns:
this
-
owner
Sets the value ofCfnTable.TableInputProperty.getOwner()
- Parameters:
owner
- The table owner. Included for Apache Hive compatibility. Not used in the normal course of AWS Glue operations.- Returns:
this
-
parameters
Sets the value ofCfnTable.TableInputProperty.getParameters()
- Parameters:
parameters
- These key-value pairs define properties associated with the table.- Returns:
this
-
partitionKeys
@Stability(Stable) public CfnTable.TableInputProperty.Builder partitionKeys(IResolvable partitionKeys) Sets the value ofCfnTable.TableInputProperty.getPartitionKeys()
- Parameters:
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. When you create a table used by Amazon Athena, and you do not specify anypartitionKeys
, you must at least set the value ofpartitionKeys
to an empty list. For example:"PartitionKeys": []
- Returns:
this
-
partitionKeys
@Stability(Stable) public CfnTable.TableInputProperty.Builder partitionKeys(List<? extends Object> partitionKeys) Sets the value ofCfnTable.TableInputProperty.getPartitionKeys()
- Parameters:
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. When you create a table used by Amazon Athena, and you do not specify anypartitionKeys
, you must at least set the value ofpartitionKeys
to an empty list. For example:"PartitionKeys": []
- Returns:
this
-
retention
Sets the value ofCfnTable.TableInputProperty.getRetention()
- Parameters:
retention
- The retention time for this table.- Returns:
this
-
storageDescriptor
@Stability(Stable) public CfnTable.TableInputProperty.Builder storageDescriptor(IResolvable storageDescriptor) Sets the value ofCfnTable.TableInputProperty.getStorageDescriptor()
- Parameters:
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.- Returns:
this
-
storageDescriptor
@Stability(Stable) public CfnTable.TableInputProperty.Builder storageDescriptor(CfnTable.StorageDescriptorProperty storageDescriptor) Sets the value ofCfnTable.TableInputProperty.getStorageDescriptor()
- Parameters:
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.- Returns:
this
-
tableType
Sets the value ofCfnTable.TableInputProperty.getTableType()
- Parameters:
tableType
- The type of this table. AWS Glue will create tables with theEXTERNAL_TABLE
type. Other services, such as Athena, may create tables with additional table types.AWS Glue related table types:
- EXTERNAL_TABLE - Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED - Used by AWS Lake Formation . The AWS Glue Data Catalog understands
GOVERNED
.
- Returns:
this
-
targetTable
Sets the value ofCfnTable.TableInputProperty.getTargetTable()
- Parameters:
targetTable
- ATableIdentifier
structure that describes a target table for resource linking.- Returns:
this
-
targetTable
@Stability(Stable) public CfnTable.TableInputProperty.Builder targetTable(CfnTable.TableIdentifierProperty targetTable) Sets the value ofCfnTable.TableInputProperty.getTargetTable()
- Parameters:
targetTable
- ATableIdentifier
structure that describes a target table for resource linking.- Returns:
this
-
viewExpandedText
@Stability(Stable) public CfnTable.TableInputProperty.Builder viewExpandedText(String viewExpandedText) Sets the value ofCfnTable.TableInputProperty.getViewExpandedText()
- Parameters:
viewExpandedText
- Included for Apache Hive compatibility. Not used in the normal course of AWS Glue operations.- Returns:
this
-
viewOriginalText
@Stability(Stable) public CfnTable.TableInputProperty.Builder viewOriginalText(String viewOriginalText) Sets the value ofCfnTable.TableInputProperty.getViewOriginalText()
- Parameters:
viewOriginalText
- Included for Apache Hive compatibility. Not used in the normal course of AWS Glue operations. If the table is aVIRTUAL_VIEW
, certain Athena configuration encoded in base64.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.TableInputProperty>
- Returns:
- a new instance of
CfnTable.TableInputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-