AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchResourcesSimpleCriterion.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/SearchResourcesComparator.h>
9#include <aws/macie2/model/SearchResourcesSimpleCriterionKey.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
37 {
38 public:
42 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const SearchResourcesComparator& GetComparator() const{ return m_comparator; }
51 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
52 inline void SetComparator(const SearchResourcesComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
53 inline void SetComparator(SearchResourcesComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
55 inline SearchResourcesSimpleCriterion& WithComparator(SearchResourcesComparator&& value) { SetComparator(std::move(value)); return *this;}
57
59
62 inline const SearchResourcesSimpleCriterionKey& GetKey() const{ return m_key; }
63 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 inline void SetKey(const SearchResourcesSimpleCriterionKey& value) { m_keyHasBeenSet = true; m_key = value; }
65 inline void SetKey(SearchResourcesSimpleCriterionKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
67 inline SearchResourcesSimpleCriterion& WithKey(SearchResourcesSimpleCriterionKey&& value) { SetKey(std::move(value)); return *this;}
69
71
90 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
91 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
92 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
93 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
94 inline SearchResourcesSimpleCriterion& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
95 inline SearchResourcesSimpleCriterion& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
96 inline SearchResourcesSimpleCriterion& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
97 inline SearchResourcesSimpleCriterion& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
98 inline SearchResourcesSimpleCriterion& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
100 private:
101
102 SearchResourcesComparator m_comparator;
103 bool m_comparatorHasBeenSet = false;
104
106 bool m_keyHasBeenSet = false;
107
109 bool m_valuesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Macie2
114} // namespace Aws
SearchResourcesSimpleCriterion & WithComparator(SearchResourcesComparator &&value)
SearchResourcesSimpleCriterion & WithValues(const Aws::Vector< Aws::String > &value)
AWS_MACIE2_API SearchResourcesSimpleCriterion(Aws::Utils::Json::JsonView jsonValue)
SearchResourcesSimpleCriterion & WithComparator(const SearchResourcesComparator &value)
AWS_MACIE2_API SearchResourcesSimpleCriterion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
SearchResourcesSimpleCriterion & WithKey(SearchResourcesSimpleCriterionKey &&value)
SearchResourcesSimpleCriterion & WithValues(Aws::Vector< Aws::String > &&value)
void SetKey(SearchResourcesSimpleCriterionKey &&value)
void SetKey(const SearchResourcesSimpleCriterionKey &value)
void SetValues(const Aws::Vector< Aws::String > &value)
SearchResourcesSimpleCriterion & WithKey(const SearchResourcesSimpleCriterionKey &value)
SearchResourcesSimpleCriterion & AddValues(const char *value)
void SetComparator(const SearchResourcesComparator &value)
const SearchResourcesSimpleCriterionKey & GetKey() const
SearchResourcesSimpleCriterion & AddValues(const Aws::String &value)
SearchResourcesSimpleCriterion & AddValues(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue