Class CfnScheduledQuery.TimestreamConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnScheduledQuery.TimestreamConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScheduledQuery.TimestreamConfigurationProperty>
- Enclosing interface:
- CfnScheduledQuery.TimestreamConfigurationProperty
@Stability(Stable)
public static final class CfnScheduledQuery.TimestreamConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScheduledQuery.TimestreamConfigurationProperty>
A builder for
CfnScheduledQuery.TimestreamConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.databaseName
(String databaseName) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDatabaseName()
dimensionMappings
(List<? extends Object> dimensionMappings) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDimensionMappings()
dimensionMappings
(IResolvable dimensionMappings) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDimensionMappings()
measureNameColumn
(String measureNameColumn) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getMeasureNameColumn()
mixedMeasureMappings
(List<? extends Object> mixedMeasureMappings) mixedMeasureMappings
(IResolvable mixedMeasureMappings) multiMeasureMappings
(IResolvable multiMeasureMappings) multiMeasureMappings
(CfnScheduledQuery.MultiMeasureMappingsProperty multiMeasureMappings) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getTableName()
timeColumn
(String timeColumn) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getTimeColumn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseName
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder databaseName(String databaseName) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDatabaseName()
- Parameters:
databaseName
- Name of Timestream database to which the query result will be written. This parameter is required.- Returns:
this
-
dimensionMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder dimensionMappings(IResolvable dimensionMappings) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDimensionMappings()
- Parameters:
dimensionMappings
- This is to allow mapping column(s) from the query result to the dimension in the destination table. This parameter is required.- Returns:
this
-
dimensionMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder dimensionMappings(List<? extends Object> dimensionMappings) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getDimensionMappings()
- Parameters:
dimensionMappings
- This is to allow mapping column(s) from the query result to the dimension in the destination table. This parameter is required.- Returns:
this
-
tableName
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder tableName(String tableName) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getTableName()
- Parameters:
tableName
- Name of Timestream table that the query result will be written to. This parameter is required. The table should be within the same database that is provided in Timestream configuration.- Returns:
this
-
timeColumn
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder timeColumn(String timeColumn) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getTimeColumn()
- Parameters:
timeColumn
- Column from query result that should be used as the time column in destination table. This parameter is required. Column type for this should be TIMESTAMP.- Returns:
this
-
measureNameColumn
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder measureNameColumn(String measureNameColumn) Sets the value ofCfnScheduledQuery.TimestreamConfigurationProperty.getMeasureNameColumn()
- Parameters:
measureNameColumn
- Name of the measure column. Also seeMultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
.- Returns:
this
-
mixedMeasureMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder mixedMeasureMappings(IResolvable mixedMeasureMappings) - Parameters:
mixedMeasureMappings
- Specifies how to map measures to multi-measure records.- Returns:
this
-
mixedMeasureMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder mixedMeasureMappings(List<? extends Object> mixedMeasureMappings) - Parameters:
mixedMeasureMappings
- Specifies how to map measures to multi-measure records.- Returns:
this
-
multiMeasureMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder multiMeasureMappings(IResolvable multiMeasureMappings) - Parameters:
multiMeasureMappings
- Multi-measure mappings.- Returns:
this
-
multiMeasureMappings
@Stability(Stable) public CfnScheduledQuery.TimestreamConfigurationProperty.Builder multiMeasureMappings(CfnScheduledQuery.MultiMeasureMappingsProperty multiMeasureMappings) - Parameters:
multiMeasureMappings
- Multi-measure mappings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScheduledQuery.TimestreamConfigurationProperty>
- Returns:
- a new instance of
CfnScheduledQuery.TimestreamConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-