AWS SDK for C++  0.14.3
AWS SDK for C++
Operator.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DataPipeline
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Operator();
43  Operator(const Aws::Utils::Json::JsonValue& jsonValue);
44  Operator& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
67  inline const OperatorType& GetType() const{ return m_type; }
68 
89  inline void SetType(const OperatorType& value) { m_typeHasBeenSet = true; m_type = value; }
90 
111  inline void SetType(OperatorType&& value) { m_typeHasBeenSet = true; m_type = value; }
112 
133  inline Operator& WithType(const OperatorType& value) { SetType(value); return *this;}
134 
155  inline Operator& WithType(OperatorType&& value) { SetType(value); return *this;}
156 
160  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
161 
165  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
166 
170  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = value; }
171 
175  inline Operator& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
176 
180  inline Operator& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(value); return *this;}
181 
185  inline Operator& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
186 
190  inline Operator& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
191 
195  inline Operator& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
196 
197  private:
198  OperatorType m_type;
199  bool m_typeHasBeenSet;
200  Aws::Vector<Aws::String> m_values;
201  bool m_valuesHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace DataPipeline
206 } // namespace Aws
void SetType(const OperatorType &value)
Definition: Operator.h:89
Operator & AddValues(const Aws::String &value)
Definition: Operator.h:185
Operator & WithType(OperatorType &&value)
Definition: Operator.h:155
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: Operator.h:170
void SetType(OperatorType &&value)
Definition: Operator.h:111
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_DATAPIPELINE_API
const Aws::Vector< Aws::String > & GetValues() const
Definition: Operator.h:160
Operator & WithValues(const Aws::Vector< Aws::String > &value)
Definition: Operator.h:175
Operator & WithValues(Aws::Vector< Aws::String > &&value)
Definition: Operator.h:180
Operator & AddValues(Aws::String &&value)
Definition: Operator.h:190
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: Operator.h:165
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const OperatorType & GetType() const
Definition: Operator.h:67
Operator & AddValues(const char *value)
Definition: Operator.h:195
Operator & WithType(const OperatorType &value)
Definition: Operator.h:133
JSON (JavaScript Object Notation).