/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The Timestream rule action writes attributes (measures) from an MQTT message
* into an Amazon Timestream table. For more information, see the Timestream
* topic rule action documentation.See Also:
AWS
* API Reference
The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline TimestreamAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline TimestreamAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of the role that grants permission to write to the Amazon Timestream * database table.
*/ inline TimestreamAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *The name of an Amazon Timestream database.
*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *The name of an Amazon Timestream database.
*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *The name of an Amazon Timestream database.
*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *The name of an Amazon Timestream database.
*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *The name of an Amazon Timestream database.
*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *The name of an Amazon Timestream database.
*/ inline TimestreamAction& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *The name of an Amazon Timestream database.
*/ inline TimestreamAction& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *The name of an Amazon Timestream database.
*/ inline TimestreamAction& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *The name of the database table into which to write the measure records.
*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *The name of the database table into which to write the measure records.
*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *The name of the database table into which to write the measure records.
*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *The name of the database table into which to write the measure records.
*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *The name of the database table into which to write the measure records.
*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *The name of the database table into which to write the measure records.
*/ inline TimestreamAction& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *The name of the database table into which to write the measure records.
*/ inline TimestreamAction& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *The name of the database table into which to write the measure records.
*/ inline TimestreamAction& WithTableName(const char* value) { SetTableName(value); return *this;} /** *Metadata attributes of the time series that are written in each measure * record.
*/ inline const Aws::VectorMetadata attributes of the time series that are written in each measure * record.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *Metadata attributes of the time series that are written in each measure * record.
*/ inline void SetDimensions(const Aws::VectorMetadata attributes of the time series that are written in each measure * record.
*/ inline void SetDimensions(Aws::VectorMetadata attributes of the time series that are written in each measure * record.
*/ inline TimestreamAction& WithDimensions(const Aws::VectorMetadata attributes of the time series that are written in each measure * record.
*/ inline TimestreamAction& WithDimensions(Aws::VectorMetadata attributes of the time series that are written in each measure * record.
*/ inline TimestreamAction& AddDimensions(const TimestreamDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *Metadata attributes of the time series that are written in each measure * record.
*/ inline TimestreamAction& AddDimensions(TimestreamDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline const TimestreamTimestamp& GetTimestamp() const{ return m_timestamp; } /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline void SetTimestamp(const TimestreamTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline void SetTimestamp(TimestreamTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline TimestreamAction& WithTimestamp(const TimestreamTimestamp& value) { SetTimestamp(value); return *this;} /** *Specifies an application-defined value to replace the default value assigned
* to the Timestream record's timestamp in the time
column.
You * can use this property to specify the value and the precision of the Timestream * record's timestamp. You can specify a value from the message payload or a value * computed by a substitution template.
If omitted, the topic rule action * assigns the timestamp, in milliseconds, at the time it processed the rule.
*/ inline TimestreamAction& WithTimestamp(TimestreamTimestamp&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::Vector