AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
AdvancedFieldSelector.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/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
30 public:
31 AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector() = default;
32 AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetField() const { return m_field; }
41 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
42 template <typename FieldT = Aws::String>
43 void SetField(FieldT&& value) {
44 m_fieldHasBeenSet = true;
45 m_field = std::forward<FieldT>(value);
46 }
47 template <typename FieldT = Aws::String>
49 SetField(std::forward<FieldT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetEquals() const { return m_equals; }
59 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
60 template <typename EqualsT = Aws::Vector<Aws::String>>
61 void SetEquals(EqualsT&& value) {
62 m_equalsHasBeenSet = true;
63 m_equals = std::forward<EqualsT>(value);
64 }
65 template <typename EqualsT = Aws::Vector<Aws::String>>
67 SetEquals(std::forward<EqualsT>(value));
68 return *this;
69 }
70 template <typename EqualsT = Aws::String>
71 AdvancedFieldSelector& AddEquals(EqualsT&& value) {
72 m_equalsHasBeenSet = true;
73 m_equals.emplace_back(std::forward<EqualsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetStartsWith() const { return m_startsWith; }
83 inline bool StartsWithHasBeenSet() const { return m_startsWithHasBeenSet; }
84 template <typename StartsWithT = Aws::Vector<Aws::String>>
85 void SetStartsWith(StartsWithT&& value) {
86 m_startsWithHasBeenSet = true;
87 m_startsWith = std::forward<StartsWithT>(value);
88 }
89 template <typename StartsWithT = Aws::Vector<Aws::String>>
90 AdvancedFieldSelector& WithStartsWith(StartsWithT&& value) {
91 SetStartsWith(std::forward<StartsWithT>(value));
92 return *this;
93 }
94 template <typename StartsWithT = Aws::String>
95 AdvancedFieldSelector& AddStartsWith(StartsWithT&& value) {
96 m_startsWithHasBeenSet = true;
97 m_startsWith.emplace_back(std::forward<StartsWithT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<Aws::String>& GetEndsWith() const { return m_endsWith; }
107 inline bool EndsWithHasBeenSet() const { return m_endsWithHasBeenSet; }
108 template <typename EndsWithT = Aws::Vector<Aws::String>>
109 void SetEndsWith(EndsWithT&& value) {
110 m_endsWithHasBeenSet = true;
111 m_endsWith = std::forward<EndsWithT>(value);
112 }
113 template <typename EndsWithT = Aws::Vector<Aws::String>>
115 SetEndsWith(std::forward<EndsWithT>(value));
116 return *this;
117 }
118 template <typename EndsWithT = Aws::String>
119 AdvancedFieldSelector& AddEndsWith(EndsWithT&& value) {
120 m_endsWithHasBeenSet = true;
121 m_endsWith.emplace_back(std::forward<EndsWithT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Aws::String>& GetNotEquals() const { return m_notEquals; }
131 inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
132 template <typename NotEqualsT = Aws::Vector<Aws::String>>
133 void SetNotEquals(NotEqualsT&& value) {
134 m_notEqualsHasBeenSet = true;
135 m_notEquals = std::forward<NotEqualsT>(value);
136 }
137 template <typename NotEqualsT = Aws::Vector<Aws::String>>
139 SetNotEquals(std::forward<NotEqualsT>(value));
140 return *this;
141 }
142 template <typename NotEqualsT = Aws::String>
143 AdvancedFieldSelector& AddNotEquals(NotEqualsT&& value) {
144 m_notEqualsHasBeenSet = true;
145 m_notEquals.emplace_back(std::forward<NotEqualsT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Aws::String>& GetNotStartsWith() const { return m_notStartsWith; }
155 inline bool NotStartsWithHasBeenSet() const { return m_notStartsWithHasBeenSet; }
156 template <typename NotStartsWithT = Aws::Vector<Aws::String>>
157 void SetNotStartsWith(NotStartsWithT&& value) {
158 m_notStartsWithHasBeenSet = true;
159 m_notStartsWith = std::forward<NotStartsWithT>(value);
160 }
161 template <typename NotStartsWithT = Aws::Vector<Aws::String>>
162 AdvancedFieldSelector& WithNotStartsWith(NotStartsWithT&& value) {
163 SetNotStartsWith(std::forward<NotStartsWithT>(value));
164 return *this;
165 }
166 template <typename NotStartsWithT = Aws::String>
167 AdvancedFieldSelector& AddNotStartsWith(NotStartsWithT&& value) {
168 m_notStartsWithHasBeenSet = true;
169 m_notStartsWith.emplace_back(std::forward<NotStartsWithT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Aws::String>& GetNotEndsWith() const { return m_notEndsWith; }
179 inline bool NotEndsWithHasBeenSet() const { return m_notEndsWithHasBeenSet; }
180 template <typename NotEndsWithT = Aws::Vector<Aws::String>>
181 void SetNotEndsWith(NotEndsWithT&& value) {
182 m_notEndsWithHasBeenSet = true;
183 m_notEndsWith = std::forward<NotEndsWithT>(value);
184 }
185 template <typename NotEndsWithT = Aws::Vector<Aws::String>>
186 AdvancedFieldSelector& WithNotEndsWith(NotEndsWithT&& value) {
187 SetNotEndsWith(std::forward<NotEndsWithT>(value));
188 return *this;
189 }
190 template <typename NotEndsWithT = Aws::String>
191 AdvancedFieldSelector& AddNotEndsWith(NotEndsWithT&& value) {
192 m_notEndsWithHasBeenSet = true;
193 m_notEndsWith.emplace_back(std::forward<NotEndsWithT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_field;
199
201
202 Aws::Vector<Aws::String> m_startsWith;
203
204 Aws::Vector<Aws::String> m_endsWith;
205
206 Aws::Vector<Aws::String> m_notEquals;
207
208 Aws::Vector<Aws::String> m_notStartsWith;
209
210 Aws::Vector<Aws::String> m_notEndsWith;
211 bool m_fieldHasBeenSet = false;
212 bool m_equalsHasBeenSet = false;
213 bool m_startsWithHasBeenSet = false;
214 bool m_endsWithHasBeenSet = false;
215 bool m_notEqualsHasBeenSet = false;
216 bool m_notStartsWithHasBeenSet = false;
217 bool m_notEndsWithHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace ObservabilityAdmin
222} // namespace Aws
AdvancedFieldSelector & AddNotEndsWith(NotEndsWithT &&value)
AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetNotEndsWith() const
const Aws::Vector< Aws::String > & GetNotEquals() const
AdvancedFieldSelector & AddStartsWith(StartsWithT &&value)
AdvancedFieldSelector & WithNotStartsWith(NotStartsWithT &&value)
AdvancedFieldSelector & AddNotStartsWith(NotStartsWithT &&value)
const Aws::Vector< Aws::String > & GetEquals() const
const Aws::Vector< Aws::String > & GetEndsWith() const
AdvancedFieldSelector & WithNotEquals(NotEqualsT &&value)
const Aws::Vector< Aws::String > & GetStartsWith() const
AdvancedFieldSelector & WithNotEndsWith(NotEndsWithT &&value)
AdvancedFieldSelector & WithField(FieldT &&value)
const Aws::Vector< Aws::String > & GetNotStartsWith() const
AdvancedFieldSelector & WithEquals(EqualsT &&value)
AdvancedFieldSelector & AddNotEquals(NotEqualsT &&value)
AdvancedFieldSelector & WithEndsWith(EndsWithT &&value)
AWS_OBSERVABILITYADMIN_API AdvancedFieldSelector()=default
AdvancedFieldSelector & AddEndsWith(EndsWithT &&value)
AdvancedFieldSelector & WithStartsWith(StartsWithT &&value)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AdvancedFieldSelector & AddEquals(EqualsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue