AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QuickResponseQueryField.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wisdom/model/QuickResponseQueryOperator.h>
10#include <aws/wisdom/model/Priority.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectWisdomService
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField() = default;
41 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
53 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
54 inline void SetAllowFuzziness(bool value) { m_allowFuzzinessHasBeenSet = true; m_allowFuzziness = value; }
55 inline QuickResponseQueryField& WithAllowFuzziness(bool value) { SetAllowFuzziness(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 QuickResponseQueryField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline QuickResponseQueryOperator GetOperator() const { return m_operator; }
75 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
76 inline void SetOperator(QuickResponseQueryOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
79
81
86 inline Priority GetPriority() const { return m_priority; }
87 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
88 inline void SetPriority(Priority value) { m_priorityHasBeenSet = true; m_priority = value; }
89 inline QuickResponseQueryField& WithPriority(Priority value) { SetPriority(value); return *this;}
91
93
96 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
97 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
98 template<typename ValuesT = Aws::Vector<Aws::String>>
99 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
100 template<typename ValuesT = Aws::Vector<Aws::String>>
101 QuickResponseQueryField& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
102 template<typename ValuesT = Aws::String>
103 QuickResponseQueryField& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
105 private:
106
107 bool m_allowFuzziness{false};
108 bool m_allowFuzzinessHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
114 bool m_operatorHasBeenSet = false;
115
116 Priority m_priority{Priority::NOT_SET};
117 bool m_priorityHasBeenSet = false;
118
120 bool m_valuesHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ConnectWisdomService
125} // 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