AWS SDK for C++  1.8.71
AWS SDK for C++
CreatePipelineRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DataPipeline
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreatePipeline"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
75  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 
82  inline CreatePipelineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
83 
89  inline CreatePipelineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 
96  inline CreatePipelineRequest& WithName(const char* value) { SetName(value); return *this;}
97 
98 
112  inline const Aws::String& GetUniqueId() const{ return m_uniqueId; }
113 
127  inline bool UniqueIdHasBeenSet() const { return m_uniqueIdHasBeenSet; }
128 
142  inline void SetUniqueId(const Aws::String& value) { m_uniqueIdHasBeenSet = true; m_uniqueId = value; }
143 
157  inline void SetUniqueId(Aws::String&& value) { m_uniqueIdHasBeenSet = true; m_uniqueId = std::move(value); }
158 
172  inline void SetUniqueId(const char* value) { m_uniqueIdHasBeenSet = true; m_uniqueId.assign(value); }
173 
187  inline CreatePipelineRequest& WithUniqueId(const Aws::String& value) { SetUniqueId(value); return *this;}
188 
202  inline CreatePipelineRequest& WithUniqueId(Aws::String&& value) { SetUniqueId(std::move(value)); return *this;}
203 
217  inline CreatePipelineRequest& WithUniqueId(const char* value) { SetUniqueId(value); return *this;}
218 
219 
223  inline const Aws::String& GetDescription() const{ return m_description; }
224 
228  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
229 
233  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
234 
238  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
239 
243  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
244 
248  inline CreatePipelineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
249 
253  inline CreatePipelineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
254 
258  inline CreatePipelineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
259 
260 
268  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
269 
277  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
278 
286  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
287 
295  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
296 
304  inline CreatePipelineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
305 
313  inline CreatePipelineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
314 
322  inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
323 
331  inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
332 
333  private:
334 
335  Aws::String m_name;
336  bool m_nameHasBeenSet;
337 
338  Aws::String m_uniqueId;
339  bool m_uniqueIdHasBeenSet;
340 
341  Aws::String m_description;
342  bool m_descriptionHasBeenSet;
343 
344  Aws::Vector<Tag> m_tags;
345  bool m_tagsHasBeenSet;
346  };
347 
348 } // namespace Model
349 } // namespace DataPipeline
350 } // 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:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
#define AWS_DATAPIPELINE_API
void SetTags(const Aws::Vector< Tag > &value)
CreatePipelineRequest & WithUniqueId(const char *value)
virtual const char * GetServiceRequestName() const override
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)