AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SimpleCriterionForJob.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/JobComparator.h>
9#include <aws/macie2/model/SimpleCriterionKeyForJob.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 SimpleCriterionForJob() = default;
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline JobComparator GetComparator() const { return m_comparator; }
50 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
51 inline void SetComparator(JobComparator value) { m_comparatorHasBeenSet = true; m_comparator = value; }
52 inline SimpleCriterionForJob& WithComparator(JobComparator value) { SetComparator(value); return *this;}
54
56
59 inline SimpleCriterionKeyForJob GetKey() const { return m_key; }
60 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 inline void SetKey(SimpleCriterionKeyForJob value) { m_keyHasBeenSet = true; m_key = value; }
62 inline SimpleCriterionForJob& WithKey(SimpleCriterionKeyForJob value) { SetKey(value); return *this;}
64
66
82 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
83 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
84 template<typename ValuesT = Aws::Vector<Aws::String>>
85 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
86 template<typename ValuesT = Aws::Vector<Aws::String>>
87 SimpleCriterionForJob& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
88 template<typename ValuesT = Aws::String>
89 SimpleCriterionForJob& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
91 private:
92
94 bool m_comparatorHasBeenSet = false;
95
97 bool m_keyHasBeenSet = false;
98
100 bool m_valuesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Macie2
105} // 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