AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SearchResourcesSimpleCriterion.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/SearchResourcesComparator.h>
11#include <aws/macie2/model/SearchResourcesSimpleCriterionKey.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
33 public:
34 AWS_MACIE2_API SearchResourcesSimpleCriterion() = default;
37 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline SearchResourcesComparator GetComparator() const { return m_comparator; }
45 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
47 m_comparatorHasBeenSet = true;
48 m_comparator = value;
49 }
51 SetComparator(value);
52 return *this;
53 }
55
57
60 inline SearchResourcesSimpleCriterionKey GetKey() const { return m_key; }
61 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
63 m_keyHasBeenSet = true;
64 m_key = value;
65 }
67 SetKey(value);
68 return *this;
69 }
71
73
92 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
93 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
94 template <typename ValuesT = Aws::Vector<Aws::String>>
95 void SetValues(ValuesT&& value) {
96 m_valuesHasBeenSet = true;
97 m_values = std::forward<ValuesT>(value);
98 }
99 template <typename ValuesT = Aws::Vector<Aws::String>>
101 SetValues(std::forward<ValuesT>(value));
102 return *this;
103 }
104 template <typename ValuesT = Aws::String>
106 m_valuesHasBeenSet = true;
107 m_values.emplace_back(std::forward<ValuesT>(value));
108 return *this;
109 }
111 private:
113
115
117 bool m_comparatorHasBeenSet = false;
118 bool m_keyHasBeenSet = false;
119 bool m_valuesHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Macie2
124} // namespace Aws
SearchResourcesSimpleCriterion & WithKey(SearchResourcesSimpleCriterionKey value)
AWS_MACIE2_API SearchResourcesSimpleCriterion(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API SearchResourcesSimpleCriterion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKey(SearchResourcesSimpleCriterionKey value)
SearchResourcesSimpleCriterion & AddValues(ValuesT &&value)
SearchResourcesSimpleCriterion & WithValues(ValuesT &&value)
SearchResourcesSimpleCriterion & WithComparator(SearchResourcesComparator value)
AWS_MACIE2_API SearchResourcesSimpleCriterion()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue