AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Query.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datapipeline/model/Selector.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 DataPipeline
23{
24namespace Model
25{
26
32 class Query
33 {
34 public:
35 AWS_DATAPIPELINE_API Query() = default;
36 AWS_DATAPIPELINE_API Query(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAPIPELINE_API Query& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Selector>& GetSelectors() const { return m_selectors; }
47 inline bool SelectorsHasBeenSet() const { return m_selectorsHasBeenSet; }
48 template<typename SelectorsT = Aws::Vector<Selector>>
49 void SetSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors = std::forward<SelectorsT>(value); }
50 template<typename SelectorsT = Aws::Vector<Selector>>
51 Query& WithSelectors(SelectorsT&& value) { SetSelectors(std::forward<SelectorsT>(value)); return *this;}
52 template<typename SelectorsT = Selector>
53 Query& AddSelectors(SelectorsT&& value) { m_selectorsHasBeenSet = true; m_selectors.emplace_back(std::forward<SelectorsT>(value)); return *this; }
55 private:
56
57 Aws::Vector<Selector> m_selectors;
58 bool m_selectorsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace DataPipeline
63} // 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:47
Query & AddSelectors(SelectorsT &&value)
Definition Query.h:53
AWS_DATAPIPELINE_API Query()=default
void SetSelectors(SelectorsT &&value)
Definition Query.h:49
const Aws::Vector< Selector > & GetSelectors() const
Definition Query.h:46
Query & WithSelectors(SelectorsT &&value)
Definition Query.h:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue