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/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qconnect/model/QuickResponseQueryOperator.h>
11#include <aws/qconnect/model/Priority.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 QConnect
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_QCONNECT_API QuickResponseQueryField() = default;
43 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 QuickResponseQueryField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
66 template<typename ValuesT = Aws::Vector<Aws::String>>
67 QuickResponseQueryField& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
68 template<typename ValuesT = Aws::String>
69 QuickResponseQueryField& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
71
73
76 inline QuickResponseQueryOperator GetOperator() const { return m_operator; }
77 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
78 inline void SetOperator(QuickResponseQueryOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
81
83
88 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
89 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
90 inline void SetAllowFuzziness(bool value) { m_allowFuzzinessHasBeenSet = true; m_allowFuzziness = value; }
91 inline QuickResponseQueryField& WithAllowFuzziness(bool value) { SetAllowFuzziness(value); return *this;}
93
95
100 inline Priority GetPriority() const { return m_priority; }
101 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
102 inline void SetPriority(Priority value) { m_priorityHasBeenSet = true; m_priority = value; }
103 inline QuickResponseQueryField& WithPriority(Priority value) { SetPriority(value); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_valuesHasBeenSet = false;
112
114 bool m_operatorHasBeenSet = false;
115
116 bool m_allowFuzziness{false};
117 bool m_allowFuzzinessHasBeenSet = false;
118
119 Priority m_priority{Priority::NOT_SET};
120 bool m_priorityHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace QConnect
125} // 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