AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Condition.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/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
28class Condition {
29 public:
30 AWS_GUARDDUTY_API Condition() = default;
31 AWS_GUARDDUTY_API Condition(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<Aws::String>& GetEquals() const { return m_equals; }
41 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
42 template <typename EqualsT = Aws::Vector<Aws::String>>
43 void SetEquals(EqualsT&& value) {
44 m_equalsHasBeenSet = true;
45 m_equals = std::forward<EqualsT>(value);
46 }
47 template <typename EqualsT = Aws::Vector<Aws::String>>
48 Condition& WithEquals(EqualsT&& value) {
49 SetEquals(std::forward<EqualsT>(value));
50 return *this;
51 }
52 template <typename EqualsT = Aws::String>
53 Condition& AddEquals(EqualsT&& value) {
54 m_equalsHasBeenSet = true;
55 m_equals.emplace_back(std::forward<EqualsT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetNotEquals() const { return m_notEquals; }
66 inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
67 template <typename NotEqualsT = Aws::Vector<Aws::String>>
68 void SetNotEquals(NotEqualsT&& value) {
69 m_notEqualsHasBeenSet = true;
70 m_notEquals = std::forward<NotEqualsT>(value);
71 }
72 template <typename NotEqualsT = Aws::Vector<Aws::String>>
73 Condition& WithNotEquals(NotEqualsT&& value) {
74 SetNotEquals(std::forward<NotEqualsT>(value));
75 return *this;
76 }
77 template <typename NotEqualsT = Aws::String>
78 Condition& AddNotEquals(NotEqualsT&& value) {
79 m_notEqualsHasBeenSet = true;
80 m_notEquals.emplace_back(std::forward<NotEqualsT>(value));
81 return *this;
82 }
84
86
90 inline long long GetGreaterThan() const { return m_greaterThan; }
91 inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; }
92 inline void SetGreaterThan(long long value) {
93 m_greaterThanHasBeenSet = true;
94 m_greaterThan = value;
95 }
96 inline Condition& WithGreaterThan(long long value) {
97 SetGreaterThan(value);
98 return *this;
99 }
101
103
107 inline long long GetGreaterThanOrEqual() const { return m_greaterThanOrEqual; }
108 inline bool GreaterThanOrEqualHasBeenSet() const { return m_greaterThanOrEqualHasBeenSet; }
109 inline void SetGreaterThanOrEqual(long long value) {
110 m_greaterThanOrEqualHasBeenSet = true;
111 m_greaterThanOrEqual = value;
112 }
113 inline Condition& WithGreaterThanOrEqual(long long value) {
115 return *this;
116 }
118
120
124 inline long long GetLessThan() const { return m_lessThan; }
125 inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; }
126 inline void SetLessThan(long long value) {
127 m_lessThanHasBeenSet = true;
128 m_lessThan = value;
129 }
130 inline Condition& WithLessThan(long long value) {
131 SetLessThan(value);
132 return *this;
133 }
135
137
141 inline long long GetLessThanOrEqual() const { return m_lessThanOrEqual; }
142 inline bool LessThanOrEqualHasBeenSet() const { return m_lessThanOrEqualHasBeenSet; }
143 inline void SetLessThanOrEqual(long long value) {
144 m_lessThanOrEqualHasBeenSet = true;
145 m_lessThanOrEqual = value;
146 }
147 inline Condition& WithLessThanOrEqual(long long value) {
148 SetLessThanOrEqual(value);
149 return *this;
150 }
152
154
159 inline const Aws::Vector<Aws::String>& GetMatches() const { return m_matches; }
160 inline bool MatchesHasBeenSet() const { return m_matchesHasBeenSet; }
161 template <typename MatchesT = Aws::Vector<Aws::String>>
162 void SetMatches(MatchesT&& value) {
163 m_matchesHasBeenSet = true;
164 m_matches = std::forward<MatchesT>(value);
165 }
166 template <typename MatchesT = Aws::Vector<Aws::String>>
167 Condition& WithMatches(MatchesT&& value) {
168 SetMatches(std::forward<MatchesT>(value));
169 return *this;
170 }
171 template <typename MatchesT = Aws::String>
172 Condition& AddMatches(MatchesT&& value) {
173 m_matchesHasBeenSet = true;
174 m_matches.emplace_back(std::forward<MatchesT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::Vector<Aws::String>& GetNotMatches() const { return m_notMatches; }
186 inline bool NotMatchesHasBeenSet() const { return m_notMatchesHasBeenSet; }
187 template <typename NotMatchesT = Aws::Vector<Aws::String>>
188 void SetNotMatches(NotMatchesT&& value) {
189 m_notMatchesHasBeenSet = true;
190 m_notMatches = std::forward<NotMatchesT>(value);
191 }
192 template <typename NotMatchesT = Aws::Vector<Aws::String>>
193 Condition& WithNotMatches(NotMatchesT&& value) {
194 SetNotMatches(std::forward<NotMatchesT>(value));
195 return *this;
196 }
197 template <typename NotMatchesT = Aws::String>
198 Condition& AddNotMatches(NotMatchesT&& value) {
199 m_notMatchesHasBeenSet = true;
200 m_notMatches.emplace_back(std::forward<NotMatchesT>(value));
201 return *this;
202 }
204 private:
206
207 Aws::Vector<Aws::String> m_notEquals;
208
209 long long m_greaterThan{0};
210
211 long long m_greaterThanOrEqual{0};
212
213 long long m_lessThan{0};
214
215 long long m_lessThanOrEqual{0};
216
217 Aws::Vector<Aws::String> m_matches;
218
219 Aws::Vector<Aws::String> m_notMatches;
220 bool m_equalsHasBeenSet = false;
221 bool m_notEqualsHasBeenSet = false;
222 bool m_greaterThanHasBeenSet = false;
223 bool m_greaterThanOrEqualHasBeenSet = false;
224 bool m_lessThanHasBeenSet = false;
225 bool m_lessThanOrEqualHasBeenSet = false;
226 bool m_matchesHasBeenSet = false;
227 bool m_notMatchesHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace GuardDuty
232} // namespace Aws
void SetNotMatches(NotMatchesT &&value)
Definition Condition.h:188
long long GetGreaterThan() const
Definition Condition.h:90
void SetMatches(MatchesT &&value)
Definition Condition.h:162
Condition & WithLessThan(long long value)
Definition Condition.h:130
Condition & AddEquals(EqualsT &&value)
Definition Condition.h:53
AWS_GUARDDUTY_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGreaterThan(long long value)
Definition Condition.h:92
const Aws::Vector< Aws::String > & GetNotEquals() const
Definition Condition.h:65
long long GetGreaterThanOrEqual() const
Definition Condition.h:107
Condition & AddNotEquals(NotEqualsT &&value)
Definition Condition.h:78
Condition & WithLessThanOrEqual(long long value)
Definition Condition.h:147
void SetEquals(EqualsT &&value)
Definition Condition.h:43
void SetLessThanOrEqual(long long value)
Definition Condition.h:143
long long GetLessThan() const
Definition Condition.h:124
Condition & AddMatches(MatchesT &&value)
Definition Condition.h:172
Condition & WithMatches(MatchesT &&value)
Definition Condition.h:167
const Aws::Vector< Aws::String > & GetNotMatches() const
Definition Condition.h:185
AWS_GUARDDUTY_API Condition()=default
Condition & WithNotMatches(NotMatchesT &&value)
Definition Condition.h:193
void SetNotEquals(NotEqualsT &&value)
Definition Condition.h:68
void SetLessThan(long long value)
Definition Condition.h:126
long long GetLessThanOrEqual() const
Definition Condition.h:141
const Aws::Vector< Aws::String > & GetEquals() const
Definition Condition.h:40
Condition & WithGreaterThan(long long value)
Definition Condition.h:96
Condition & WithNotEquals(NotEqualsT &&value)
Definition Condition.h:73
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & AddNotMatches(NotMatchesT &&value)
Definition Condition.h:198
Condition & WithEquals(EqualsT &&value)
Definition Condition.h:48
Condition & WithGreaterThanOrEqual(long long value)
Definition Condition.h:113
AWS_GUARDDUTY_API Condition(Aws::Utils::Json::JsonView jsonValue)
bool GreaterThanOrEqualHasBeenSet() const
Definition Condition.h:108
void SetGreaterThanOrEqual(long long value)
Definition Condition.h:109
const Aws::Vector< Aws::String > & GetMatches() const
Definition Condition.h:159
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue