AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Query.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/datapipeline/DataPipeline_EXPORTS.h>
9#include <aws/datapipeline/model/Selector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataPipeline {
21namespace Model {
22
28class Query {
29 public:
30 AWS_DATAPIPELINE_API Query() = default;
31 AWS_DATAPIPELINE_API Query(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAPIPELINE_API Query& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<Selector>& GetSelectors() const { return m_selectors; }
41 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
42 template <typename SelectorsT = Aws::Vector<Selector>>
43 void SetSelectors(SelectorsT&& value) {
44 m_selectorsHasBeenSet = true;
45 m_selectors = std::forward<SelectorsT>(value);
46 }
47 template <typename SelectorsT = Aws::Vector<Selector>>
48 Query& WithSelectors(SelectorsT&& value) {
49 SetSelectors(std::forward<SelectorsT>(value));
50 return *this;
51 }
52 template <typename SelectorsT = Selector>
53 Query& AddSelectors(SelectorsT&& value) {
54 m_selectorsHasBeenSet = true;
55 m_selectors.emplace_back(std::forward<SelectorsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Selector> m_selectors;
61 bool m_selectorsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace DataPipeline
66} // namespace Aws
AWS_DATAPIPELINE_API Query & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API Query(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
bool SelectorsHasBeenSet() const
Definition Query.h:41
Query & AddSelectors(SelectorsT &&value)
Definition Query.h:53
AWS_DATAPIPELINE_API Query()=default
void SetSelectors(SelectorsT &&value)
Definition Query.h:43
const Aws::Vector< Selector > & GetSelectors() const
Definition Query.h:40
Query & WithSelectors(SelectorsT &&value)
Definition Query.h:48
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue