AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GUARDDUTY_API Condition();
36 AWS_GUARDDUTY_API Condition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Aws::String>& GetEquals() const{ return m_equals; }
47 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
48 inline void SetEquals(const Aws::Vector<Aws::String>& value) { m_equalsHasBeenSet = true; m_equals = value; }
49 inline void SetEquals(Aws::Vector<Aws::String>&& value) { m_equalsHasBeenSet = true; m_equals = std::move(value); }
50 inline Condition& WithEquals(const Aws::Vector<Aws::String>& value) { SetEquals(value); return *this;}
51 inline Condition& WithEquals(Aws::Vector<Aws::String>&& value) { SetEquals(std::move(value)); return *this;}
52 inline Condition& AddEquals(const Aws::String& value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; }
53 inline Condition& AddEquals(Aws::String&& value) { m_equalsHasBeenSet = true; m_equals.push_back(std::move(value)); return *this; }
54 inline Condition& AddEquals(const char* value) { m_equalsHasBeenSet = true; m_equals.push_back(value); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetNotEquals() const{ return m_notEquals; }
63 inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
64 inline void SetNotEquals(const Aws::Vector<Aws::String>& value) { m_notEqualsHasBeenSet = true; m_notEquals = value; }
65 inline void SetNotEquals(Aws::Vector<Aws::String>&& value) { m_notEqualsHasBeenSet = true; m_notEquals = std::move(value); }
66 inline Condition& WithNotEquals(const Aws::Vector<Aws::String>& value) { SetNotEquals(value); return *this;}
67 inline Condition& WithNotEquals(Aws::Vector<Aws::String>&& value) { SetNotEquals(std::move(value)); return *this;}
68 inline Condition& AddNotEquals(const Aws::String& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; }
69 inline Condition& AddNotEquals(Aws::String&& value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(std::move(value)); return *this; }
70 inline Condition& AddNotEquals(const char* value) { m_notEqualsHasBeenSet = true; m_notEquals.push_back(value); return *this; }
72
74
78 inline long long GetGreaterThan() const{ return m_greaterThan; }
79 inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; }
80 inline void SetGreaterThan(long long value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; }
81 inline Condition& WithGreaterThan(long long value) { SetGreaterThan(value); return *this;}
83
85
89 inline long long GetGreaterThanOrEqual() const{ return m_greaterThanOrEqual; }
90 inline bool GreaterThanOrEqualHasBeenSet() const { return m_greaterThanOrEqualHasBeenSet; }
91 inline void SetGreaterThanOrEqual(long long value) { m_greaterThanOrEqualHasBeenSet = true; m_greaterThanOrEqual = value; }
92 inline Condition& WithGreaterThanOrEqual(long long value) { SetGreaterThanOrEqual(value); return *this;}
94
96
100 inline long long GetLessThan() const{ return m_lessThan; }
101 inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; }
102 inline void SetLessThan(long long value) { m_lessThanHasBeenSet = true; m_lessThan = value; }
103 inline Condition& WithLessThan(long long value) { SetLessThan(value); return *this;}
105
107
111 inline long long GetLessThanOrEqual() const{ return m_lessThanOrEqual; }
112 inline bool LessThanOrEqualHasBeenSet() const { return m_lessThanOrEqualHasBeenSet; }
113 inline void SetLessThanOrEqual(long long value) { m_lessThanOrEqualHasBeenSet = true; m_lessThanOrEqual = value; }
114 inline Condition& WithLessThanOrEqual(long long value) { SetLessThanOrEqual(value); return *this;}
116 private:
117
119 bool m_equalsHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_notEquals;
122 bool m_notEqualsHasBeenSet = false;
123
124 long long m_greaterThan;
125 bool m_greaterThanHasBeenSet = false;
126
127 long long m_greaterThanOrEqual;
128 bool m_greaterThanOrEqualHasBeenSet = false;
129
130 long long m_lessThan;
131 bool m_lessThanHasBeenSet = false;
132
133 long long m_lessThanOrEqual;
134 bool m_lessThanOrEqualHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace GuardDuty
139} // namespace Aws
long long GetGreaterThan() const
Definition Condition.h:78
Condition & WithEquals(Aws::Vector< Aws::String > &&value)
Definition Condition.h:51
Condition & WithLessThan(long long value)
Definition Condition.h:103
AWS_GUARDDUTY_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGreaterThan(long long value)
Definition Condition.h:80
AWS_GUARDDUTY_API Condition()
Condition & AddEquals(const Aws::String &value)
Definition Condition.h:52
void SetEquals(const Aws::Vector< Aws::String > &value)
Definition Condition.h:48
const Aws::Vector< Aws::String > & GetNotEquals() const
Definition Condition.h:62
long long GetGreaterThanOrEqual() const
Definition Condition.h:89
Condition & WithLessThanOrEqual(long long value)
Definition Condition.h:114
Condition & AddEquals(const char *value)
Definition Condition.h:54
Condition & AddNotEquals(Aws::String &&value)
Definition Condition.h:69
void SetLessThanOrEqual(long long value)
Definition Condition.h:113
Condition & AddNotEquals(const Aws::String &value)
Definition Condition.h:68
long long GetLessThan() const
Definition Condition.h:100
void SetEquals(Aws::Vector< Aws::String > &&value)
Definition Condition.h:49
Condition & AddNotEquals(const char *value)
Definition Condition.h:70
Condition & WithNotEquals(const Aws::Vector< Aws::String > &value)
Definition Condition.h:66
Condition & AddEquals(Aws::String &&value)
Definition Condition.h:53
void SetLessThan(long long value)
Definition Condition.h:102
Condition & WithEquals(const Aws::Vector< Aws::String > &value)
Definition Condition.h:50
long long GetLessThanOrEqual() const
Definition Condition.h:111
const Aws::Vector< Aws::String > & GetEquals() const
Definition Condition.h:46
Condition & WithGreaterThan(long long value)
Definition Condition.h:81
Condition & WithNotEquals(Aws::Vector< Aws::String > &&value)
Definition Condition.h:67
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & WithGreaterThanOrEqual(long long value)
Definition Condition.h:92
void SetNotEquals(const Aws::Vector< Aws::String > &value)
Definition Condition.h:64
AWS_GUARDDUTY_API Condition(Aws::Utils::Json::JsonView jsonValue)
bool GreaterThanOrEqualHasBeenSet() const
Definition Condition.h:90
void SetGreaterThanOrEqual(long long value)
Definition Condition.h:91
void SetNotEquals(Aws::Vector< Aws::String > &&value)
Definition Condition.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue