AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomService_EXPORTS.h>
10#include <aws/wisdom/model/Priority.h>
11#include <aws/wisdom/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 ConnectWisdomService {
23namespace Model {
24
34 public:
35 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField() = default;
36 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
47 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
48 inline void SetAllowFuzziness(bool value) {
49 m_allowFuzzinessHasBeenSet = true;
50 m_allowFuzziness = value;
51 }
53 SetAllowFuzziness(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline QuickResponseQueryOperator GetOperator() const { return m_operator; }
81 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
83 m_operatorHasBeenSet = true;
84 m_operator = value;
85 }
87 SetOperator(value);
88 return *this;
89 }
91
93
98 inline Priority GetPriority() const { return m_priority; }
99 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
100 inline void SetPriority(Priority value) {
101 m_priorityHasBeenSet = true;
102 m_priority = value;
103 }
105 SetPriority(value);
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
115 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
116 template <typename ValuesT = Aws::Vector<Aws::String>>
117 void SetValues(ValuesT&& value) {
118 m_valuesHasBeenSet = true;
119 m_values = std::forward<ValuesT>(value);
120 }
121 template <typename ValuesT = Aws::Vector<Aws::String>>
123 SetValues(std::forward<ValuesT>(value));
124 return *this;
125 }
126 template <typename ValuesT = Aws::String>
128 m_valuesHasBeenSet = true;
129 m_values.emplace_back(std::forward<ValuesT>(value));
130 return *this;
131 }
133 private:
134 bool m_allowFuzziness{false};
135
136 Aws::String m_name;
137
139
140 Priority m_priority{Priority::NOT_SET};
141
143 bool m_allowFuzzinessHasBeenSet = false;
144 bool m_nameHasBeenSet = false;
145 bool m_operatorHasBeenSet = false;
146 bool m_priorityHasBeenSet = false;
147 bool m_valuesHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace ConnectWisdomService
152} // namespace Aws
QuickResponseQueryField & WithOperator(QuickResponseQueryOperator value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField()=default
AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue