AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePipelineRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/CodePipelineRequest.h>
9#include <aws/codepipeline/model/PipelineDeclaration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodePipeline
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEPIPELINE_API CreatePipelineRequest();
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_CODEPIPELINE_API Aws::String SerializePayload() const override;
39
40 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
48 inline const PipelineDeclaration& GetPipeline() const{ return m_pipeline; }
49 inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; }
50 inline void SetPipeline(const PipelineDeclaration& value) { m_pipelineHasBeenSet = true; m_pipeline = value; }
51 inline void SetPipeline(PipelineDeclaration&& value) { m_pipelineHasBeenSet = true; m_pipeline = std::move(value); }
52 inline CreatePipelineRequest& WithPipeline(const PipelineDeclaration& value) { SetPipeline(value); return *this;}
53 inline CreatePipelineRequest& WithPipeline(PipelineDeclaration&& value) { SetPipeline(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
64 inline CreatePipelineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
65 inline CreatePipelineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
66 inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
67 inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
69 private:
70
71 PipelineDeclaration m_pipeline;
72 bool m_pipelineHasBeenSet = false;
73
74 Aws::Vector<Tag> m_tags;
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodePipeline
80} // namespace Aws
const PipelineDeclaration & GetPipeline() const
void SetTags(const Aws::Vector< Tag > &value)
CreatePipelineRequest & WithTags(const Aws::Vector< Tag > &value)
void SetPipeline(const PipelineDeclaration &value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePipelineRequest & AddTags(const Tag &value)
CreatePipelineRequest & WithPipeline(const PipelineDeclaration &value)
CreatePipelineRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePipelineRequest & AddTags(Tag &&value)
CreatePipelineRequest & WithPipeline(PipelineDeclaration &&value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector