AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
SimpleCriterionForJob.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/SimpleCriterionKeyForJob.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 SimpleCriterionForJob() = default;
36 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline JobComparator GetComparator() const { return m_comparator; }
44 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
45 inline void SetComparator(JobComparator value) {
46 m_comparatorHasBeenSet = true;
47 m_comparator = value;
48 }
50 SetComparator(value);
51 return *this;
52 }
54
56
59 inline SimpleCriterionKeyForJob GetKey() const { return m_key; }
60 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 inline void SetKey(SimpleCriterionKeyForJob value) {
62 m_keyHasBeenSet = true;
63 m_key = value;
64 }
66 SetKey(value);
67 return *this;
68 }
70
72
88 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
89 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
90 template <typename ValuesT = Aws::Vector<Aws::String>>
91 void SetValues(ValuesT&& value) {
92 m_valuesHasBeenSet = true;
93 m_values = std::forward<ValuesT>(value);
94 }
95 template <typename ValuesT = Aws::Vector<Aws::String>>
97 SetValues(std::forward<ValuesT>(value));
98 return *this;
99 }
100 template <typename ValuesT = Aws::String>
102 m_valuesHasBeenSet = true;
103 m_values.emplace_back(std::forward<ValuesT>(value));
104 return *this;
105 }
107 private:
109
111
113 bool m_comparatorHasBeenSet = false;
114 bool m_keyHasBeenSet = false;
115 bool m_valuesHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Macie2
120} // namespace Aws
SimpleCriterionKeyForJob GetKey() const
SimpleCriterionForJob & WithKey(SimpleCriterionKeyForJob value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKey(SimpleCriterionKeyForJob value)
SimpleCriterionForJob & AddValues(ValuesT &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_MACIE2_API SimpleCriterionForJob(Aws::Utils::Json::JsonView jsonValue)
SimpleCriterionForJob & WithValues(ValuesT &&value)
AWS_MACIE2_API SimpleCriterionForJob()=default
SimpleCriterionForJob & WithComparator(JobComparator value)
AWS_MACIE2_API SimpleCriterionForJob & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue