AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartPipelineExecutionRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/CodePipelineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/PipelineVariable.h>
12#include <aws/codepipeline/model/SourceRevisionOverride.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace CodePipeline
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_CODEPIPELINE_API StartPipelineExecutionRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "StartPipelineExecution"; }
39
40 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
41
42 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline StartPipelineExecutionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline StartPipelineExecutionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline StartPipelineExecutionRequest& WithName(const char* value) { SetName(value); return *this;}
58
60
65 inline const Aws::Vector<PipelineVariable>& GetVariables() const{ return m_variables; }
66 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
67 inline void SetVariables(const Aws::Vector<PipelineVariable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
68 inline void SetVariables(Aws::Vector<PipelineVariable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
71 inline StartPipelineExecutionRequest& AddVariables(const PipelineVariable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
72 inline StartPipelineExecutionRequest& AddVariables(PipelineVariable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
74
76
80 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
81 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
82 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
83 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
84 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
87 inline StartPipelineExecutionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
89
91
97 inline const Aws::Vector<SourceRevisionOverride>& GetSourceRevisions() const{ return m_sourceRevisions; }
98 inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; }
99 inline void SetSourceRevisions(const Aws::Vector<SourceRevisionOverride>& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = value; }
100 inline void SetSourceRevisions(Aws::Vector<SourceRevisionOverride>&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions = std::move(value); }
103 inline StartPipelineExecutionRequest& AddSourceRevisions(const SourceRevisionOverride& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(value); return *this; }
104 inline StartPipelineExecutionRequest& AddSourceRevisions(SourceRevisionOverride&& value) { m_sourceRevisionsHasBeenSet = true; m_sourceRevisions.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
112 bool m_variablesHasBeenSet = false;
113
114 Aws::String m_clientRequestToken;
115 bool m_clientRequestTokenHasBeenSet = false;
116
117 Aws::Vector<SourceRevisionOverride> m_sourceRevisions;
118 bool m_sourceRevisionsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CodePipeline
123} // namespace Aws
const Aws::Vector< SourceRevisionOverride > & GetSourceRevisions() const
const Aws::Vector< PipelineVariable > & GetVariables() const
StartPipelineExecutionRequest & WithClientRequestToken(const Aws::String &value)
StartPipelineExecutionRequest & WithName(const char *value)
StartPipelineExecutionRequest & WithClientRequestToken(const char *value)
StartPipelineExecutionRequest & AddVariables(const PipelineVariable &value)
StartPipelineExecutionRequest & WithClientRequestToken(Aws::String &&value)
void SetSourceRevisions(const Aws::Vector< SourceRevisionOverride > &value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
StartPipelineExecutionRequest & WithName(const Aws::String &value)
StartPipelineExecutionRequest & AddVariables(PipelineVariable &&value)
void SetSourceRevisions(Aws::Vector< SourceRevisionOverride > &&value)
StartPipelineExecutionRequest & WithSourceRevisions(const Aws::Vector< SourceRevisionOverride > &value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetVariables(Aws::Vector< PipelineVariable > &&value)
StartPipelineExecutionRequest & WithSourceRevisions(Aws::Vector< SourceRevisionOverride > &&value)
StartPipelineExecutionRequest & WithName(Aws::String &&value)
StartPipelineExecutionRequest & WithVariables(const Aws::Vector< PipelineVariable > &value)
StartPipelineExecutionRequest & WithVariables(Aws::Vector< PipelineVariable > &&value)
StartPipelineExecutionRequest & AddSourceRevisions(const SourceRevisionOverride &value)
StartPipelineExecutionRequest & AddSourceRevisions(SourceRevisionOverride &&value)
void SetVariables(const Aws::Vector< PipelineVariable > &value)
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