AWS SDK for C++  1.8.95
AWS SDK for C++
Criterion.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 AccessAnalyzer
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Criterion();
38  Criterion& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetContains() const{ return m_contains; }
46 
50  inline bool ContainsHasBeenSet() const { return m_containsHasBeenSet; }
51 
55  inline void SetContains(const Aws::Vector<Aws::String>& value) { m_containsHasBeenSet = true; m_contains = value; }
56 
60  inline void SetContains(Aws::Vector<Aws::String>&& value) { m_containsHasBeenSet = true; m_contains = std::move(value); }
61 
65  inline Criterion& WithContains(const Aws::Vector<Aws::String>& value) { SetContains(value); return *this;}
66 
70  inline Criterion& WithContains(Aws::Vector<Aws::String>&& value) { SetContains(std::move(value)); return *this;}
71 
75  inline Criterion& AddContains(const Aws::String& value) { m_containsHasBeenSet = true; m_contains.push_back(value); return *this; }
76 
80  inline Criterion& AddContains(Aws::String&& value) { m_containsHasBeenSet = true; m_contains.push_back(std::move(value)); return *this; }
81 
85  inline Criterion& AddContains(const char* value) { m_containsHasBeenSet = true; m_contains.push_back(value); return *this; }
86 
87 
91  inline const Aws::Vector<Aws::String>& GetEq() const{ return m_eq; }
92 
96  inline bool EqHasBeenSet() const { return m_eqHasBeenSet; }
97 
101  inline void SetEq(const Aws::Vector<Aws::String>& value) { m_eqHasBeenSet = true; m_eq = value; }
102 
106  inline void SetEq(Aws::Vector<Aws::String>&& value) { m_eqHasBeenSet = true; m_eq = std::move(value); }
107 
111  inline Criterion& WithEq(const Aws::Vector<Aws::String>& value) { SetEq(value); return *this;}
112 
116  inline Criterion& WithEq(Aws::Vector<Aws::String>&& value) { SetEq(std::move(value)); return *this;}
117 
121  inline Criterion& AddEq(const Aws::String& value) { m_eqHasBeenSet = true; m_eq.push_back(value); return *this; }
122 
126  inline Criterion& AddEq(Aws::String&& value) { m_eqHasBeenSet = true; m_eq.push_back(std::move(value)); return *this; }
127 
131  inline Criterion& AddEq(const char* value) { m_eqHasBeenSet = true; m_eq.push_back(value); return *this; }
132 
133 
137  inline bool GetExists() const{ return m_exists; }
138 
142  inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
143 
147  inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
148 
152  inline Criterion& WithExists(bool value) { SetExists(value); return *this;}
153 
154 
158  inline const Aws::Vector<Aws::String>& GetNeq() const{ return m_neq; }
159 
163  inline bool NeqHasBeenSet() const { return m_neqHasBeenSet; }
164 
168  inline void SetNeq(const Aws::Vector<Aws::String>& value) { m_neqHasBeenSet = true; m_neq = value; }
169 
173  inline void SetNeq(Aws::Vector<Aws::String>&& value) { m_neqHasBeenSet = true; m_neq = std::move(value); }
174 
178  inline Criterion& WithNeq(const Aws::Vector<Aws::String>& value) { SetNeq(value); return *this;}
179 
183  inline Criterion& WithNeq(Aws::Vector<Aws::String>&& value) { SetNeq(std::move(value)); return *this;}
184 
188  inline Criterion& AddNeq(const Aws::String& value) { m_neqHasBeenSet = true; m_neq.push_back(value); return *this; }
189 
193  inline Criterion& AddNeq(Aws::String&& value) { m_neqHasBeenSet = true; m_neq.push_back(std::move(value)); return *this; }
194 
198  inline Criterion& AddNeq(const char* value) { m_neqHasBeenSet = true; m_neq.push_back(value); return *this; }
199 
200  private:
201 
202  Aws::Vector<Aws::String> m_contains;
203  bool m_containsHasBeenSet;
204 
206  bool m_eqHasBeenSet;
207 
208  bool m_exists;
209  bool m_existsHasBeenSet;
210 
212  bool m_neqHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace AccessAnalyzer
217 } // namespace Aws
Criterion & AddContains(const Aws::String &value)
Definition: Criterion.h:75
Criterion & WithContains(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:65
const Aws::Vector< Aws::String > & GetEq() const
Definition: Criterion.h:91
Criterion & AddEq(const char *value)
Definition: Criterion.h:131
Criterion & AddContains(Aws::String &&value)
Definition: Criterion.h:80
Criterion & AddContains(const char *value)
Definition: Criterion.h:85
Criterion & AddEq(const Aws::String &value)
Definition: Criterion.h:121
void SetNeq(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:173
Criterion & AddNeq(const Aws::String &value)
Definition: Criterion.h:188
void SetNeq(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:168
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetEq(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:101
Criterion & WithNeq(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:183
#define AWS_ACCESSANALYZER_API
const Aws::Vector< Aws::String > & GetNeq() const
Definition: Criterion.h:158
void SetContains(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:60
Criterion & AddEq(Aws::String &&value)
Definition: Criterion.h:126
Criterion & WithNeq(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:178
Criterion & WithEq(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:116
Criterion & WithContains(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:70
Criterion & WithExists(bool value)
Definition: Criterion.h:152
Criterion & WithEq(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEq(Aws::Vector< Aws::String > &&value)
Definition: Criterion.h:106
void SetContains(const Aws::Vector< Aws::String > &value)
Definition: Criterion.h:55
Criterion & AddNeq(const char *value)
Definition: Criterion.h:198
const Aws::Vector< Aws::String > & GetContains() const
Definition: Criterion.h:45
Criterion & AddNeq(Aws::String &&value)
Definition: Criterion.h:193