AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MessageTemplateQueryField.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/MessageTemplateQueryOperator.h>
11#include <aws/qconnect/model/Priority.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
33 public:
34 AWS_QCONNECT_API MessageTemplateQueryField() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
62 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
63 template <typename ValuesT = Aws::Vector<Aws::String>>
64 void SetValues(ValuesT&& value) {
65 m_valuesHasBeenSet = true;
66 m_values = std::forward<ValuesT>(value);
67 }
68 template <typename ValuesT = Aws::Vector<Aws::String>>
70 SetValues(std::forward<ValuesT>(value));
71 return *this;
72 }
73 template <typename ValuesT = Aws::String>
75 m_valuesHasBeenSet = true;
76 m_values.emplace_back(std::forward<ValuesT>(value));
77 return *this;
78 }
80
82
85 inline MessageTemplateQueryOperator GetOperator() const { return m_operator; }
86 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
88 m_operatorHasBeenSet = true;
89 m_operator = value;
90 }
92 SetOperator(value);
93 return *this;
94 }
96
98
103 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
104 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
105 inline void SetAllowFuzziness(bool value) {
106 m_allowFuzzinessHasBeenSet = true;
107 m_allowFuzziness = value;
108 }
110 SetAllowFuzziness(value);
111 return *this;
112 }
114
116
121 inline Priority GetPriority() const { return m_priority; }
122 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
123 inline void SetPriority(Priority value) {
124 m_priorityHasBeenSet = true;
125 m_priority = value;
126 }
128 SetPriority(value);
129 return *this;
130 }
132 private:
133 Aws::String m_name;
134
136
138
139 bool m_allowFuzziness{false};
140
141 Priority m_priority{Priority::NOT_SET};
142 bool m_nameHasBeenSet = false;
143 bool m_valuesHasBeenSet = false;
144 bool m_operatorHasBeenSet = false;
145 bool m_allowFuzzinessHasBeenSet = false;
146 bool m_priorityHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace QConnect
151} // namespace Aws
AWS_QCONNECT_API MessageTemplateQueryField & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageTemplateQueryField & WithAllowFuzziness(bool value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageTemplateQueryField & WithPriority(Priority value)
MessageTemplateQueryField & WithOperator(MessageTemplateQueryOperator value)
AWS_QCONNECT_API MessageTemplateQueryField()=default
AWS_QCONNECT_API MessageTemplateQueryField(Aws::Utils::Json::JsonView jsonValue)
void SetOperator(MessageTemplateQueryOperator value)
MessageTemplateQueryField & AddValues(ValuesT &&value)
MessageTemplateQueryField & WithValues(ValuesT &&value)
MessageTemplateQueryField & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetValues() const
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