AWS SDK for C++  0.14.3
AWS SDK for C++
PipelineDescription.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DataPipeline
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  PipelineDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
52 
57  inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
58 
63  inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
64 
69  inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
70 
75  inline PipelineDescription& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
76 
81  inline PipelineDescription& WithPipelineId(Aws::String&& value) { SetPipelineId(value); return *this;}
82 
87  inline PipelineDescription& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
88 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline PipelineDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline PipelineDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
118 
122  inline PipelineDescription& WithName(const char* value) { SetName(value); return *this;}
123 
128  inline const Aws::Vector<Field>& GetFields() const{ return m_fields; }
129 
134  inline void SetFields(const Aws::Vector<Field>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
135 
140  inline void SetFields(Aws::Vector<Field>&& value) { m_fieldsHasBeenSet = true; m_fields = value; }
141 
146  inline PipelineDescription& WithFields(const Aws::Vector<Field>& value) { SetFields(value); return *this;}
147 
152  inline PipelineDescription& WithFields(Aws::Vector<Field>&& value) { SetFields(value); return *this;}
153 
158  inline PipelineDescription& AddFields(const Field& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
159 
164  inline PipelineDescription& AddFields(Field&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
165 
169  inline const Aws::String& GetDescription() const{ return m_description; }
170 
174  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
175 
179  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
180 
184  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
185 
189  inline PipelineDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
190 
194  inline PipelineDescription& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
195 
199  inline PipelineDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
200 
208  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 
217  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
218 
226  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
227 
235  inline PipelineDescription& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
236 
244  inline PipelineDescription& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
245 
253  inline PipelineDescription& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
254 
262  inline PipelineDescription& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
263 
264  private:
265  Aws::String m_pipelineId;
266  bool m_pipelineIdHasBeenSet;
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269  Aws::Vector<Field> m_fields;
270  bool m_fieldsHasBeenSet;
271  Aws::String m_description;
272  bool m_descriptionHasBeenSet;
273  Aws::Vector<Tag> m_tags;
274  bool m_tagsHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace DataPipeline
279 } // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
void SetFields(const Aws::Vector< Field > &value)
PipelineDescription & WithFields(Aws::Vector< Field > &&value)
PipelineDescription & WithDescription(Aws::String &&value)
PipelineDescription & WithDescription(const Aws::String &value)
PipelineDescription & AddFields(const Field &value)
PipelineDescription & WithFields(const Aws::Vector< Field > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PipelineDescription & WithPipelineId(Aws::String &&value)
PipelineDescription & AddFields(Field &&value)
PipelineDescription & WithName(Aws::String &&value)
#define AWS_DATAPIPELINE_API
PipelineDescription & WithPipelineId(const char *value)
PipelineDescription & WithDescription(const char *value)
PipelineDescription & WithPipelineId(const Aws::String &value)
void SetFields(Aws::Vector< Field > &&value)
const Aws::Vector< Field > & GetFields() const
void SetPipelineId(const Aws::String &value)
PipelineDescription & WithTags(const Aws::Vector< Tag > &value)
PipelineDescription & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PipelineDescription & WithName(const Aws::String &value)
PipelineDescription & AddTags(Tag &&value)
PipelineDescription & WithTags(Aws::Vector< Tag > &&value)
PipelineDescription & WithName(const char *value)
JSON (JavaScript Object Notation).
const Aws::Vector< Tag > & GetTags() const