AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageTemplateQueryField.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/MessageTemplateQueryOperator.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
37 {
38 public:
39 AWS_QCONNECT_API MessageTemplateQueryField() = default;
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 MessageTemplateQueryField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
65 template<typename ValuesT = Aws::Vector<Aws::String>>
66 MessageTemplateQueryField& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
67 template<typename ValuesT = Aws::String>
68 MessageTemplateQueryField& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
70
72
75 inline MessageTemplateQueryOperator GetOperator() const { return m_operator; }
76 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
77 inline void SetOperator(MessageTemplateQueryOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
80
82
87 inline bool GetAllowFuzziness() const { return m_allowFuzziness; }
88 inline bool AllowFuzzinessHasBeenSet() const { return m_allowFuzzinessHasBeenSet; }
89 inline void SetAllowFuzziness(bool value) { m_allowFuzzinessHasBeenSet = true; m_allowFuzziness = value; }
90 inline MessageTemplateQueryField& WithAllowFuzziness(bool value) { SetAllowFuzziness(value); return *this;}
92
94
99 inline Priority GetPriority() const { return m_priority; }
100 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
101 inline void SetPriority(Priority value) { m_priorityHasBeenSet = true; m_priority = value; }
102 inline MessageTemplateQueryField& WithPriority(Priority value) { SetPriority(value); return *this;}
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
110 bool m_valuesHasBeenSet = false;
111
113 bool m_operatorHasBeenSet = false;
114
115 bool m_allowFuzziness{false};
116 bool m_allowFuzzinessHasBeenSet = false;
117
118 Priority m_priority{Priority::NOT_SET};
119 bool m_priorityHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace QConnect
124} // 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