AWS SDK for C++  0.14.3
AWS SDK for C++
CreatePipelineRequest.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 DataPipeline
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
73  inline CreatePipelineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
80  inline CreatePipelineRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
81 
87  inline CreatePipelineRequest& WithName(const char* value) { SetName(value); return *this;}
88 
102  inline const Aws::String& GetUniqueId() const{ return m_uniqueId; }
103 
117  inline void SetUniqueId(const Aws::String& value) { m_uniqueIdHasBeenSet = true; m_uniqueId = value; }
118 
132  inline void SetUniqueId(Aws::String&& value) { m_uniqueIdHasBeenSet = true; m_uniqueId = value; }
133 
147  inline void SetUniqueId(const char* value) { m_uniqueIdHasBeenSet = true; m_uniqueId.assign(value); }
148 
162  inline CreatePipelineRequest& WithUniqueId(const Aws::String& value) { SetUniqueId(value); return *this;}
163 
177  inline CreatePipelineRequest& WithUniqueId(Aws::String&& value) { SetUniqueId(value); return *this;}
178 
192  inline CreatePipelineRequest& WithUniqueId(const char* value) { SetUniqueId(value); return *this;}
193 
197  inline const Aws::String& GetDescription() const{ return m_description; }
198 
202  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
203 
207  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
208 
212  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
213 
217  inline CreatePipelineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
218 
222  inline CreatePipelineRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
223 
227  inline CreatePipelineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
228 
236  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
237 
245  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
246 
254  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
255 
263  inline CreatePipelineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
264 
272  inline CreatePipelineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
273 
281  inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
282 
290  inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
291 
292  private:
293  Aws::String m_name;
294  bool m_nameHasBeenSet;
295  Aws::String m_uniqueId;
296  bool m_uniqueIdHasBeenSet;
297  Aws::String m_description;
298  bool m_descriptionHasBeenSet;
299  Aws::Vector<Tag> m_tags;
300  bool m_tagsHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace DataPipeline
305 } // namespace Aws
CreatePipelineRequest & AddTags(const Tag &value)
CreatePipelineRequest & WithName(const Aws::String &value)
CreatePipelineRequest & WithUniqueId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_DATAPIPELINE_API
void SetTags(const Aws::Vector< Tag > &value)
CreatePipelineRequest & WithUniqueId(const char *value)
CreatePipelineRequest & WithDescription(const char *value)
CreatePipelineRequest & AddTags(Tag &&value)
CreatePipelineRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePipelineRequest & WithDescription(const Aws::String &value)
CreatePipelineRequest & WithDescription(Aws::String &&value)
CreatePipelineRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePipelineRequest & WithUniqueId(Aws::String &&value)
CreatePipelineRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePipelineRequest & WithName(Aws::String &&value)
JSON (JavaScript Object Notation).