AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AdvancedFieldSelector.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDTRAIL_API AdvancedFieldSelector() = default;
39 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
56 inline const Aws::String& GetField() const { return m_field; }
57 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
58 template<typename FieldT = Aws::String>
59 void SetField(FieldT&& value) { m_fieldHasBeenSet = true; m_field = std::forward<FieldT>(value); }
60 template<typename FieldT = Aws::String>
61 AdvancedFieldSelector& WithField(FieldT&& value) { SetField(std::forward<FieldT>(value)); return *this;}
63
65
71 inline const Aws::Vector<Aws::String>& GetEquals() const { return m_equals; }
72 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
73 template<typename EqualsT = Aws::Vector<Aws::String>>
74 void SetEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals = std::forward<EqualsT>(value); }
75 template<typename EqualsT = Aws::Vector<Aws::String>>
76 AdvancedFieldSelector& WithEquals(EqualsT&& value) { SetEquals(std::forward<EqualsT>(value)); return *this;}
77 template<typename EqualsT = Aws::String>
78 AdvancedFieldSelector& AddEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals.emplace_back(std::forward<EqualsT>(value)); return *this; }
80
82
86 inline const Aws::Vector<Aws::String>& GetStartsWith() const { return m_startsWith; }
87 inline bool StartsWithHasBeenSet() const { return m_startsWithHasBeenSet; }
88 template<typename StartsWithT = Aws::Vector<Aws::String>>
89 void SetStartsWith(StartsWithT&& value) { m_startsWithHasBeenSet = true; m_startsWith = std::forward<StartsWithT>(value); }
90 template<typename StartsWithT = Aws::Vector<Aws::String>>
91 AdvancedFieldSelector& WithStartsWith(StartsWithT&& value) { SetStartsWith(std::forward<StartsWithT>(value)); return *this;}
92 template<typename StartsWithT = Aws::String>
93 AdvancedFieldSelector& AddStartsWith(StartsWithT&& value) { m_startsWithHasBeenSet = true; m_startsWith.emplace_back(std::forward<StartsWithT>(value)); return *this; }
95
97
101 inline const Aws::Vector<Aws::String>& GetEndsWith() const { return m_endsWith; }
102 inline bool EndsWithHasBeenSet() const { return m_endsWithHasBeenSet; }
103 template<typename EndsWithT = Aws::Vector<Aws::String>>
104 void SetEndsWith(EndsWithT&& value) { m_endsWithHasBeenSet = true; m_endsWith = std::forward<EndsWithT>(value); }
105 template<typename EndsWithT = Aws::Vector<Aws::String>>
106 AdvancedFieldSelector& WithEndsWith(EndsWithT&& value) { SetEndsWith(std::forward<EndsWithT>(value)); return *this;}
107 template<typename EndsWithT = Aws::String>
108 AdvancedFieldSelector& AddEndsWith(EndsWithT&& value) { m_endsWithHasBeenSet = true; m_endsWith.emplace_back(std::forward<EndsWithT>(value)); return *this; }
110
112
116 inline const Aws::Vector<Aws::String>& GetNotEquals() const { return m_notEquals; }
117 inline bool NotEqualsHasBeenSet() const { return m_notEqualsHasBeenSet; }
118 template<typename NotEqualsT = Aws::Vector<Aws::String>>
119 void SetNotEquals(NotEqualsT&& value) { m_notEqualsHasBeenSet = true; m_notEquals = std::forward<NotEqualsT>(value); }
120 template<typename NotEqualsT = Aws::Vector<Aws::String>>
121 AdvancedFieldSelector& WithNotEquals(NotEqualsT&& value) { SetNotEquals(std::forward<NotEqualsT>(value)); return *this;}
122 template<typename NotEqualsT = Aws::String>
123 AdvancedFieldSelector& AddNotEquals(NotEqualsT&& value) { m_notEqualsHasBeenSet = true; m_notEquals.emplace_back(std::forward<NotEqualsT>(value)); return *this; }
125
127
131 inline const Aws::Vector<Aws::String>& GetNotStartsWith() const { return m_notStartsWith; }
132 inline bool NotStartsWithHasBeenSet() const { return m_notStartsWithHasBeenSet; }
133 template<typename NotStartsWithT = Aws::Vector<Aws::String>>
134 void SetNotStartsWith(NotStartsWithT&& value) { m_notStartsWithHasBeenSet = true; m_notStartsWith = std::forward<NotStartsWithT>(value); }
135 template<typename NotStartsWithT = Aws::Vector<Aws::String>>
136 AdvancedFieldSelector& WithNotStartsWith(NotStartsWithT&& value) { SetNotStartsWith(std::forward<NotStartsWithT>(value)); return *this;}
137 template<typename NotStartsWithT = Aws::String>
138 AdvancedFieldSelector& AddNotStartsWith(NotStartsWithT&& value) { m_notStartsWithHasBeenSet = true; m_notStartsWith.emplace_back(std::forward<NotStartsWithT>(value)); return *this; }
140
142
146 inline const Aws::Vector<Aws::String>& GetNotEndsWith() const { return m_notEndsWith; }
147 inline bool NotEndsWithHasBeenSet() const { return m_notEndsWithHasBeenSet; }
148 template<typename NotEndsWithT = Aws::Vector<Aws::String>>
149 void SetNotEndsWith(NotEndsWithT&& value) { m_notEndsWithHasBeenSet = true; m_notEndsWith = std::forward<NotEndsWithT>(value); }
150 template<typename NotEndsWithT = Aws::Vector<Aws::String>>
151 AdvancedFieldSelector& WithNotEndsWith(NotEndsWithT&& value) { SetNotEndsWith(std::forward<NotEndsWithT>(value)); return *this;}
152 template<typename NotEndsWithT = Aws::String>
153 AdvancedFieldSelector& AddNotEndsWith(NotEndsWithT&& value) { m_notEndsWithHasBeenSet = true; m_notEndsWith.emplace_back(std::forward<NotEndsWithT>(value)); return *this; }
155 private:
156
157 Aws::String m_field;
158 bool m_fieldHasBeenSet = false;
159
161 bool m_equalsHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_startsWith;
164 bool m_startsWithHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_endsWith;
167 bool m_endsWithHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_notEquals;
170 bool m_notEqualsHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_notStartsWith;
173 bool m_notStartsWithHasBeenSet = false;
174
175 Aws::Vector<Aws::String> m_notEndsWith;
176 bool m_notEndsWithHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace CloudTrail
181} // namespace Aws
AdvancedFieldSelector & WithNotStartsWith(NotStartsWithT &&value)
AWS_CLOUDTRAIL_API AdvancedFieldSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
AdvancedFieldSelector & AddNotEndsWith(NotEndsWithT &&value)
AWS_CLOUDTRAIL_API AdvancedFieldSelector(Aws::Utils::Json::JsonView jsonValue)
AdvancedFieldSelector & AddStartsWith(StartsWithT &&value)
AdvancedFieldSelector & AddNotEquals(NotEqualsT &&value)
const Aws::Vector< Aws::String > & GetEndsWith() const
const Aws::Vector< Aws::String > & GetNotEquals() const
AdvancedFieldSelector & WithEndsWith(EndsWithT &&value)
AdvancedFieldSelector & WithNotEquals(NotEqualsT &&value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AdvancedFieldSelector & WithEquals(EqualsT &&value)
const Aws::Vector< Aws::String > & GetNotStartsWith() const
AdvancedFieldSelector & AddEndsWith(EndsWithT &&value)
AWS_CLOUDTRAIL_API AdvancedFieldSelector()=default
const Aws::Vector< Aws::String > & GetEquals() const
AdvancedFieldSelector & WithNotEndsWith(NotEndsWithT &&value)
AdvancedFieldSelector & WithField(FieldT &&value)
AdvancedFieldSelector & AddNotStartsWith(NotStartsWithT &&value)
const Aws::Vector< Aws::String > & GetStartsWith() const
const Aws::Vector< Aws::String > & GetNotEndsWith() const
AdvancedFieldSelector & AddEquals(EqualsT &&value)
AdvancedFieldSelector & WithStartsWith(StartsWithT &&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