AWS SDK for C++  1.9.160
AWS SDK for C++
SearchExpression.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SageMaker
26 {
27 namespace Model
28 {
29 
50  {
51  public:
56 
57 
61  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
62 
66  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
67 
71  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
72 
76  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
77 
81  inline SearchExpression& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
82 
86  inline SearchExpression& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
87 
91  inline SearchExpression& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
92 
96  inline SearchExpression& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
97 
98 
102  inline const Aws::Vector<NestedFilters>& GetNestedFilters() const{ return m_nestedFilters; }
103 
107  inline bool NestedFiltersHasBeenSet() const { return m_nestedFiltersHasBeenSet; }
108 
112  inline void SetNestedFilters(const Aws::Vector<NestedFilters>& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters = value; }
113 
117  inline void SetNestedFilters(Aws::Vector<NestedFilters>&& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters = std::move(value); }
118 
122  inline SearchExpression& WithNestedFilters(const Aws::Vector<NestedFilters>& value) { SetNestedFilters(value); return *this;}
123 
127  inline SearchExpression& WithNestedFilters(Aws::Vector<NestedFilters>&& value) { SetNestedFilters(std::move(value)); return *this;}
128 
132  inline SearchExpression& AddNestedFilters(const NestedFilters& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters.push_back(value); return *this; }
133 
137  inline SearchExpression& AddNestedFilters(NestedFilters&& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters.push_back(std::move(value)); return *this; }
138 
139 
143  inline const Aws::Vector<SearchExpression>& GetSubExpressions() const{ return m_subExpressions; }
144 
148  inline bool SubExpressionsHasBeenSet() const { return m_subExpressionsHasBeenSet; }
149 
153  inline void SetSubExpressions(const Aws::Vector<SearchExpression>& value) { m_subExpressionsHasBeenSet = true; m_subExpressions = value; }
154 
158  inline void SetSubExpressions(Aws::Vector<SearchExpression>&& value) { m_subExpressionsHasBeenSet = true; m_subExpressions = std::move(value); }
159 
163  inline SearchExpression& WithSubExpressions(const Aws::Vector<SearchExpression>& value) { SetSubExpressions(value); return *this;}
164 
168  inline SearchExpression& WithSubExpressions(Aws::Vector<SearchExpression>&& value) { SetSubExpressions(std::move(value)); return *this;}
169 
173  inline SearchExpression& AddSubExpressions(const SearchExpression& value) { m_subExpressionsHasBeenSet = true; m_subExpressions.push_back(value); return *this; }
174 
178  inline SearchExpression& AddSubExpressions(SearchExpression&& value) { m_subExpressionsHasBeenSet = true; m_subExpressions.push_back(std::move(value)); return *this; }
179 
180 
188  inline const BooleanOperator& GetOperator() const{ return m_operator; }
189 
197  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
198 
206  inline void SetOperator(const BooleanOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
207 
215  inline void SetOperator(BooleanOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
216 
224  inline SearchExpression& WithOperator(const BooleanOperator& value) { SetOperator(value); return *this;}
225 
233  inline SearchExpression& WithOperator(BooleanOperator&& value) { SetOperator(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::Vector<Filter> m_filters;
238  bool m_filtersHasBeenSet;
239 
240  Aws::Vector<NestedFilters> m_nestedFilters;
241  bool m_nestedFiltersHasBeenSet;
242 
243  Aws::Vector<SearchExpression> m_subExpressions;
244  bool m_subExpressionsHasBeenSet;
245 
246  BooleanOperator m_operator;
247  bool m_operatorHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace SageMaker
252 } // namespace Aws
BooleanOperator.h
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::SearchExpression::SetOperator
void SetOperator(BooleanOperator &&value)
Definition: SearchExpression.h:215
Aws::SageMaker::Model::SearchExpression::AddNestedFilters
SearchExpression & AddNestedFilters(const NestedFilters &value)
Definition: SearchExpression.h:132
SageMaker_EXPORTS.h
NestedFilters.h
Aws::SageMaker::Model::SearchExpression::SetSubExpressions
void SetSubExpressions(const Aws::Vector< SearchExpression > &value)
Definition: SearchExpression.h:153
Aws::SageMaker::Model::SearchExpression::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: SearchExpression.h:197
Filter.h
Aws::SageMaker::Model::SearchExpression::SearchExpression
SearchExpression(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::SearchExpression::GetOperator
const BooleanOperator & GetOperator() const
Definition: SearchExpression.h:188
Aws::SageMaker::Model::SearchExpression
Definition: SearchExpression.h:50
AWSVector.h
Aws::SageMaker::Model::SearchExpression::WithOperator
SearchExpression & WithOperator(BooleanOperator &&value)
Definition: SearchExpression.h:233
Aws::SageMaker::Model::SearchExpression::WithFilters
SearchExpression & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchExpression.h:81
Aws::SageMaker::Model::SearchExpression::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchExpression.h:66
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::SearchExpression::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchExpression.h:61
Aws::SageMaker::Model::SearchExpression::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchExpression.h:76
Aws::SageMaker::Model::SearchExpression::SetOperator
void SetOperator(const BooleanOperator &value)
Definition: SearchExpression.h:206
Aws::SageMaker::Model::SearchExpression::SearchExpression
SearchExpression()
Aws::SageMaker::Model::BooleanOperator
BooleanOperator
Definition: BooleanOperator.h:17
Aws::SageMaker::Model::SearchExpression::AddFilters
SearchExpression & AddFilters(Filter &&value)
Definition: SearchExpression.h:96
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::SearchExpression::GetNestedFilters
const Aws::Vector< NestedFilters > & GetNestedFilters() const
Definition: SearchExpression.h:102
Aws::SageMaker::Model::SearchExpression::SetSubExpressions
void SetSubExpressions(Aws::Vector< SearchExpression > &&value)
Definition: SearchExpression.h:158
Aws::SageMaker::Model::SearchExpression::operator=
SearchExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::SearchExpression::NestedFiltersHasBeenSet
bool NestedFiltersHasBeenSet() const
Definition: SearchExpression.h:107
Aws::SageMaker::Model::SearchExpression::AddSubExpressions
SearchExpression & AddSubExpressions(SearchExpression &&value)
Definition: SearchExpression.h:178
SearchExpression.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::Filter
Definition: Filter.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::SearchExpression::SetNestedFilters
void SetNestedFilters(const Aws::Vector< NestedFilters > &value)
Definition: SearchExpression.h:112
Aws::SageMaker::Model::SearchExpression::GetSubExpressions
const Aws::Vector< SearchExpression > & GetSubExpressions() const
Definition: SearchExpression.h:143
Aws::SageMaker::Model::SearchExpression::WithNestedFilters
SearchExpression & WithNestedFilters(const Aws::Vector< NestedFilters > &value)
Definition: SearchExpression.h:122
Aws::SageMaker::Model::SearchExpression::WithSubExpressions
SearchExpression & WithSubExpressions(Aws::Vector< SearchExpression > &&value)
Definition: SearchExpression.h:168
Aws::SageMaker::Model::SearchExpression::WithOperator
SearchExpression & WithOperator(const BooleanOperator &value)
Definition: SearchExpression.h:224
Aws::SageMaker::Model::NestedFilters
Definition: NestedFilters.h:43
Aws::SageMaker::Model::SearchExpression::WithSubExpressions
SearchExpression & WithSubExpressions(const Aws::Vector< SearchExpression > &value)
Definition: SearchExpression.h:163
Aws::SageMaker::Model::SearchExpression::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::SearchExpression::AddFilters
SearchExpression & AddFilters(const Filter &value)
Definition: SearchExpression.h:91
Aws::SageMaker::Model::SearchExpression::SubExpressionsHasBeenSet
bool SubExpressionsHasBeenSet() const
Definition: SearchExpression.h:148
Aws::SageMaker::Model::SearchExpression::AddNestedFilters
SearchExpression & AddNestedFilters(NestedFilters &&value)
Definition: SearchExpression.h:137
Aws::SageMaker::Model::SearchExpression::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchExpression.h:71
Aws::SageMaker::Model::SearchExpression::WithFilters
SearchExpression & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchExpression.h:86
Aws::SageMaker::Model::SearchExpression::WithNestedFilters
SearchExpression & WithNestedFilters(Aws::Vector< NestedFilters > &&value)
Definition: SearchExpression.h:127
Aws::SageMaker::Model::SearchExpression::AddSubExpressions
SearchExpression & AddSubExpressions(const SearchExpression &value)
Definition: SearchExpression.h:173
Aws::SageMaker::Model::SearchExpression::SetNestedFilters
void SetNestedFilters(Aws::Vector< NestedFilters > &&value)
Definition: SearchExpression.h:117