AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline QuickResponseQueryField& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline QuickResponseQueryField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline QuickResponseQueryField& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const QuickResponseQueryOperator& GetOperator() const{ return m_operator; }
77 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
78 inline void SetOperator(const QuickResponseQueryOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
79 inline void SetOperator(QuickResponseQueryOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
80 inline QuickResponseQueryField& WithOperator(const QuickResponseQueryOperator& value) { SetOperator(value); return *this;}
81 inline QuickResponseQueryField& WithOperator(QuickResponseQueryOperator&& value) { SetOperator(std::move(value)); return *this;}
83
85
90 inline const Priority& GetPriority() const{ return m_priority; }
91 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
92 inline void SetPriority(const Priority& value) { m_priorityHasBeenSet = true; m_priority = value; }
93 inline void SetPriority(Priority&& value) { m_priorityHasBeenSet = true; m_priority = std::move(value); }
94 inline QuickResponseQueryField& WithPriority(const Priority& value) { SetPriority(value); return *this;}
95 inline QuickResponseQueryField& WithPriority(Priority&& value) { SetPriority(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
103 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
104 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
105 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
106 inline QuickResponseQueryField& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
107 inline QuickResponseQueryField& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
108 inline QuickResponseQueryField& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
109 inline QuickResponseQueryField& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
110 inline QuickResponseQueryField& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
112 private:
113
114 bool m_allowFuzziness;
115 bool m_allowFuzzinessHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
121 bool m_operatorHasBeenSet = false;
122
123 Priority m_priority;
124 bool m_priorityHasBeenSet = false;
125
127 bool m_valuesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ConnectWisdomService
132} // namespace Aws
QuickResponseQueryField & WithPriority(Priority &&value)
void SetOperator(const QuickResponseQueryOperator &value)
QuickResponseQueryField & WithOperator(const QuickResponseQueryOperator &value)
QuickResponseQueryField & WithValues(const Aws::Vector< Aws::String > &value)
QuickResponseQueryField & AddValues(const char *value)
QuickResponseQueryField & AddValues(Aws::String &&value)
AWS_CONNECTWISDOMSERVICE_API QuickResponseQueryField(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
QuickResponseQueryField & AddValues(const Aws::String &value)
QuickResponseQueryField & WithPriority(const Priority &value)
void SetValues(const Aws::Vector< Aws::String > &value)
QuickResponseQueryField & WithName(const Aws::String &value)
QuickResponseQueryField & WithName(Aws::String &&value)
QuickResponseQueryField & WithName(const char *value)
QuickResponseQueryField & WithValues(Aws::Vector< Aws::String > &&value)
QuickResponseQueryField & WithOperator(QuickResponseQueryOperator &&value)
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