AWS SDK for C++  1.9.106
AWS SDK for C++
ListJobsFilterTerm.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 
37  {
38  public:
43 
44 
48  inline const JobComparator& GetComparator() const{ return m_comparator; }
49 
53  inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
54 
58  inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
59 
63  inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
64 
68  inline ListJobsFilterTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;}
69 
73  inline ListJobsFilterTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;}
74 
75 
79  inline const ListJobsFilterKey& GetKey() const{ return m_key; }
80 
84  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
85 
89  inline void SetKey(const ListJobsFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
90 
94  inline void SetKey(ListJobsFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
95 
99  inline ListJobsFilterTerm& WithKey(const ListJobsFilterKey& value) { SetKey(value); return *this;}
100 
104  inline ListJobsFilterTerm& WithKey(ListJobsFilterKey&& value) { SetKey(std::move(value)); return *this;}
105 
106 
110  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
111 
115  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
116 
120  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
121 
125  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
126 
130  inline ListJobsFilterTerm& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
131 
135  inline ListJobsFilterTerm& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
136 
140  inline ListJobsFilterTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
141 
145  inline ListJobsFilterTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
146 
150  inline ListJobsFilterTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
151 
152  private:
153 
154  JobComparator m_comparator;
155  bool m_comparatorHasBeenSet;
156 
157  ListJobsFilterKey m_key;
158  bool m_keyHasBeenSet;
159 
160  Aws::Vector<Aws::String> m_values;
161  bool m_valuesHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace Macie2
166 } // namespace Aws
Aws::Macie2::Model::ListJobsFilterTerm::WithComparator
ListJobsFilterTerm & WithComparator(JobComparator &&value)
Definition: ListJobsFilterTerm.h:73
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::ListJobsFilterTerm::SetComparator
void SetComparator(const JobComparator &value)
Definition: ListJobsFilterTerm.h:58
JobComparator.h
Macie2_EXPORTS.h
Aws::Macie2::Model::ListJobsFilterTerm::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: ListJobsFilterTerm.h:84
Aws::Macie2::Model::ListJobsFilterTerm::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: ListJobsFilterTerm.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::ListJobsFilterTerm::AddValues
ListJobsFilterTerm & AddValues(const char *value)
Definition: ListJobsFilterTerm.h:150
AWSVector.h
Aws::Macie2::Model::ListJobsFilterTerm::ComparatorHasBeenSet
bool ComparatorHasBeenSet() const
Definition: ListJobsFilterTerm.h:53
Aws::Macie2::Model::ListJobsFilterTerm::WithComparator
ListJobsFilterTerm & WithComparator(const JobComparator &value)
Definition: ListJobsFilterTerm.h:68
Aws::Macie2::Model::ListJobsFilterKey
ListJobsFilterKey
Definition: ListJobsFilterKey.h:17
Aws::Macie2::Model::ListJobsFilterTerm::ListJobsFilterTerm
ListJobsFilterTerm()
ListJobsFilterKey.h
Aws::Macie2::Model::ListJobsFilterTerm::SetKey
void SetKey(const ListJobsFilterKey &value)
Definition: ListJobsFilterTerm.h:89
Aws::Macie2::Model::ListJobsFilterTerm::SetKey
void SetKey(ListJobsFilterKey &&value)
Definition: ListJobsFilterTerm.h:94
Aws::Macie2::Model::ListJobsFilterTerm::operator=
ListJobsFilterTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::ListJobsFilterTerm::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: ListJobsFilterTerm.h:125
Aws::Macie2::Model::ListJobsFilterTerm::WithKey
ListJobsFilterTerm & WithKey(ListJobsFilterKey &&value)
Definition: ListJobsFilterTerm.h:104
Aws::Macie2::Model::ListJobsFilterTerm::AddValues
ListJobsFilterTerm & AddValues(const Aws::String &value)
Definition: ListJobsFilterTerm.h:140
Aws::Macie2::Model::ListJobsFilterTerm::AddValues
ListJobsFilterTerm & AddValues(Aws::String &&value)
Definition: ListJobsFilterTerm.h:145
Aws::Macie2::Model::ListJobsFilterTerm::WithValues
ListJobsFilterTerm & WithValues(Aws::Vector< Aws::String > &&value)
Definition: ListJobsFilterTerm.h:135
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::ListJobsFilterTerm::GetKey
const ListJobsFilterKey & GetKey() const
Definition: ListJobsFilterTerm.h:79
Aws::Macie2::Model::ListJobsFilterTerm::SetComparator
void SetComparator(JobComparator &&value)
Definition: ListJobsFilterTerm.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::ListJobsFilterTerm::WithKey
ListJobsFilterTerm & WithKey(const ListJobsFilterKey &value)
Definition: ListJobsFilterTerm.h:99
Aws::Macie2::Model::ListJobsFilterTerm::GetComparator
const JobComparator & GetComparator() const
Definition: ListJobsFilterTerm.h:48
Aws::Macie2::Model::JobComparator
JobComparator
Definition: JobComparator.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::ListJobsFilterTerm::ListJobsFilterTerm
ListJobsFilterTerm(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::ListJobsFilterTerm::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::ListJobsFilterTerm::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: ListJobsFilterTerm.h:115
Aws::Macie2::Model::ListJobsFilterTerm::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: ListJobsFilterTerm.h:110
Aws::Macie2::Model::ListJobsFilterTerm::WithValues
ListJobsFilterTerm & WithValues(const Aws::Vector< Aws::String > &value)
Definition: ListJobsFilterTerm.h:130
Aws::Macie2::Model::ListJobsFilterTerm
Definition: ListJobsFilterTerm.h:37