AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchExpression.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/BooleanOperator.h>
10#include <aws/sagemaker/model/Filter.h>
11#include <aws/sagemaker/model/NestedFilters.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 SageMaker
25{
26namespace Model
27{
28
49 {
50 public:
51 AWS_SAGEMAKER_API SearchExpression();
52 AWS_SAGEMAKER_API SearchExpression(Aws::Utils::Json::JsonView jsonValue);
54 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
64 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
65 inline SearchExpression& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
66 inline SearchExpression& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
67 inline SearchExpression& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
68 inline SearchExpression& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::Vector<NestedFilters>& GetNestedFilters() const{ return m_nestedFilters; }
76 inline bool NestedFiltersHasBeenSet() const { return m_nestedFiltersHasBeenSet; }
77 inline void SetNestedFilters(const Aws::Vector<NestedFilters>& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters = value; }
78 inline void SetNestedFilters(Aws::Vector<NestedFilters>&& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters = std::move(value); }
80 inline SearchExpression& WithNestedFilters(Aws::Vector<NestedFilters>&& value) { SetNestedFilters(std::move(value)); return *this;}
81 inline SearchExpression& AddNestedFilters(const NestedFilters& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters.push_back(value); return *this; }
82 inline SearchExpression& AddNestedFilters(NestedFilters&& value) { m_nestedFiltersHasBeenSet = true; m_nestedFilters.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Vector<SearchExpression>& GetSubExpressions() const{ return m_subExpressions; }
90 inline bool SubExpressionsHasBeenSet() const { return m_subExpressionsHasBeenSet; }
91 inline void SetSubExpressions(const Aws::Vector<SearchExpression>& value) { m_subExpressionsHasBeenSet = true; m_subExpressions = value; }
92 inline void SetSubExpressions(Aws::Vector<SearchExpression>&& value) { m_subExpressionsHasBeenSet = true; m_subExpressions = std::move(value); }
94 inline SearchExpression& WithSubExpressions(Aws::Vector<SearchExpression>&& value) { SetSubExpressions(std::move(value)); return *this;}
95 inline SearchExpression& AddSubExpressions(const SearchExpression& value) { m_subExpressionsHasBeenSet = true; m_subExpressions.push_back(value); return *this; }
96 inline SearchExpression& AddSubExpressions(SearchExpression&& value) { m_subExpressionsHasBeenSet = true; m_subExpressions.push_back(std::move(value)); return *this; }
98
100
107 inline const BooleanOperator& GetOperator() const{ return m_operator; }
108 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
109 inline void SetOperator(const BooleanOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
110 inline void SetOperator(BooleanOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
111 inline SearchExpression& WithOperator(const BooleanOperator& value) { SetOperator(value); return *this;}
112 inline SearchExpression& WithOperator(BooleanOperator&& value) { SetOperator(std::move(value)); return *this;}
114 private:
115
116 Aws::Vector<Filter> m_filters;
117 bool m_filtersHasBeenSet = false;
118
119 Aws::Vector<NestedFilters> m_nestedFilters;
120 bool m_nestedFiltersHasBeenSet = false;
121
122 Aws::Vector<SearchExpression> m_subExpressions;
123 bool m_subExpressionsHasBeenSet = false;
124
125 BooleanOperator m_operator;
126 bool m_operatorHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace SageMaker
131} // namespace Aws
SearchExpression & WithFilters(const Aws::Vector< Filter > &value)
const BooleanOperator & GetOperator() const
SearchExpression & WithNestedFilters(const Aws::Vector< NestedFilters > &value)
SearchExpression & AddNestedFilters(const NestedFilters &value)
SearchExpression & WithSubExpressions(const Aws::Vector< SearchExpression > &value)
void SetNestedFilters(const Aws::Vector< NestedFilters > &value)
SearchExpression & WithSubExpressions(Aws::Vector< SearchExpression > &&value)
void SetNestedFilters(Aws::Vector< NestedFilters > &&value)
void SetSubExpressions(Aws::Vector< SearchExpression > &&value)
SearchExpression & WithOperator(const BooleanOperator &value)
SearchExpression & AddNestedFilters(NestedFilters &&value)
void SetFilters(const Aws::Vector< Filter > &value)
void SetOperator(BooleanOperator &&value)
const Aws::Vector< SearchExpression > & GetSubExpressions() const
const Aws::Vector< Filter > & GetFilters() const
SearchExpression & AddFilters(const Filter &value)
AWS_SAGEMAKER_API SearchExpression(Aws::Utils::Json::JsonView jsonValue)
void SetOperator(const BooleanOperator &value)
SearchExpression & AddSubExpressions(SearchExpression &&value)
SearchExpression & AddFilters(Filter &&value)
void SetFilters(Aws::Vector< Filter > &&value)
SearchExpression & AddSubExpressions(const SearchExpression &value)
void SetSubExpressions(const Aws::Vector< SearchExpression > &value)
const Aws::Vector< NestedFilters > & GetNestedFilters() const
AWS_SAGEMAKER_API SearchExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchExpression & WithOperator(BooleanOperator &&value)
SearchExpression & WithFilters(Aws::Vector< Filter > &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SearchExpression & WithNestedFilters(Aws::Vector< NestedFilters > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue