AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Criterion.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
31class Criterion {
32 public:
33 AWS_ACCESSANALYZER_API Criterion() = default;
34 AWS_ACCESSANALYZER_API Criterion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API Criterion& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetEq() const { return m_eq; }
43 inline bool EqHasBeenSet() const { return m_eqHasBeenSet; }
44 template <typename EqT = Aws::Vector<Aws::String>>
45 void SetEq(EqT&& value) {
46 m_eqHasBeenSet = true;
47 m_eq = std::forward<EqT>(value);
48 }
49 template <typename EqT = Aws::Vector<Aws::String>>
50 Criterion& WithEq(EqT&& value) {
51 SetEq(std::forward<EqT>(value));
52 return *this;
53 }
54 template <typename EqT = Aws::String>
55 Criterion& AddEq(EqT&& value) {
56 m_eqHasBeenSet = true;
57 m_eq.emplace_back(std::forward<EqT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetNeq() const { return m_neq; }
67 inline bool NeqHasBeenSet() const { return m_neqHasBeenSet; }
68 template <typename NeqT = Aws::Vector<Aws::String>>
69 void SetNeq(NeqT&& value) {
70 m_neqHasBeenSet = true;
71 m_neq = std::forward<NeqT>(value);
72 }
73 template <typename NeqT = Aws::Vector<Aws::String>>
74 Criterion& WithNeq(NeqT&& value) {
75 SetNeq(std::forward<NeqT>(value));
76 return *this;
77 }
78 template <typename NeqT = Aws::String>
79 Criterion& AddNeq(NeqT&& value) {
80 m_neqHasBeenSet = true;
81 m_neq.emplace_back(std::forward<NeqT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetContains() const { return m_contains; }
91 inline bool ContainsHasBeenSet() const { return m_containsHasBeenSet; }
92 template <typename ContainsT = Aws::Vector<Aws::String>>
93 void SetContains(ContainsT&& value) {
94 m_containsHasBeenSet = true;
95 m_contains = std::forward<ContainsT>(value);
96 }
97 template <typename ContainsT = Aws::Vector<Aws::String>>
98 Criterion& WithContains(ContainsT&& value) {
99 SetContains(std::forward<ContainsT>(value));
100 return *this;
101 }
102 template <typename ContainsT = Aws::String>
103 Criterion& AddContains(ContainsT&& value) {
104 m_containsHasBeenSet = true;
105 m_contains.emplace_back(std::forward<ContainsT>(value));
106 return *this;
107 }
109
111
114 inline bool GetExists() const { return m_exists; }
115 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
116 inline void SetExists(bool value) {
117 m_existsHasBeenSet = true;
118 m_exists = value;
119 }
120 inline Criterion& WithExists(bool value) {
121 SetExists(value);
122 return *this;
123 }
125 private:
127
129
130 Aws::Vector<Aws::String> m_contains;
131
132 bool m_exists{false};
133 bool m_eqHasBeenSet = false;
134 bool m_neqHasBeenSet = false;
135 bool m_containsHasBeenSet = false;
136 bool m_existsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace AccessAnalyzer
141} // namespace Aws
Criterion & AddEq(EqT &&value)
Definition Criterion.h:55
Criterion & WithContains(ContainsT &&value)
Definition Criterion.h:98
const Aws::Vector< Aws::String > & GetNeq() const
Definition Criterion.h:66
AWS_ACCESSANALYZER_API Criterion & operator=(Aws::Utils::Json::JsonView jsonValue)
Criterion & WithNeq(NeqT &&value)
Definition Criterion.h:74
AWS_ACCESSANALYZER_API Criterion()=default
Criterion & WithExists(bool value)
Definition Criterion.h:120
Criterion & AddNeq(NeqT &&value)
Definition Criterion.h:79
const Aws::Vector< Aws::String > & GetEq() const
Definition Criterion.h:42
Criterion & WithEq(EqT &&value)
Definition Criterion.h:50
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:90
void SetContains(ContainsT &&value)
Definition Criterion.h:93
Criterion & AddContains(ContainsT &&value)
Definition Criterion.h:103
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue