AWS SDK for C++  0.12.9
AWS SDK for C++
PipelineObject.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 
41  {
42  public:
45  PipelineObject& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline PipelineObject& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline PipelineObject& WithId(Aws::String&& value) { SetId(value); return *this;}
77 
81  inline PipelineObject& WithId(const char* value) { SetId(value); return *this;}
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 
106  inline PipelineObject& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline PipelineObject& WithName(Aws::String&& value) { SetName(value); return *this;}
112 
116  inline PipelineObject& WithName(const char* value) { SetName(value); return *this;}
117 
121  inline const Aws::Vector<Field>& GetFields() const{ return m_fields; }
122 
126  inline void SetFields(const Aws::Vector<Field>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
127 
131  inline void SetFields(Aws::Vector<Field>&& value) { m_fieldsHasBeenSet = true; m_fields = value; }
132 
136  inline PipelineObject& WithFields(const Aws::Vector<Field>& value) { SetFields(value); return *this;}
137 
141  inline PipelineObject& WithFields(Aws::Vector<Field>&& value) { SetFields(value); return *this;}
142 
146  inline PipelineObject& AddFields(const Field& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
147 
151  inline PipelineObject& AddFields(Field&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
152 
153  private:
154  Aws::String m_id;
155  bool m_idHasBeenSet;
156  Aws::String m_name;
157  bool m_nameHasBeenSet;
158  Aws::Vector<Field> m_fields;
159  bool m_fieldsHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace DataPipeline
164 } // namespace Aws
PipelineObject & WithName(const char *value)
const Aws::Vector< Field > & GetFields() const
void SetFields(Aws::Vector< Field > &&value)
PipelineObject & WithFields(const Aws::Vector< Field > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetId() const
void SetId(const Aws::String &value)
PipelineObject & WithFields(Aws::Vector< Field > &&value)
PipelineObject & AddFields(Field &&value)
const Aws::String & GetName() const
void SetFields(const Aws::Vector< Field > &value)
void SetName(const Aws::String &value)
#define AWS_DATAPIPELINE_API
PipelineObject & WithId(const char *value)
PipelineObject & WithName(const Aws::String &value)
PipelineObject & AddFields(const Field &value)
PipelineObject & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PipelineObject & WithId(Aws::String &&value)
PipelineObject & WithId(const Aws::String &value)
JSON (JavaScript Object Notation).