AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataTableValueSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/DataTableAttributeValueType.h>
9#include <aws/connect/model/DataTableLockVersion.h>
10#include <aws/connect/model/PrimaryValueResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
33 public:
34 AWS_CONNECT_API DataTableValueSummary() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRecordId() const { return m_recordId; }
44 inline bool RecordIdHasBeenSet() const { return m_recordIdHasBeenSet; }
45 template <typename RecordIdT = Aws::String>
46 void SetRecordId(RecordIdT&& value) {
47 m_recordIdHasBeenSet = true;
48 m_recordId = std::forward<RecordIdT>(value);
49 }
50 template <typename RecordIdT = Aws::String>
51 DataTableValueSummary& WithRecordId(RecordIdT&& value) {
52 SetRecordId(std::forward<RecordIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAttributeId() const { return m_attributeId; }
62 inline bool AttributeIdHasBeenSet() const { return m_attributeIdHasBeenSet; }
63 template <typename AttributeIdT = Aws::String>
64 void SetAttributeId(AttributeIdT&& value) {
65 m_attributeIdHasBeenSet = true;
66 m_attributeId = std::forward<AttributeIdT>(value);
67 }
68 template <typename AttributeIdT = Aws::String>
69 DataTableValueSummary& WithAttributeId(AttributeIdT&& value) {
70 SetAttributeId(std::forward<AttributeIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<PrimaryValueResponse>& GetPrimaryValues() const { return m_primaryValues; }
80 inline bool PrimaryValuesHasBeenSet() const { return m_primaryValuesHasBeenSet; }
81 template <typename PrimaryValuesT = Aws::Vector<PrimaryValueResponse>>
82 void SetPrimaryValues(PrimaryValuesT&& value) {
83 m_primaryValuesHasBeenSet = true;
84 m_primaryValues = std::forward<PrimaryValuesT>(value);
85 }
86 template <typename PrimaryValuesT = Aws::Vector<PrimaryValueResponse>>
87 DataTableValueSummary& WithPrimaryValues(PrimaryValuesT&& value) {
88 SetPrimaryValues(std::forward<PrimaryValuesT>(value));
89 return *this;
90 }
91 template <typename PrimaryValuesT = PrimaryValueResponse>
92 DataTableValueSummary& AddPrimaryValues(PrimaryValuesT&& value) {
93 m_primaryValuesHasBeenSet = true;
94 m_primaryValues.emplace_back(std::forward<PrimaryValuesT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
104 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
105 template <typename AttributeNameT = Aws::String>
106 void SetAttributeName(AttributeNameT&& value) {
107 m_attributeNameHasBeenSet = true;
108 m_attributeName = std::forward<AttributeNameT>(value);
109 }
110 template <typename AttributeNameT = Aws::String>
111 DataTableValueSummary& WithAttributeName(AttributeNameT&& value) {
112 SetAttributeName(std::forward<AttributeNameT>(value));
113 return *this;
114 }
116
118
121 inline DataTableAttributeValueType GetValueType() const { return m_valueType; }
122 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
124 m_valueTypeHasBeenSet = true;
125 m_valueType = value;
126 }
128 SetValueType(value);
129 return *this;
130 }
132
134
137 inline const Aws::String& GetValue() const { return m_value; }
138 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
139 template <typename ValueT = Aws::String>
140 void SetValue(ValueT&& value) {
141 m_valueHasBeenSet = true;
142 m_value = std::forward<ValueT>(value);
143 }
144 template <typename ValueT = Aws::String>
146 SetValue(std::forward<ValueT>(value));
147 return *this;
148 }
150
152
155 inline const DataTableLockVersion& GetLockVersion() const { return m_lockVersion; }
156 inline bool LockVersionHasBeenSet() const { return m_lockVersionHasBeenSet; }
157 template <typename LockVersionT = DataTableLockVersion>
158 void SetLockVersion(LockVersionT&& value) {
159 m_lockVersionHasBeenSet = true;
160 m_lockVersion = std::forward<LockVersionT>(value);
161 }
162 template <typename LockVersionT = DataTableLockVersion>
163 DataTableValueSummary& WithLockVersion(LockVersionT&& value) {
164 SetLockVersion(std::forward<LockVersionT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
174 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
175 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
176 void SetLastModifiedTime(LastModifiedTimeT&& value) {
177 m_lastModifiedTimeHasBeenSet = true;
178 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
179 }
180 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
181 DataTableValueSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
182 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
192 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
193 template <typename LastModifiedRegionT = Aws::String>
194 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
195 m_lastModifiedRegionHasBeenSet = true;
196 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
197 }
198 template <typename LastModifiedRegionT = Aws::String>
199 DataTableValueSummary& WithLastModifiedRegion(LastModifiedRegionT&& value) {
200 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_recordId;
206
207 Aws::String m_attributeId;
208
209 Aws::Vector<PrimaryValueResponse> m_primaryValues;
210
211 Aws::String m_attributeName;
212
214
215 Aws::String m_value;
216
217 DataTableLockVersion m_lockVersion;
218
219 Aws::Utils::DateTime m_lastModifiedTime{};
220
221 Aws::String m_lastModifiedRegion;
222 bool m_recordIdHasBeenSet = false;
223 bool m_attributeIdHasBeenSet = false;
224 bool m_primaryValuesHasBeenSet = false;
225 bool m_attributeNameHasBeenSet = false;
226 bool m_valueTypeHasBeenSet = false;
227 bool m_valueHasBeenSet = false;
228 bool m_lockVersionHasBeenSet = false;
229 bool m_lastModifiedTimeHasBeenSet = false;
230 bool m_lastModifiedRegionHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace Connect
235} // namespace Aws
AWS_CONNECT_API DataTableValueSummary()=default
AWS_CONNECT_API DataTableValueSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataTableValueSummary & WithLastModifiedRegion(LastModifiedRegionT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::Vector< PrimaryValueResponse > & GetPrimaryValues() const
DataTableValueSummary & WithPrimaryValues(PrimaryValuesT &&value)
const DataTableLockVersion & GetLockVersion() const
AWS_CONNECT_API DataTableValueSummary(Aws::Utils::Json::JsonView jsonValue)
DataTableValueSummary & WithValueType(DataTableAttributeValueType value)
DataTableValueSummary & WithLockVersion(LockVersionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DataTableValueSummary & WithRecordId(RecordIdT &&value)
DataTableValueSummary & WithAttributeName(AttributeNameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DataTableValueSummary & WithValue(ValueT &&value)
DataTableAttributeValueType GetValueType() const
DataTableValueSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
DataTableValueSummary & WithAttributeId(AttributeIdT &&value)
void SetValueType(DataTableAttributeValueType value)
DataTableValueSummary & AddPrimaryValues(PrimaryValuesT &&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