AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename EqualsT = Aws::Vector<Aws::String>>
49 void SetEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals = std::forward<EqualsT>(value); }
50 template<typename EqualsT = Aws::Vector<Aws::String>>
51 Condition& WithEquals(EqualsT&& value) { SetEquals(std::forward<EqualsT>(value)); return *this;}
52 template<typename EqualsT = Aws::String>
53 Condition& AddEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals.emplace_back(std::forward<EqualsT>(value)); return *this; }
55
57
61 inline const Aws::Vector<Aws::String>& GetNotEquals() const { return m_notEquals; }
62 inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
63 template<typename NotEqualsT = Aws::Vector<Aws::String>>
64 void SetNotEquals(NotEqualsT&& value) { m_notEqualsHasBeenSet = true; m_notEquals = std::forward<NotEqualsT>(value); }
65 template<typename NotEqualsT = Aws::Vector<Aws::String>>
66 Condition& WithNotEquals(NotEqualsT&& value) { SetNotEquals(std::forward<NotEqualsT>(value)); return *this;}
67 template<typename NotEqualsT = Aws::String>
68 Condition& AddNotEquals(NotEqualsT&& value) { m_notEqualsHasBeenSet = true; m_notEquals.emplace_back(std::forward<NotEqualsT>(value)); return *this; }
70
72
76 inline long long GetGreaterThan() const { return m_greaterThan; }
77 inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; }
78 inline void SetGreaterThan(long long value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; }
79 inline Condition& WithGreaterThan(long long value) { SetGreaterThan(value); return *this;}
81
83
87 inline long long GetGreaterThanOrEqual() const { return m_greaterThanOrEqual; }
88 inline bool GreaterThanOrEqualHasBeenSet() const { return m_greaterThanOrEqualHasBeenSet; }
89 inline void SetGreaterThanOrEqual(long long value) { m_greaterThanOrEqualHasBeenSet = true; m_greaterThanOrEqual = value; }
90 inline Condition& WithGreaterThanOrEqual(long long value) { SetGreaterThanOrEqual(value); return *this;}
92
94
98 inline long long GetLessThan() const { return m_lessThan; }
99 inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; }
100 inline void SetLessThan(long long value) { m_lessThanHasBeenSet = true; m_lessThan = value; }
101 inline Condition& WithLessThan(long long value) { SetLessThan(value); return *this;}
103
105
109 inline long long GetLessThanOrEqual() const { return m_lessThanOrEqual; }
110 inline bool LessThanOrEqualHasBeenSet() const { return m_lessThanOrEqualHasBeenSet; }
111 inline void SetLessThanOrEqual(long long value) { m_lessThanOrEqualHasBeenSet = true; m_lessThanOrEqual = value; }
112 inline Condition& WithLessThanOrEqual(long long value) { SetLessThanOrEqual(value); return *this;}
114 private:
115
117 bool m_equalsHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_notEquals;
120 bool m_notEqualsHasBeenSet = false;
121
122 long long m_greaterThan{0};
123 bool m_greaterThanHasBeenSet = false;
124
125 long long m_greaterThanOrEqual{0};
126 bool m_greaterThanOrEqualHasBeenSet = false;
127
128 long long m_lessThan{0};
129 bool m_lessThanHasBeenSet = false;
130
131 long long m_lessThanOrEqual{0};
132 bool m_lessThanOrEqualHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace GuardDuty
137} // namespace Aws
long long GetGreaterThan() const
Definition Condition.h:76
Condition & WithLessThan(long long value)
Definition Condition.h:101
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:78
const Aws::Vector< Aws::String > & GetNotEquals() const
Definition Condition.h:61
long long GetGreaterThanOrEqual() const
Definition Condition.h:87
Condition & AddNotEquals(NotEqualsT &&value)
Definition Condition.h:68
Condition & WithLessThanOrEqual(long long value)
Definition Condition.h:112
void SetEquals(EqualsT &&value)
Definition Condition.h:49
void SetLessThanOrEqual(long long value)
Definition Condition.h:111
long long GetLessThan() const
Definition Condition.h:98
AWS_GUARDDUTY_API Condition()=default
void SetNotEquals(NotEqualsT &&value)
Definition Condition.h:64
void SetLessThan(long long value)
Definition Condition.h:100
long long GetLessThanOrEqual() const
Definition Condition.h:109
const Aws::Vector< Aws::String > & GetEquals() const
Definition Condition.h:46
Condition & WithGreaterThan(long long value)
Definition Condition.h:79
Condition & WithNotEquals(NotEqualsT &&value)
Definition Condition.h:66
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Condition & WithEquals(EqualsT &&value)
Definition Condition.h:51
Condition & WithGreaterThanOrEqual(long long value)
Definition Condition.h:90
AWS_GUARDDUTY_API Condition(Aws::Utils::Json::JsonView jsonValue)
bool GreaterThanOrEqualHasBeenSet() const
Definition Condition.h:88
void SetGreaterThanOrEqual(long long value)
Definition Condition.h:89
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue