AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataTableEvaluatedValue.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/DataTableAttributeValueType.h>
9#include <aws/connect/model/PrimaryValue.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
31 public:
32 AWS_CONNECT_API DataTableEvaluatedValue() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRecordId() const { return m_recordId; }
42 inline bool RecordIdHasBeenSet() const { return m_recordIdHasBeenSet; }
43 template <typename RecordIdT = Aws::String>
44 void SetRecordId(RecordIdT&& value) {
45 m_recordIdHasBeenSet = true;
46 m_recordId = std::forward<RecordIdT>(value);
47 }
48 template <typename RecordIdT = Aws::String>
50 SetRecordId(std::forward<RecordIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<PrimaryValue>& GetPrimaryValues() const { return m_primaryValues; }
60 inline bool PrimaryValuesHasBeenSet() const { return m_primaryValuesHasBeenSet; }
61 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
62 void SetPrimaryValues(PrimaryValuesT&& value) {
63 m_primaryValuesHasBeenSet = true;
64 m_primaryValues = std::forward<PrimaryValuesT>(value);
65 }
66 template <typename PrimaryValuesT = Aws::Vector<PrimaryValue>>
67 DataTableEvaluatedValue& WithPrimaryValues(PrimaryValuesT&& value) {
68 SetPrimaryValues(std::forward<PrimaryValuesT>(value));
69 return *this;
70 }
71 template <typename PrimaryValuesT = PrimaryValue>
72 DataTableEvaluatedValue& AddPrimaryValues(PrimaryValuesT&& value) {
73 m_primaryValuesHasBeenSet = true;
74 m_primaryValues.emplace_back(std::forward<PrimaryValuesT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
84 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
85 template <typename AttributeNameT = Aws::String>
86 void SetAttributeName(AttributeNameT&& value) {
87 m_attributeNameHasBeenSet = true;
88 m_attributeName = std::forward<AttributeNameT>(value);
89 }
90 template <typename AttributeNameT = Aws::String>
91 DataTableEvaluatedValue& WithAttributeName(AttributeNameT&& value) {
92 SetAttributeName(std::forward<AttributeNameT>(value));
93 return *this;
94 }
96
98
101 inline DataTableAttributeValueType GetValueType() const { return m_valueType; }
102 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
104 m_valueTypeHasBeenSet = true;
105 m_valueType = value;
106 }
108 SetValueType(value);
109 return *this;
110 }
112
114
117 inline bool GetFound() const { return m_found; }
118 inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; }
119 inline void SetFound(bool value) {
120 m_foundHasBeenSet = true;
121 m_found = value;
122 }
123 inline DataTableEvaluatedValue& WithFound(bool value) {
124 SetFound(value);
125 return *this;
126 }
128
130
133 inline bool GetError() const { return m_error; }
134 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
135 inline void SetError(bool value) {
136 m_errorHasBeenSet = true;
137 m_error = value;
138 }
139 inline DataTableEvaluatedValue& WithError(bool value) {
140 SetError(value);
141 return *this;
142 }
144
146
149 inline const Aws::String& GetEvaluatedValue() const { return m_evaluatedValue; }
150 inline bool EvaluatedValueHasBeenSet() const { return m_evaluatedValueHasBeenSet; }
151 template <typename EvaluatedValueT = Aws::String>
152 void SetEvaluatedValue(EvaluatedValueT&& value) {
153 m_evaluatedValueHasBeenSet = true;
154 m_evaluatedValue = std::forward<EvaluatedValueT>(value);
155 }
156 template <typename EvaluatedValueT = Aws::String>
157 DataTableEvaluatedValue& WithEvaluatedValue(EvaluatedValueT&& value) {
158 SetEvaluatedValue(std::forward<EvaluatedValueT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_recordId;
164
165 Aws::Vector<PrimaryValue> m_primaryValues;
166
167 Aws::String m_attributeName;
168
170
171 bool m_found{false};
172
173 bool m_error{false};
174
175 Aws::String m_evaluatedValue;
176 bool m_recordIdHasBeenSet = false;
177 bool m_primaryValuesHasBeenSet = false;
178 bool m_attributeNameHasBeenSet = false;
179 bool m_valueTypeHasBeenSet = false;
180 bool m_foundHasBeenSet = false;
181 bool m_errorHasBeenSet = false;
182 bool m_evaluatedValueHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Connect
187} // namespace Aws
DataTableEvaluatedValue & WithEvaluatedValue(EvaluatedValueT &&value)
DataTableAttributeValueType GetValueType() const
DataTableEvaluatedValue & AddPrimaryValues(PrimaryValuesT &&value)
AWS_CONNECT_API DataTableEvaluatedValue & operator=(Aws::Utils::Json::JsonView jsonValue)
DataTableEvaluatedValue & WithRecordId(RecordIdT &&value)
DataTableEvaluatedValue & WithError(bool value)
AWS_CONNECT_API DataTableEvaluatedValue()=default
DataTableEvaluatedValue & WithFound(bool value)
DataTableEvaluatedValue & WithValueType(DataTableAttributeValueType value)
DataTableEvaluatedValue & WithPrimaryValues(PrimaryValuesT &&value)
AWS_CONNECT_API DataTableEvaluatedValue(Aws::Utils::Json::JsonView jsonValue)
DataTableEvaluatedValue & WithAttributeName(AttributeNameT &&value)
void SetValueType(DataTableAttributeValueType value)
const Aws::Vector< PrimaryValue > & GetPrimaryValues() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue