Class CfnDeliveryStream.SchemaConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.SchemaConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.SchemaConfigurationProperty>
- Enclosing interface:
CfnDeliveryStream.SchemaConfigurationProperty
@Stability(Stable)
public static final class CfnDeliveryStream.SchemaConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.SchemaConfigurationProperty>
A builder for
CfnDeliveryStream.SchemaConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getCatalogId()
databaseName
(String databaseName) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getDatabaseName()
Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getRegion()
Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getRoleArn()
Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getTableName()
Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
catalogId
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder catalogId(String catalogId) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getCatalogId()
- Parameters:
catalogId
- The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default.- Returns:
this
-
databaseName
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder databaseName(String databaseName) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getDatabaseName()
- Parameters:
databaseName
- Specifies the name of the AWS Glue database that contains the schema for the output data.If the
SchemaConfiguration
request parameter is used as part of invoking theCreateDeliveryStream
API, then theDatabaseName
property is required and its value must be specified.- Returns:
this
-
region
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder region(String region) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getRegion()
- Parameters:
region
- If you don't specify an AWS Region, the default is the current Region.- Returns:
this
-
roleArn
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The role that Firehose can use to access AWS Glue. This role must be in the same account you use for Firehose. Cross-account roles aren't allowed.If the
SchemaConfiguration
request parameter is used as part of invoking theCreateDeliveryStream
API, then theRoleARN
property is required and its value must be specified.- Returns:
this
-
tableName
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder tableName(String tableName) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getTableName()
- Parameters:
tableName
- Specifies the AWS Glue table that contains the column information that constitutes your data schema.If the
SchemaConfiguration
request parameter is used as part of invoking theCreateDeliveryStream
API, then theTableName
property is required and its value must be specified.- Returns:
this
-
versionId
@Stability(Stable) public CfnDeliveryStream.SchemaConfigurationProperty.Builder versionId(String versionId) Sets the value ofCfnDeliveryStream.SchemaConfigurationProperty.getVersionId()
- Parameters:
versionId
- Specifies the table version for the output data schema. If you don't specify this version ID, or if you set it toLATEST
, Firehose uses the most recent version. This means that any updates to the table are automatically picked up.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.SchemaConfigurationProperty>
- Returns:
- a new instance of
CfnDeliveryStream.SchemaConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-