AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline const JobComparator& GetComparator() const{ return m_comparator; }
56 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
57 inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
58 inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
59 inline SimpleScopeTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;}
60 inline SimpleScopeTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;}
62
64
67 inline const ScopeFilterKey& GetKey() const{ return m_key; }
68 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
69 inline void SetKey(const ScopeFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
70 inline void SetKey(ScopeFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
71 inline SimpleScopeTerm& WithKey(const ScopeFilterKey& value) { SetKey(value); return *this;}
72 inline SimpleScopeTerm& WithKey(ScopeFilterKey&& value) { SetKey(std::move(value)); return *this;}
74
76
93 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
94 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
95 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
96 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
97 inline SimpleScopeTerm& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
98 inline SimpleScopeTerm& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
99 inline SimpleScopeTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
100 inline SimpleScopeTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
101 inline SimpleScopeTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
103 private:
104
105 JobComparator m_comparator;
106 bool m_comparatorHasBeenSet = false;
107
108 ScopeFilterKey m_key;
109 bool m_keyHasBeenSet = false;
110
112 bool m_valuesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Macie2
117} // namespace Aws
SimpleScopeTerm & WithComparator(JobComparator &&value)
SimpleScopeTerm & WithKey(ScopeFilterKey &&value)
SimpleScopeTerm & AddValues(Aws::String &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComparator(const JobComparator &value)
void SetValues(const Aws::Vector< Aws::String > &value)
void SetValues(Aws::Vector< Aws::String > &&value)
const JobComparator & GetComparator() const
const Aws::Vector< Aws::String > & GetValues() const
AWS_MACIE2_API SimpleScopeTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(const ScopeFilterKey &value)
void SetKey(ScopeFilterKey &&value)
const ScopeFilterKey & GetKey() const
SimpleScopeTerm & WithKey(const ScopeFilterKey &value)
SimpleScopeTerm & AddValues(const char *value)
AWS_MACIE2_API SimpleScopeTerm(Aws::Utils::Json::JsonView jsonValue)
void SetComparator(JobComparator &&value)
SimpleScopeTerm & WithComparator(const JobComparator &value)
SimpleScopeTerm & AddValues(const Aws::String &value)
SimpleScopeTerm & WithValues(const Aws::Vector< Aws::String > &value)
SimpleScopeTerm & WithValues(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue