AWS SDK for C++  0.12.9
AWS SDK for C++
Query.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DataPipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Query();
41  Query(const Aws::Utils::Json::JsonValue& jsonValue);
42  Query& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::Vector<Selector>& GetSelectors() const{ return m_selectors; }
50 
55  inline void SetSelectors(const Aws::Vector<Selector>& value) { m_selectorsHasBeenSet = true; m_selectors = value; }
56 
61  inline void SetSelectors(Aws::Vector<Selector>&& value) { m_selectorsHasBeenSet = true; m_selectors = value; }
62 
67  inline Query& WithSelectors(const Aws::Vector<Selector>& value) { SetSelectors(value); return *this;}
68 
73  inline Query& WithSelectors(Aws::Vector<Selector>&& value) { SetSelectors(value); return *this;}
74 
79  inline Query& AddSelectors(const Selector& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(value); return *this; }
80 
85  inline Query& AddSelectors(Selector&& value) { m_selectorsHasBeenSet = true; m_selectors.push_back(value); return *this; }
86 
87  private:
88  Aws::Vector<Selector> m_selectors;
89  bool m_selectorsHasBeenSet;
90  };
91 
92 } // namespace Model
93 } // namespace DataPipeline
94 } // namespace Aws
Query & AddSelectors(Selector &&value)
Definition: Query.h:85
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_DATAPIPELINE_API
const Aws::Vector< Selector > & GetSelectors() const
Definition: Query.h:49
Query & WithSelectors(Aws::Vector< Selector > &&value)
Definition: Query.h:73
Query & WithSelectors(const Aws::Vector< Selector > &value)
Definition: Query.h:67
void SetSelectors(const Aws::Vector< Selector > &value)
Definition: Query.h:55
Query & AddSelectors(const Selector &value)
Definition: Query.h:79
void SetSelectors(Aws::Vector< Selector > &&value)
Definition: Query.h:61
JSON (JavaScript Object Notation).