AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TimestreamAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/TimestreamDimension.h>
11#include <aws/iot/model/TimestreamTimestamp.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
34 public:
35 AWS_IOT_API TimestreamAction() = default;
39
41
45 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 template <typename RoleArnT = Aws::String>
48 void SetRoleArn(RoleArnT&& value) {
49 m_roleArnHasBeenSet = true;
50 m_roleArn = std::forward<RoleArnT>(value);
51 }
52 template <typename RoleArnT = Aws::String>
53 TimestreamAction& WithRoleArn(RoleArnT&& value) {
54 SetRoleArn(std::forward<RoleArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 template <typename DatabaseNameT = Aws::String>
66 void SetDatabaseName(DatabaseNameT&& value) {
67 m_databaseNameHasBeenSet = true;
68 m_databaseName = std::forward<DatabaseNameT>(value);
69 }
70 template <typename DatabaseNameT = Aws::String>
71 TimestreamAction& WithDatabaseName(DatabaseNameT&& value) {
72 SetDatabaseName(std::forward<DatabaseNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTableName() const { return m_tableName; }
82 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
83 template <typename TableNameT = Aws::String>
84 void SetTableName(TableNameT&& value) {
85 m_tableNameHasBeenSet = true;
86 m_tableName = std::forward<TableNameT>(value);
87 }
88 template <typename TableNameT = Aws::String>
89 TimestreamAction& WithTableName(TableNameT&& value) {
90 SetTableName(std::forward<TableNameT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<TimestreamDimension>& GetDimensions() const { return m_dimensions; }
101 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
102 template <typename DimensionsT = Aws::Vector<TimestreamDimension>>
103 void SetDimensions(DimensionsT&& value) {
104 m_dimensionsHasBeenSet = true;
105 m_dimensions = std::forward<DimensionsT>(value);
106 }
107 template <typename DimensionsT = Aws::Vector<TimestreamDimension>>
108 TimestreamAction& WithDimensions(DimensionsT&& value) {
109 SetDimensions(std::forward<DimensionsT>(value));
110 return *this;
111 }
112 template <typename DimensionsT = TimestreamDimension>
113 TimestreamAction& AddDimensions(DimensionsT&& value) {
114 m_dimensionsHasBeenSet = true;
115 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
116 return *this;
117 }
119
121
129 inline const TimestreamTimestamp& GetTimestamp() const { return m_timestamp; }
130 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
131 template <typename TimestampT = TimestreamTimestamp>
132 void SetTimestamp(TimestampT&& value) {
133 m_timestampHasBeenSet = true;
134 m_timestamp = std::forward<TimestampT>(value);
135 }
136 template <typename TimestampT = TimestreamTimestamp>
137 TimestreamAction& WithTimestamp(TimestampT&& value) {
138 SetTimestamp(std::forward<TimestampT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_roleArn;
144
145 Aws::String m_databaseName;
146
147 Aws::String m_tableName;
148
150
151 TimestreamTimestamp m_timestamp;
152 bool m_roleArnHasBeenSet = false;
153 bool m_databaseNameHasBeenSet = false;
154 bool m_tableNameHasBeenSet = false;
155 bool m_dimensionsHasBeenSet = false;
156 bool m_timestampHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace IoT
161} // namespace Aws
TimestreamAction & WithTableName(TableNameT &&value)
const Aws::String & GetDatabaseName() const
const Aws::String & GetTableName() const
AWS_IOT_API TimestreamAction()=default
const TimestreamTimestamp & GetTimestamp() const
TimestreamAction & WithDatabaseName(DatabaseNameT &&value)
void SetTableName(TableNameT &&value)
const Aws::Vector< TimestreamDimension > & GetDimensions() const
TimestreamAction & AddDimensions(DimensionsT &&value)
TimestreamAction & WithRoleArn(RoleArnT &&value)
AWS_IOT_API TimestreamAction & operator=(Aws::Utils::Json::JsonView jsonValue)
TimestreamAction & WithTimestamp(TimestampT &&value)
TimestreamAction & WithDimensions(DimensionsT &&value)
void SetDimensions(DimensionsT &&value)
void SetDatabaseName(DatabaseNameT &&value)
void SetTimestamp(TimestampT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRoleArn() const
AWS_IOT_API TimestreamAction(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(RoleArnT &&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