AWS SDK for C++  1.9.108
AWS SDK for C++
Condition.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::Vector<Aws::String>& GetEquals() const{ return m_equals; }
46 
51  inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
52 
57  inline void SetEquals(const Aws::Vector<Aws::String>& value) { m_equalsHasBeenSet = true; m_equals = value; }
58 
63  inline void SetEquals(Aws::Vector<Aws::String>&& value) { m_equalsHasBeenSet = true; m_equals = std::move(value); }
64 
69  inline Condition& WithEquals(const Aws::Vector<Aws::String>& value) { SetEquals(value); return *this;}
70 
75  inline Condition& WithEquals(Aws::Vector<Aws::String>&& value) { SetEquals(std::move(value)); return *this;}
76 
81  inline Condition& AddEquals(const Aws::String& value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; }
82 
87  inline Condition& AddEquals(Aws::String&& value) { m_equalsHasBeenSet = true; m_equals.push_back(std::move(value)); return *this; }
88 
93  inline Condition& AddEquals(const char* value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; }
94 
95 
100  inline const Aws::Vector<Aws::String>& GetNotEquals() const{ return m_notEquals; }
101 
106  inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
107 
112  inline void SetNotEquals(const Aws::Vector<Aws::String>& value) { m_notEqualsHasBeenSet = true; m_notEquals = value; }
113 
118  inline void SetNotEquals(Aws::Vector<Aws::String>&& value) { m_notEqualsHasBeenSet = true; m_notEquals = std::move(value); }
119 
124  inline Condition& WithNotEquals(const Aws::Vector<Aws::String>& value) { SetNotEquals(value); return *this;}
125 
130  inline Condition& WithNotEquals(Aws::Vector<Aws::String>&& value) { SetNotEquals(std::move(value)); return *this;}
131 
136  inline Condition& AddNotEquals(const Aws::String& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; }
137 
142  inline Condition& AddNotEquals(Aws::String&& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(std::move(value)); return *this; }
143 
148  inline Condition& AddNotEquals(const char* value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; }
149 
150 
155  inline long long GetGreaterThan() const{ return m_greaterThan; }
156 
161  inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; }
162 
167  inline void SetGreaterThan(long long value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; }
168 
173  inline Condition& WithGreaterThan(long long value) { SetGreaterThan(value); return *this;}
174 
175 
180  inline long long GetGreaterThanOrEqual() const{ return m_greaterThanOrEqual; }
181 
186  inline bool GreaterThanOrEqualHasBeenSet() const { return m_greaterThanOrEqualHasBeenSet; }
187 
192  inline void SetGreaterThanOrEqual(long long value) { m_greaterThanOrEqualHasBeenSet = true; m_greaterThanOrEqual = value; }
193 
198  inline Condition& WithGreaterThanOrEqual(long long value) { SetGreaterThanOrEqual(value); return *this;}
199 
200 
205  inline long long GetLessThan() const{ return m_lessThan; }
206 
211  inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; }
212 
217  inline void SetLessThan(long long value) { m_lessThanHasBeenSet = true; m_lessThan = value; }
218 
223  inline Condition& WithLessThan(long long value) { SetLessThan(value); return *this;}
224 
225 
230  inline long long GetLessThanOrEqual() const{ return m_lessThanOrEqual; }
231 
236  inline bool LessThanOrEqualHasBeenSet() const { return m_lessThanOrEqualHasBeenSet; }
237 
242  inline void SetLessThanOrEqual(long long value) { m_lessThanOrEqualHasBeenSet = true; m_lessThanOrEqual = value; }
243 
248  inline Condition& WithLessThanOrEqual(long long value) { SetLessThanOrEqual(value); return *this;}
249 
250  private:
251 
252  Aws::Vector<Aws::String> m_equals;
253  bool m_equalsHasBeenSet;
254 
255  Aws::Vector<Aws::String> m_notEquals;
256  bool m_notEqualsHasBeenSet;
257 
258  long long m_greaterThan;
259  bool m_greaterThanHasBeenSet;
260 
261  long long m_greaterThanOrEqual;
262  bool m_greaterThanOrEqualHasBeenSet;
263 
264  long long m_lessThan;
265  bool m_lessThanHasBeenSet;
266 
267  long long m_lessThanOrEqual;
268  bool m_lessThanOrEqualHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace GuardDuty
273 } // namespace Aws
Aws::GuardDuty::Model::Condition::Condition
Condition()
Aws::GuardDuty::Model::Condition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Condition::AddNotEquals
Condition & AddNotEquals(const Aws::String &value)
Definition: Condition.h:136
Aws::GuardDuty::Model::Condition::GetLessThan
long long GetLessThan() const
Definition: Condition.h:205
Aws::GuardDuty::Model::Condition::SetLessThan
void SetLessThan(long long value)
Definition: Condition.h:217
Aws::GuardDuty::Model::Condition::WithLessThanOrEqual
Condition & WithLessThanOrEqual(long long value)
Definition: Condition.h:248
Aws::GuardDuty::Model::Condition::NotEqualsHasBeenSet
bool NotEqualsHasBeenSet() const
Definition: Condition.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::Condition::WithLessThan
Condition & WithLessThan(long long value)
Definition: Condition.h:223
AWSVector.h
Aws::GuardDuty::Model::Condition::EqualsHasBeenSet
bool EqualsHasBeenSet() const
Definition: Condition.h:51
Aws::GuardDuty::Model::Condition::operator=
Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Condition::WithNotEquals
Condition & WithNotEquals(const Aws::Vector< Aws::String > &value)
Definition: Condition.h:124
Aws::GuardDuty::Model::Condition::GreaterThanOrEqualHasBeenSet
bool GreaterThanOrEqualHasBeenSet() const
Definition: Condition.h:186
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Condition::Condition
Condition(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Condition::GetGreaterThan
long long GetGreaterThan() const
Definition: Condition.h:155
Aws::GuardDuty::Model::Condition::GetNotEquals
const Aws::Vector< Aws::String > & GetNotEquals() const
Definition: Condition.h:100
Aws::GuardDuty::Model::Condition::WithEquals
Condition & WithEquals(const Aws::Vector< Aws::String > &value)
Definition: Condition.h:69
Aws::GuardDuty::Model::Condition::SetNotEquals
void SetNotEquals(const Aws::Vector< Aws::String > &value)
Definition: Condition.h:112
Aws::GuardDuty::Model::Condition::GetGreaterThanOrEqual
long long GetGreaterThanOrEqual() const
Definition: Condition.h:180
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Condition::WithGreaterThanOrEqual
Condition & WithGreaterThanOrEqual(long long value)
Definition: Condition.h:198
Aws::GuardDuty::Model::Condition::SetNotEquals
void SetNotEquals(Aws::Vector< Aws::String > &&value)
Definition: Condition.h:118
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::Condition::AddNotEquals
Condition & AddNotEquals(Aws::String &&value)
Definition: Condition.h:142
Aws::GuardDuty::Model::Condition::GetLessThanOrEqual
long long GetLessThanOrEqual() const
Definition: Condition.h:230
Aws::GuardDuty::Model::Condition::WithGreaterThan
Condition & WithGreaterThan(long long value)
Definition: Condition.h:173
Aws::GuardDuty::Model::Condition::WithNotEquals
Condition & WithNotEquals(Aws::Vector< Aws::String > &&value)
Definition: Condition.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Condition::AddNotEquals
Condition & AddNotEquals(const char *value)
Definition: Condition.h:148
Aws::GuardDuty::Model::Condition::SetGreaterThanOrEqual
void SetGreaterThanOrEqual(long long value)
Definition: Condition.h:192
Aws::GuardDuty::Model::Condition::AddEquals
Condition & AddEquals(const char *value)
Definition: Condition.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Condition::SetLessThanOrEqual
void SetLessThanOrEqual(long long value)
Definition: Condition.h:242
Aws::GuardDuty::Model::Condition
Definition: Condition.h:33
Aws::GuardDuty::Model::Condition::LessThanHasBeenSet
bool LessThanHasBeenSet() const
Definition: Condition.h:211
Aws::GuardDuty::Model::Condition::GreaterThanHasBeenSet
bool GreaterThanHasBeenSet() const
Definition: Condition.h:161
Aws::GuardDuty::Model::Condition::SetEquals
void SetEquals(Aws::Vector< Aws::String > &&value)
Definition: Condition.h:63
Aws::GuardDuty::Model::Condition::SetEquals
void SetEquals(const Aws::Vector< Aws::String > &value)
Definition: Condition.h:57
Aws::GuardDuty::Model::Condition::WithEquals
Condition & WithEquals(Aws::Vector< Aws::String > &&value)
Definition: Condition.h:75
Aws::GuardDuty::Model::Condition::GetEquals
const Aws::Vector< Aws::String > & GetEquals() const
Definition: Condition.h:45
Aws::GuardDuty::Model::Condition::AddEquals
Condition & AddEquals(Aws::String &&value)
Definition: Condition.h:87
Aws::GuardDuty::Model::Condition::SetGreaterThan
void SetGreaterThan(long long value)
Definition: Condition.h:167
Aws::GuardDuty::Model::Condition::AddEquals
Condition & AddEquals(const Aws::String &value)
Definition: Condition.h:81
Aws::GuardDuty::Model::Condition::LessThanOrEqualHasBeenSet
bool LessThanOrEqualHasBeenSet() const
Definition: Condition.h:236