AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StopPipelineExecutionRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodePipeline {
15namespace Model {
16
20 public:
21 AWS_CODEPIPELINE_API StopPipelineExecutionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "StopPipelineExecution"; }
28
29 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
30
31 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
38 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
39 template <typename PipelineNameT = Aws::String>
40 void SetPipelineName(PipelineNameT&& value) {
41 m_pipelineNameHasBeenSet = true;
42 m_pipelineName = std::forward<PipelineNameT>(value);
43 }
44 template <typename PipelineNameT = Aws::String>
46 SetPipelineName(std::forward<PipelineNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetPipelineExecutionId() const { return m_pipelineExecutionId; }
58 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
59 template <typename PipelineExecutionIdT = Aws::String>
60 void SetPipelineExecutionId(PipelineExecutionIdT&& value) {
61 m_pipelineExecutionIdHasBeenSet = true;
62 m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value);
63 }
64 template <typename PipelineExecutionIdT = Aws::String>
66 SetPipelineExecutionId(std::forward<PipelineExecutionIdT>(value));
67 return *this;
68 }
70
72
77 inline bool GetAbandon() const { return m_abandon; }
78 inline bool AbandonHasBeenSet() const { return m_abandonHasBeenSet; }
79 inline void SetAbandon(bool value) {
80 m_abandonHasBeenSet = true;
81 m_abandon = value;
82 }
84 SetAbandon(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetReason() const { return m_reason; }
95 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
96 template <typename ReasonT = Aws::String>
97 void SetReason(ReasonT&& value) {
98 m_reasonHasBeenSet = true;
99 m_reason = std::forward<ReasonT>(value);
100 }
101 template <typename ReasonT = Aws::String>
103 SetReason(std::forward<ReasonT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_pipelineName;
109
110 Aws::String m_pipelineExecutionId;
111
112 bool m_abandon{false};
113
114 Aws::String m_reason;
115 bool m_pipelineNameHasBeenSet = false;
116 bool m_pipelineExecutionIdHasBeenSet = false;
117 bool m_abandonHasBeenSet = false;
118 bool m_reasonHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CodePipeline
123} // namespace Aws
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
StopPipelineExecutionRequest & WithReason(ReasonT &&value)
StopPipelineExecutionRequest & WithPipelineExecutionId(PipelineExecutionIdT &&value)
AWS_CODEPIPELINE_API StopPipelineExecutionRequest()=default
StopPipelineExecutionRequest & WithPipelineName(PipelineNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String