AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SimpleScopeTerm.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10#include <aws/macie2/model/JobComparator.h>
11#include <aws/macie2/model/ScopeFilterKey.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2 {
23namespace Model {
24
32 public:
33 AWS_MACIE2_API SimpleScopeTerm() = default;
36 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
49 inline JobComparator GetComparator() const { return m_comparator; }
50 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
51 inline void SetComparator(JobComparator value) {
52 m_comparatorHasBeenSet = true;
53 m_comparator = value;
54 }
56 SetComparator(value);
57 return *this;
58 }
60
62
65 inline ScopeFilterKey GetKey() const { return m_key; }
66 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
67 inline void SetKey(ScopeFilterKey value) {
68 m_keyHasBeenSet = true;
69 m_key = value;
70 }
72 SetKey(value);
73 return *this;
74 }
76
78
95 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
96 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
97 template <typename ValuesT = Aws::Vector<Aws::String>>
98 void SetValues(ValuesT&& value) {
99 m_valuesHasBeenSet = true;
100 m_values = std::forward<ValuesT>(value);
101 }
102 template <typename ValuesT = Aws::Vector<Aws::String>>
103 SimpleScopeTerm& WithValues(ValuesT&& value) {
104 SetValues(std::forward<ValuesT>(value));
105 return *this;
106 }
107 template <typename ValuesT = Aws::String>
108 SimpleScopeTerm& AddValues(ValuesT&& value) {
109 m_valuesHasBeenSet = true;
110 m_values.emplace_back(std::forward<ValuesT>(value));
111 return *this;
112 }
114 private:
116
118
120 bool m_comparatorHasBeenSet = false;
121 bool m_keyHasBeenSet = false;
122 bool m_valuesHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Macie2
127} // namespace Aws
void SetComparator(JobComparator value)
SimpleScopeTerm & WithKey(ScopeFilterKey value)
AWS_MACIE2_API SimpleScopeTerm()=default
SimpleScopeTerm & WithComparator(JobComparator value)
void SetKey(ScopeFilterKey value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
SimpleScopeTerm & AddValues(ValuesT &&value)
AWS_MACIE2_API SimpleScopeTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleScopeTerm & WithValues(ValuesT &&value)
AWS_MACIE2_API SimpleScopeTerm(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue