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 CodePipeline
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreatePipeline"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
47  inline const PipelineDeclaration& GetPipeline() const{ return m_pipeline; }
48 
53  inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; }
54 
59  inline void SetPipeline(const PipelineDeclaration& value) { m_pipelineHasBeenSet = true; m_pipeline = value; }
60 
65  inline void SetPipeline(PipelineDeclaration&& value) { m_pipelineHasBeenSet = true; m_pipeline = std::move(value); }
66 
71  inline CreatePipelineRequest& WithPipeline(const PipelineDeclaration& value) { SetPipeline(value); return *this;}
72 
77  inline CreatePipelineRequest& WithPipeline(PipelineDeclaration&& value) { SetPipeline(std::move(value)); return *this;}
78 
79 
83  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 
88  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 
93  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 
98  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 
103  inline CreatePipelineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 
108  inline CreatePipelineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 
113  inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 
118  inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  PipelineDeclaration m_pipeline;
123  bool m_pipelineHasBeenSet;
124 
125  Aws::Vector<Tag> m_tags;
126  bool m_tagsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace CodePipeline
131 } // namespace Aws
CreatePipelineRequest & AddTags(const Tag &value)
CreatePipelineRequest & WithTags(Aws::Vector< Tag > &&value)
void SetPipeline(const PipelineDeclaration &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreatePipelineRequest & WithPipeline(PipelineDeclaration &&value)
CreatePipelineRequest & WithPipeline(const PipelineDeclaration &value)
CreatePipelineRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
#define AWS_CODEPIPELINE_API
const PipelineDeclaration & GetPipeline() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePipelineRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)