AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Criterion.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_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 AccessAnalyzer
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ACCESSANALYZER_API Criterion();
39 AWS_ACCESSANALYZER_API Criterion(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Criterion& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetEq() const{ return m_eq; }
49 inline bool EqHasBeenSet() const { return m_eqHasBeenSet; }
50 inline void SetEq(const Aws::Vector<Aws::String>& value) { m_eqHasBeenSet = true; m_eq = value; }
51 inline void SetEq(Aws::Vector<Aws::String>&& value) { m_eqHasBeenSet = true; m_eq = std::move(value); }
52 inline Criterion& WithEq(const Aws::Vector<Aws::String>& value) { SetEq(value); return *this;}
53 inline Criterion& WithEq(Aws::Vector<Aws::String>&& value) { SetEq(std::move(value)); return *this;}
54 inline Criterion& AddEq(const Aws::String& value) { m_eqHasBeenSet = true; m_eq.push_back(value); return *this; }
55 inline Criterion& AddEq(Aws::String&& value) { m_eqHasBeenSet = true; m_eq.push_back(std::move(value)); return *this; }
56 inline Criterion& AddEq(const char* value) { m_eqHasBeenSet = true; m_eq.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetNeq() const{ return m_neq; }
64 inline bool NeqHasBeenSet() const { return m_neqHasBeenSet; }
65 inline void SetNeq(const Aws::Vector<Aws::String>& value) { m_neqHasBeenSet = true; m_neq = value; }
66 inline void SetNeq(Aws::Vector<Aws::String>&& value) { m_neqHasBeenSet = true; m_neq = std::move(value); }
67 inline Criterion& WithNeq(const Aws::Vector<Aws::String>& value) { SetNeq(value); return *this;}
68 inline Criterion& WithNeq(Aws::Vector<Aws::String>&& value) { SetNeq(std::move(value)); return *this;}
69 inline Criterion& AddNeq(const Aws::String& value) { m_neqHasBeenSet = true; m_neq.push_back(value); return *this; }
70 inline Criterion& AddNeq(Aws::String&& value) { m_neqHasBeenSet = true; m_neq.push_back(std::move(value)); return *this; }
71 inline Criterion& AddNeq(const char* value) { m_neqHasBeenSet = true; m_neq.push_back(value); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetContains() const{ return m_contains; }
79 inline bool ContainsHasBeenSet() const { return m_containsHasBeenSet; }
80 inline void SetContains(const Aws::Vector<Aws::String>& value) { m_containsHasBeenSet = true; m_contains = value; }
81 inline void SetContains(Aws::Vector<Aws::String>&& value) { m_containsHasBeenSet = true; m_contains = std::move(value); }
82 inline Criterion& WithContains(const Aws::Vector<Aws::String>& value) { SetContains(value); return *this;}
83 inline Criterion& WithContains(Aws::Vector<Aws::String>&& value) { SetContains(std::move(value)); return *this;}
84 inline Criterion& AddContains(const Aws::String& value) { m_containsHasBeenSet = true; m_contains.push_back(value); return *this; }
85 inline Criterion& AddContains(Aws::String&& value) { m_containsHasBeenSet = true; m_contains.push_back(std::move(value)); return *this; }
86 inline Criterion& AddContains(const char* value) { m_containsHasBeenSet = true; m_contains.push_back(value); return *this; }
88
90
93 inline bool GetExists() const{ return m_exists; }
94 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
95 inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
96 inline Criterion& WithExists(bool value) { SetExists(value); return *this;}
98 private:
99
101 bool m_eqHasBeenSet = false;
102
104 bool m_neqHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_contains;
107 bool m_containsHasBeenSet = false;
108
109 bool m_exists;
110 bool m_existsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AccessAnalyzer
115} // namespace Aws
void SetContains(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:81
Criterion & AddNeq(Aws::String &&value)
Definition Criterion.h:70
Criterion & AddEq(Aws::String &&value)
Definition Criterion.h:55
Criterion & WithEq(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:53
void SetEq(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:51
Criterion & WithNeq(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:68
Criterion & AddEq(const char *value)
Definition Criterion.h:56
Criterion & AddContains(const Aws::String &value)
Definition Criterion.h:84
void SetNeq(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:65
Criterion & AddNeq(const char *value)
Definition Criterion.h:71
const Aws::Vector< Aws::String > & GetNeq() const
Definition Criterion.h:63
Criterion & WithContains(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:83
void SetNeq(Aws::Vector< Aws::String > &&value)
Definition Criterion.h:66
AWS_ACCESSANALYZER_API Criterion & operator=(Aws::Utils::Json::JsonView jsonValue)
Criterion & AddContains(const char *value)
Definition Criterion.h:86
Criterion & AddEq(const Aws::String &value)
Definition Criterion.h:54
Criterion & WithContains(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:82
void SetContains(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:80
Criterion & WithExists(bool value)
Definition Criterion.h:96
void SetEq(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:50
const Aws::Vector< Aws::String > & GetEq() const
Definition Criterion.h:48
Criterion & WithEq(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:52
Criterion & AddContains(Aws::String &&value)
Definition Criterion.h:85
Criterion & WithNeq(const Aws::Vector< Aws::String > &value)
Definition Criterion.h:67
AWS_ACCESSANALYZER_API Criterion()
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API Criterion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetContains() const
Definition Criterion.h:78
Criterion & AddNeq(const Aws::String &value)
Definition Criterion.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue