AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataTableValue.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/DataTableLockVersion.h>
9#include <aws/connect/model/PrimaryValue.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32 public:
33 AWS_CONNECT_API DataTableValue() = default;
34 AWS_CONNECT_API DataTableValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<PrimaryValue>& GetPrimaryValues() const { return m_primaryValues; }
43 inline bool PrimaryValuesHasBeenSet() const { return m_primaryValuesHasBeenSet; }
44 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
45 void SetPrimaryValues(PrimaryValuesT&& value) {
46 m_primaryValuesHasBeenSet = true;
47 m_primaryValues = std::forward<PrimaryValuesT>(value);
48 }
49 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
50 DataTableValue& WithPrimaryValues(PrimaryValuesT&& value) {
51 SetPrimaryValues(std::forward<PrimaryValuesT>(value));
52 return *this;
53 }
54 template <typename PrimaryValuesT = PrimaryValue>
55 DataTableValue& AddPrimaryValues(PrimaryValuesT&& value) {
56 m_primaryValuesHasBeenSet = true;
57 m_primaryValues.emplace_back(std::forward<PrimaryValuesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
67 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
68 template <typename AttributeNameT = Aws::String>
69 void SetAttributeName(AttributeNameT&& value) {
70 m_attributeNameHasBeenSet = true;
71 m_attributeName = std::forward<AttributeNameT>(value);
72 }
73 template <typename AttributeNameT = Aws::String>
74 DataTableValue& WithAttributeName(AttributeNameT&& value) {
75 SetAttributeName(std::forward<AttributeNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetValue() const { return m_value; }
85 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
86 template <typename ValueT = Aws::String>
87 void SetValue(ValueT&& value) {
88 m_valueHasBeenSet = true;
89 m_value = std::forward<ValueT>(value);
90 }
91 template <typename ValueT = Aws::String>
92 DataTableValue& WithValue(ValueT&& value) {
93 SetValue(std::forward<ValueT>(value));
94 return *this;
95 }
97
99
102 inline const DataTableLockVersion& GetLockVersion() const { return m_lockVersion; }
103 inline bool LockVersionHasBeenSet() const { return m_lockVersionHasBeenSet; }
104 template <typename LockVersionT = DataTableLockVersion>
105 void SetLockVersion(LockVersionT&& value) {
106 m_lockVersionHasBeenSet = true;
107 m_lockVersion = std::forward<LockVersionT>(value);
108 }
109 template <typename LockVersionT = DataTableLockVersion>
110 DataTableValue& WithLockVersion(LockVersionT&& value) {
111 SetLockVersion(std::forward<LockVersionT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
121 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
122 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
123 void SetLastModifiedTime(LastModifiedTimeT&& value) {
124 m_lastModifiedTimeHasBeenSet = true;
125 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
126 }
127 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
128 DataTableValue& WithLastModifiedTime(LastModifiedTimeT&& value) {
129 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
139 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
140 template <typename LastModifiedRegionT = Aws::String>
141 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
142 m_lastModifiedRegionHasBeenSet = true;
143 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
144 }
145 template <typename LastModifiedRegionT = Aws::String>
146 DataTableValue& WithLastModifiedRegion(LastModifiedRegionT&& value) {
147 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
148 return *this;
149 }
151 private:
152 Aws::Vector<PrimaryValue> m_primaryValues;
153
154 Aws::String m_attributeName;
155
156 Aws::String m_value;
157
158 DataTableLockVersion m_lockVersion;
159
160 Aws::Utils::DateTime m_lastModifiedTime{};
161
162 Aws::String m_lastModifiedRegion;
163 bool m_primaryValuesHasBeenSet = false;
164 bool m_attributeNameHasBeenSet = false;
165 bool m_valueHasBeenSet = false;
166 bool m_lockVersionHasBeenSet = false;
167 bool m_lastModifiedTimeHasBeenSet = false;
168 bool m_lastModifiedRegionHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Connect
173} // namespace Aws
void SetLockVersion(LockVersionT &&value)
const Aws::String & GetLastModifiedRegion() const
DataTableValue & WithPrimaryValues(PrimaryValuesT &&value)
DataTableValue & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetAttributeName(AttributeNameT &&value)
const Aws::String & GetAttributeName() const
DataTableValue & WithLockVersion(LockVersionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DataTableValue & WithValue(ValueT &&value)
AWS_CONNECT_API DataTableValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const DataTableLockVersion & GetLockVersion() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API DataTableValue()=default
AWS_CONNECT_API DataTableValue(Aws::Utils::Json::JsonView jsonValue)
DataTableValue & WithAttributeName(AttributeNameT &&value)
const Aws::String & GetValue() const
DataTableValue & AddPrimaryValues(PrimaryValuesT &&value)
const Aws::Vector< PrimaryValue > & GetPrimaryValues() const
void SetPrimaryValues(PrimaryValuesT &&value)
DataTableValue & WithLastModifiedRegion(LastModifiedRegionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&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