AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
QuickResponseQueryField.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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/Priority.h>
11#include <aws/qconnect/model/QuickResponseQueryOperator.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect {
23namespace Model {
24
34 public:
35 AWS_QCONNECT_API QuickResponseQueryField() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 template <typename ValuesT = Aws::Vector<Aws::String>>
65 void SetValues(ValuesT&& value) {
66 m_valuesHasBeenSet = true;
67 m_values = std::forward<ValuesT>(value);
68 }
69 template <typename ValuesT = Aws::Vector<Aws::String>>
71 SetValues(std::forward<ValuesT>(value));
72 return *this;
73 }
74 template <typename ValuesT = Aws::String>
76 m_valuesHasBeenSet = true;
77 m_values.emplace_back(std::forward<ValuesT>(value));
78 return *this;
79 }
81
83
86 inline QuickResponseQueryOperator GetOperator() const { return m_operator; }
87 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
89 m_operatorHasBeenSet = true;
90 m_operator = value;
91 }
93 SetOperator(value);
94 return *this;
95 }
97
99
104 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
105 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
106 inline void SetAllowFuzziness(bool value) {
107 m_allowFuzzinessHasBeenSet = true;
108 m_allowFuzziness = value;
109 }
111 SetAllowFuzziness(value);
112 return *this;
113 }
115
117
122 inline Priority GetPriority() const { return m_priority; }
123 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
124 inline void SetPriority(Priority value) {
125 m_priorityHasBeenSet = true;
126 m_priority = value;
127 }
129 SetPriority(value);
130 return *this;
131 }
133 private:
134 Aws::String m_name;
135
137
139
140 bool m_allowFuzziness{false};
141
142 Priority m_priority{Priority::NOT_SET};
143 bool m_nameHasBeenSet = false;
144 bool m_valuesHasBeenSet = false;
145 bool m_operatorHasBeenSet = false;
146 bool m_allowFuzzinessHasBeenSet = false;
147 bool m_priorityHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace QConnect
152} // namespace Aws
QuickResponseQueryField & WithName(NameT &&value)
QuickResponseQueryField & WithOperator(QuickResponseQueryOperator value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOperator(QuickResponseQueryOperator value)
QuickResponseQueryField & WithPriority(Priority value)
AWS_QCONNECT_API QuickResponseQueryField & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
QuickResponseQueryField & WithValues(ValuesT &&value)
AWS_QCONNECT_API QuickResponseQueryField()=default
AWS_QCONNECT_API QuickResponseQueryField(Aws::Utils::Json::JsonView jsonValue)
QuickResponseQueryField & AddValues(ValuesT &&value)
QuickResponseQueryField & WithAllowFuzziness(bool value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue