@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimestreamConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Configuration to write data into Timestream database and table. This configuration allows the user to map the query result select columns into the destination table columns.
Constructor and Description |
---|
TimestreamConfiguration() |
Modifier and Type | Method and Description |
---|---|
TimestreamConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getDatabaseName()
Name of Timestream database to which the query result will be written.
|
List<DimensionMapping> |
getDimensionMappings()
This is to allow mapping column(s) from the query result to the dimension in the destination table.
|
String |
getMeasureNameColumn()
Name of the measure column.
|
List<MixedMeasureMapping> |
getMixedMeasureMappings()
Specifies how to map measures to multi-measure records.
|
MultiMeasureMappings |
getMultiMeasureMappings()
Multi-measure mappings.
|
String |
getTableName()
Name of Timestream table that the query result will be written to.
|
String |
getTimeColumn()
Column from query result that should be used as the time column in destination table.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDatabaseName(String databaseName)
Name of Timestream database to which the query result will be written.
|
void |
setDimensionMappings(Collection<DimensionMapping> dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
|
void |
setMeasureNameColumn(String measureNameColumn)
Name of the measure column.
|
void |
setMixedMeasureMappings(Collection<MixedMeasureMapping> mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
|
void |
setMultiMeasureMappings(MultiMeasureMappings multiMeasureMappings)
Multi-measure mappings.
|
void |
setTableName(String tableName)
Name of Timestream table that the query result will be written to.
|
void |
setTimeColumn(String timeColumn)
Column from query result that should be used as the time column in destination table.
|
String |
toString()
Returns a string representation of this object.
|
TimestreamConfiguration |
withDatabaseName(String databaseName)
Name of Timestream database to which the query result will be written.
|
TimestreamConfiguration |
withDimensionMappings(Collection<DimensionMapping> dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
|
TimestreamConfiguration |
withDimensionMappings(DimensionMapping... dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
|
TimestreamConfiguration |
withMeasureNameColumn(String measureNameColumn)
Name of the measure column.
|
TimestreamConfiguration |
withMixedMeasureMappings(Collection<MixedMeasureMapping> mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
|
TimestreamConfiguration |
withMixedMeasureMappings(MixedMeasureMapping... mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
|
TimestreamConfiguration |
withMultiMeasureMappings(MultiMeasureMappings multiMeasureMappings)
Multi-measure mappings.
|
TimestreamConfiguration |
withTableName(String tableName)
Name of Timestream table that the query result will be written to.
|
TimestreamConfiguration |
withTimeColumn(String timeColumn)
Column from query result that should be used as the time column in destination table.
|
public void setDatabaseName(String databaseName)
Name of Timestream database to which the query result will be written.
databaseName
- Name of Timestream database to which the query result will be written.public String getDatabaseName()
Name of Timestream database to which the query result will be written.
public TimestreamConfiguration withDatabaseName(String databaseName)
Name of Timestream database to which the query result will be written.
databaseName
- Name of Timestream database to which the query result will be written.public void setTableName(String tableName)
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
tableName
- Name of Timestream table that the query result will be written to. The table should be within the same
database that is provided in Timestream configuration.public String getTableName()
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
public TimestreamConfiguration withTableName(String tableName)
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
tableName
- Name of Timestream table that the query result will be written to. The table should be within the same
database that is provided in Timestream configuration.public void setTimeColumn(String timeColumn)
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
timeColumn
- Column from query result that should be used as the time column in destination table. Column type for this
should be TIMESTAMP.public String getTimeColumn()
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
public TimestreamConfiguration withTimeColumn(String timeColumn)
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
timeColumn
- Column from query result that should be used as the time column in destination table. Column type for this
should be TIMESTAMP.public List<DimensionMapping> getDimensionMappings()
This is to allow mapping column(s) from the query result to the dimension in the destination table.
public void setDimensionMappings(Collection<DimensionMapping> dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
dimensionMappings
- This is to allow mapping column(s) from the query result to the dimension in the destination table.public TimestreamConfiguration withDimensionMappings(DimensionMapping... dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
NOTE: This method appends the values to the existing list (if any). Use
setDimensionMappings(java.util.Collection)
or withDimensionMappings(java.util.Collection)
if
you want to override the existing values.
dimensionMappings
- This is to allow mapping column(s) from the query result to the dimension in the destination table.public TimestreamConfiguration withDimensionMappings(Collection<DimensionMapping> dimensionMappings)
This is to allow mapping column(s) from the query result to the dimension in the destination table.
dimensionMappings
- This is to allow mapping column(s) from the query result to the dimension in the destination table.public void setMultiMeasureMappings(MultiMeasureMappings multiMeasureMappings)
Multi-measure mappings.
multiMeasureMappings
- Multi-measure mappings.public MultiMeasureMappings getMultiMeasureMappings()
Multi-measure mappings.
public TimestreamConfiguration withMultiMeasureMappings(MultiMeasureMappings multiMeasureMappings)
Multi-measure mappings.
multiMeasureMappings
- Multi-measure mappings.public List<MixedMeasureMapping> getMixedMeasureMappings()
Specifies how to map measures to multi-measure records.
public void setMixedMeasureMappings(Collection<MixedMeasureMapping> mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
mixedMeasureMappings
- Specifies how to map measures to multi-measure records.public TimestreamConfiguration withMixedMeasureMappings(MixedMeasureMapping... mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
NOTE: This method appends the values to the existing list (if any). Use
setMixedMeasureMappings(java.util.Collection)
or withMixedMeasureMappings(java.util.Collection)
if you want to override the existing values.
mixedMeasureMappings
- Specifies how to map measures to multi-measure records.public TimestreamConfiguration withMixedMeasureMappings(Collection<MixedMeasureMapping> mixedMeasureMappings)
Specifies how to map measures to multi-measure records.
mixedMeasureMappings
- Specifies how to map measures to multi-measure records.public void setMeasureNameColumn(String measureNameColumn)
Name of the measure column.
measureNameColumn
- Name of the measure column.public String getMeasureNameColumn()
Name of the measure column.
public TimestreamConfiguration withMeasureNameColumn(String measureNameColumn)
Name of the measure column.
measureNameColumn
- Name of the measure column.public String toString()
toString
in class Object
Object.toString()
public TimestreamConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.