AWS SDK for C++  1.9.108
AWS SDK for C++
SimpleScopeTerm.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Macie2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
51  inline const JobComparator& GetComparator() const{ return m_comparator; }
52 
60  inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
61 
69  inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
70 
78  inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
79 
87  inline SimpleScopeTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;}
88 
96  inline SimpleScopeTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;}
97 
98 
102  inline const ScopeFilterKey& GetKey() const{ return m_key; }
103 
107  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
108 
112  inline void SetKey(const ScopeFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
113 
117  inline void SetKey(ScopeFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
118 
122  inline SimpleScopeTerm& WithKey(const ScopeFilterKey& value) { SetKey(value); return *this;}
123 
127  inline SimpleScopeTerm& WithKey(ScopeFilterKey&& value) { SetKey(std::move(value)); return *this;}
128 
129 
147  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
148 
166  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
167 
185  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
186 
204  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
205 
223  inline SimpleScopeTerm& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
224 
242  inline SimpleScopeTerm& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
243 
261  inline SimpleScopeTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
262 
280  inline SimpleScopeTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
281 
299  inline SimpleScopeTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
300 
301  private:
302 
303  JobComparator m_comparator;
304  bool m_comparatorHasBeenSet;
305 
306  ScopeFilterKey m_key;
307  bool m_keyHasBeenSet;
308 
309  Aws::Vector<Aws::String> m_values;
310  bool m_valuesHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace Macie2
315 } // namespace Aws
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::SimpleScopeTerm::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::SimpleScopeTerm::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: SimpleScopeTerm.h:204
Aws::Macie2::Model::SimpleScopeTerm::SimpleScopeTerm
SimpleScopeTerm()
JobComparator.h
Aws::Macie2::Model::SimpleScopeTerm::WithKey
SimpleScopeTerm & WithKey(ScopeFilterKey &&value)
Definition: SimpleScopeTerm.h:127
ScopeFilterKey.h
Aws::Macie2::Model::SimpleScopeTerm::AddValues
SimpleScopeTerm & AddValues(const char *value)
Definition: SimpleScopeTerm.h:299
Aws::Macie2::Model::SimpleScopeTerm::GetComparator
const JobComparator & GetComparator() const
Definition: SimpleScopeTerm.h:51
Macie2_EXPORTS.h
Aws::Macie2::Model::SimpleScopeTerm::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: SimpleScopeTerm.h:185
Aws::Macie2::Model::SimpleScopeTerm::ComparatorHasBeenSet
bool ComparatorHasBeenSet() const
Definition: SimpleScopeTerm.h:60
Aws::Macie2::Model::SimpleScopeTerm::WithValues
SimpleScopeTerm & WithValues(const Aws::Vector< Aws::String > &value)
Definition: SimpleScopeTerm.h:223
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::SimpleScopeTerm::SetKey
void SetKey(const ScopeFilterKey &value)
Definition: SimpleScopeTerm.h:112
Aws::Macie2::Model::SimpleScopeTerm::SimpleScopeTerm
SimpleScopeTerm(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::SimpleScopeTerm::WithComparator
SimpleScopeTerm & WithComparator(JobComparator &&value)
Definition: SimpleScopeTerm.h:96
Aws::Macie2::Model::SimpleScopeTerm::AddValues
SimpleScopeTerm & AddValues(Aws::String &&value)
Definition: SimpleScopeTerm.h:280
AWSVector.h
Aws::Macie2::Model::SimpleScopeTerm::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: SimpleScopeTerm.h:107
Aws::Macie2::Model::SimpleScopeTerm
Definition: SimpleScopeTerm.h:36
Aws::Macie2::Model::SimpleScopeTerm::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: SimpleScopeTerm.h:147
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::SimpleScopeTerm::SetComparator
void SetComparator(const JobComparator &value)
Definition: SimpleScopeTerm.h:69
Aws::Macie2::Model::ScopeFilterKey
ScopeFilterKey
Definition: ScopeFilterKey.h:17
Aws::Macie2::Model::SimpleScopeTerm::AddValues
SimpleScopeTerm & AddValues(const Aws::String &value)
Definition: SimpleScopeTerm.h:261
Aws::Macie2::Model::SimpleScopeTerm::WithComparator
SimpleScopeTerm & WithComparator(const JobComparator &value)
Definition: SimpleScopeTerm.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::SimpleScopeTerm::WithKey
SimpleScopeTerm & WithKey(const ScopeFilterKey &value)
Definition: SimpleScopeTerm.h:122
Aws::Macie2::Model::JobComparator
JobComparator
Definition: JobComparator.h:17
Aws::Macie2::Model::SimpleScopeTerm::GetKey
const ScopeFilterKey & GetKey() const
Definition: SimpleScopeTerm.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::SimpleScopeTerm::SetComparator
void SetComparator(JobComparator &&value)
Definition: SimpleScopeTerm.h:78
Aws::Macie2::Model::SimpleScopeTerm::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: SimpleScopeTerm.h:166
Aws::Macie2::Model::SimpleScopeTerm::SetKey
void SetKey(ScopeFilterKey &&value)
Definition: SimpleScopeTerm.h:117
Aws::Macie2::Model::SimpleScopeTerm::WithValues
SimpleScopeTerm & WithValues(Aws::Vector< Aws::String > &&value)
Definition: SimpleScopeTerm.h:242
Aws::Macie2::Model::SimpleScopeTerm::operator=
SimpleScopeTerm & operator=(Aws::Utils::Json::JsonView jsonValue)