AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SimpleScopeTerm.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/JobComparator.h>
9#include <aws/macie2/model/ScopeFilterKey.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Macie2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MACIE2_API SimpleScopeTerm() = default;
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline JobComparator GetComparator() const { return m_comparator; }
56 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
57 inline void SetComparator(JobComparator value) { m_comparatorHasBeenSet = true; m_comparator = value; }
58 inline SimpleScopeTerm& WithComparator(JobComparator value) { SetComparator(value); return *this;}
60
62
65 inline ScopeFilterKey GetKey() const { return m_key; }
66 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
67 inline void SetKey(ScopeFilterKey value) { m_keyHasBeenSet = true; m_key = value; }
68 inline SimpleScopeTerm& WithKey(ScopeFilterKey value) { SetKey(value); return *this;}
70
72
89 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
90 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
91 template<typename ValuesT = Aws::Vector<Aws::String>>
92 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
93 template<typename ValuesT = Aws::Vector<Aws::String>>
94 SimpleScopeTerm& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
95 template<typename ValuesT = Aws::String>
96 SimpleScopeTerm& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
98 private:
99
101 bool m_comparatorHasBeenSet = false;
102
104 bool m_keyHasBeenSet = false;
105
107 bool m_valuesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Macie2
112} // 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