AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
LookupTable.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/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API LookupTable() = default;
32 AWS_CLOUDWATCHLOGS_API LookupTable(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API LookupTable& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLookupTableArn() const { return m_lookupTableArn; }
41 inline bool LookupTableArnHasBeenSet() const { return m_lookupTableArnHasBeenSet; }
42 template <typename LookupTableArnT = Aws::String>
43 void SetLookupTableArn(LookupTableArnT&& value) {
44 m_lookupTableArnHasBeenSet = true;
45 m_lookupTableArn = std::forward<LookupTableArnT>(value);
46 }
47 template <typename LookupTableArnT = Aws::String>
48 LookupTable& WithLookupTableArn(LookupTableArnT&& value) {
49 SetLookupTableArn(std::forward<LookupTableArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLookupTableName() const { return m_lookupTableName; }
59 inline bool LookupTableNameHasBeenSet() const { return m_lookupTableNameHasBeenSet; }
60 template <typename LookupTableNameT = Aws::String>
61 void SetLookupTableName(LookupTableNameT&& value) {
62 m_lookupTableNameHasBeenSet = true;
63 m_lookupTableName = std::forward<LookupTableNameT>(value);
64 }
65 template <typename LookupTableNameT = Aws::String>
66 LookupTable& WithLookupTableName(LookupTableNameT&& value) {
67 SetLookupTableName(std::forward<LookupTableNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 LookupTable& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetTableFields() const { return m_tableFields; }
95 inline bool TableFieldsHasBeenSet() const { return m_tableFieldsHasBeenSet; }
96 template <typename TableFieldsT = Aws::Vector<Aws::String>>
97 void SetTableFields(TableFieldsT&& value) {
98 m_tableFieldsHasBeenSet = true;
99 m_tableFields = std::forward<TableFieldsT>(value);
100 }
101 template <typename TableFieldsT = Aws::Vector<Aws::String>>
102 LookupTable& WithTableFields(TableFieldsT&& value) {
103 SetTableFields(std::forward<TableFieldsT>(value));
104 return *this;
105 }
106 template <typename TableFieldsT = Aws::String>
107 LookupTable& AddTableFields(TableFieldsT&& value) {
108 m_tableFieldsHasBeenSet = true;
109 m_tableFields.emplace_back(std::forward<TableFieldsT>(value));
110 return *this;
111 }
113
115
118 inline long long GetRecordsCount() const { return m_recordsCount; }
119 inline bool RecordsCountHasBeenSet() const { return m_recordsCountHasBeenSet; }
120 inline void SetRecordsCount(long long value) {
121 m_recordsCountHasBeenSet = true;
122 m_recordsCount = value;
123 }
124 inline LookupTable& WithRecordsCount(long long value) {
125 SetRecordsCount(value);
126 return *this;
127 }
129
131
134 inline long long GetSizeBytes() const { return m_sizeBytes; }
135 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
136 inline void SetSizeBytes(long long value) {
137 m_sizeBytesHasBeenSet = true;
138 m_sizeBytes = value;
139 }
140 inline LookupTable& WithSizeBytes(long long value) {
141 SetSizeBytes(value);
142 return *this;
143 }
145
147
151 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
152 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
153 inline void SetLastUpdatedTime(long long value) {
154 m_lastUpdatedTimeHasBeenSet = true;
155 m_lastUpdatedTime = value;
156 }
157 inline LookupTable& WithLastUpdatedTime(long long value) {
158 SetLastUpdatedTime(value);
159 return *this;
160 }
162
164
168 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
169 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
170 template <typename KmsKeyIdT = Aws::String>
171 void SetKmsKeyId(KmsKeyIdT&& value) {
172 m_kmsKeyIdHasBeenSet = true;
173 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
174 }
175 template <typename KmsKeyIdT = Aws::String>
176 LookupTable& WithKmsKeyId(KmsKeyIdT&& value) {
177 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_lookupTableArn;
183
184 Aws::String m_lookupTableName;
185
186 Aws::String m_description;
187
188 Aws::Vector<Aws::String> m_tableFields;
189
190 long long m_recordsCount{0};
191
192 long long m_sizeBytes{0};
193
194 long long m_lastUpdatedTime{0};
195
196 Aws::String m_kmsKeyId;
197 bool m_lookupTableArnHasBeenSet = false;
198 bool m_lookupTableNameHasBeenSet = false;
199 bool m_descriptionHasBeenSet = false;
200 bool m_tableFieldsHasBeenSet = false;
201 bool m_recordsCountHasBeenSet = false;
202 bool m_sizeBytesHasBeenSet = false;
203 bool m_lastUpdatedTimeHasBeenSet = false;
204 bool m_kmsKeyIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace CloudWatchLogs
209} // namespace Aws
void SetLastUpdatedTime(long long value)
LookupTable & WithLookupTableArn(LookupTableArnT &&value)
Definition LookupTable.h:48
void SetDescription(DescriptionT &&value)
Definition LookupTable.h:79
AWS_CLOUDWATCHLOGS_API LookupTable()=default
const Aws::String & GetLookupTableName() const
Definition LookupTable.h:58
AWS_CLOUDWATCHLOGS_API LookupTable(Aws::Utils::Json::JsonView jsonValue)
LookupTable & WithTableFields(TableFieldsT &&value)
void SetLookupTableArn(LookupTableArnT &&value)
Definition LookupTable.h:43
LookupTable & WithDescription(DescriptionT &&value)
Definition LookupTable.h:84
LookupTable & WithKmsKeyId(KmsKeyIdT &&value)
LookupTable & AddTableFields(TableFieldsT &&value)
LookupTable & WithSizeBytes(long long value)
LookupTable & WithRecordsCount(long long value)
AWS_CLOUDWATCHLOGS_API LookupTable & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTableFields() const
Definition LookupTable.h:94
const Aws::String & GetDescription() const
Definition LookupTable.h:76
void SetLookupTableName(LookupTableNameT &&value)
Definition LookupTable.h:61
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
LookupTable & WithLastUpdatedTime(long long value)
void SetTableFields(TableFieldsT &&value)
Definition LookupTable.h:97
LookupTable & WithLookupTableName(LookupTableNameT &&value)
Definition LookupTable.h:66
const Aws::String & GetLookupTableArn() const
Definition LookupTable.h:40
const Aws::String & GetKmsKeyId() const
void SetKmsKeyId(KmsKeyIdT &&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