AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimestreamAction.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/TimestreamTimestamp.h>
11#include <aws/iot/model/TimestreamDimension.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_IOT_API TimestreamAction();
44
45
47
51 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
52 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
53 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
54 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
55 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
56 inline TimestreamAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
57 inline TimestreamAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
58 inline TimestreamAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
60
62
65 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
66 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
67 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
68 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
69 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
70 inline TimestreamAction& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
71 inline TimestreamAction& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
72 inline TimestreamAction& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
74
76
79 inline const Aws::String& GetTableName() const{ return m_tableName; }
80 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
81 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
82 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
83 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
84 inline TimestreamAction& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
85 inline TimestreamAction& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
86 inline TimestreamAction& WithTableName(const char* value) { SetTableName(value); return *this;}
88
90
94 inline const Aws::Vector<TimestreamDimension>& GetDimensions() const{ return m_dimensions; }
95 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
96 inline void SetDimensions(const Aws::Vector<TimestreamDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
97 inline void SetDimensions(Aws::Vector<TimestreamDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
99 inline TimestreamAction& WithDimensions(Aws::Vector<TimestreamDimension>&& value) { SetDimensions(std::move(value)); return *this;}
100 inline TimestreamAction& AddDimensions(const TimestreamDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
101 inline TimestreamAction& AddDimensions(TimestreamDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
103
105
113 inline const TimestreamTimestamp& GetTimestamp() const{ return m_timestamp; }
114 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
115 inline void SetTimestamp(const TimestreamTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
116 inline void SetTimestamp(TimestreamTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
117 inline TimestreamAction& WithTimestamp(const TimestreamTimestamp& value) { SetTimestamp(value); return *this;}
118 inline TimestreamAction& WithTimestamp(TimestreamTimestamp&& value) { SetTimestamp(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_roleArn;
123 bool m_roleArnHasBeenSet = false;
124
125 Aws::String m_databaseName;
126 bool m_databaseNameHasBeenSet = false;
127
128 Aws::String m_tableName;
129 bool m_tableNameHasBeenSet = false;
130
132 bool m_dimensionsHasBeenSet = false;
133
134 TimestreamTimestamp m_timestamp;
135 bool m_timestampHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace IoT
140} // namespace Aws
TimestreamAction & AddDimensions(TimestreamDimension &&value)
const Aws::String & GetDatabaseName() const
const Aws::String & GetTableName() const
TimestreamAction & WithTableName(Aws::String &&value)
TimestreamAction & WithTimestamp(TimestreamTimestamp &&value)
void SetTableName(const char *value)
const TimestreamTimestamp & GetTimestamp() const
TimestreamAction & WithDatabaseName(Aws::String &&value)
const Aws::Vector< TimestreamDimension > & GetDimensions() const
TimestreamAction & WithTableName(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
TimestreamAction & WithRoleArn(const char *value)
TimestreamAction & AddDimensions(const TimestreamDimension &value)
AWS_IOT_API TimestreamAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDimensions(const Aws::Vector< TimestreamDimension > &value)
TimestreamAction & WithDatabaseName(const char *value)
TimestreamAction & WithDimensions(Aws::Vector< TimestreamDimension > &&value)
TimestreamAction & WithTableName(const char *value)
void SetTimestamp(TimestreamTimestamp &&value)
TimestreamAction & WithTimestamp(const TimestreamTimestamp &value)
void SetTableName(const Aws::String &value)
void SetTimestamp(const TimestreamTimestamp &value)
TimestreamAction & WithDimensions(const Aws::Vector< TimestreamDimension > &value)
void SetDatabaseName(const char *value)
void SetDimensions(Aws::Vector< TimestreamDimension > &&value)
TimestreamAction & WithRoleArn(Aws::String &&value)
void SetTableName(Aws::String &&value)
void SetRoleArn(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoleArn() const
TimestreamAction & WithRoleArn(const Aws::String &value)
void SetRoleArn(Aws::String &&value)
TimestreamAction & WithDatabaseName(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
AWS_IOT_API TimestreamAction(Aws::Utils::Json::JsonView jsonValue)
void SetDatabaseName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue