AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StopPipelineExecutionRequest.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 <utility>
11
12namespace Aws
13{
14namespace CodePipeline
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CODEPIPELINE_API StopPipelineExecutionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StopPipelineExecution"; }
31
32 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
33
34 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
42 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
43 template<typename PipelineNameT = Aws::String>
44 void SetPipelineName(PipelineNameT&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::forward<PipelineNameT>(value); }
45 template<typename PipelineNameT = Aws::String>
46 StopPipelineExecutionRequest& WithPipelineName(PipelineNameT&& value) { SetPipelineName(std::forward<PipelineNameT>(value)); return *this;}
48
50
55 inline const Aws::String& GetPipelineExecutionId() const { return m_pipelineExecutionId; }
56 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
57 template<typename PipelineExecutionIdT = Aws::String>
58 void SetPipelineExecutionId(PipelineExecutionIdT&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::forward<PipelineExecutionIdT>(value); }
59 template<typename PipelineExecutionIdT = Aws::String>
60 StopPipelineExecutionRequest& WithPipelineExecutionId(PipelineExecutionIdT&& value) { SetPipelineExecutionId(std::forward<PipelineExecutionIdT>(value)); return *this;}
62
64
69 inline bool GetAbandon() const { return m_abandon; }
70 inline bool AbandonHasBeenSet() const { return m_abandonHasBeenSet; }
71 inline void SetAbandon(bool value) { m_abandonHasBeenSet = true; m_abandon = value; }
72 inline StopPipelineExecutionRequest& WithAbandon(bool value) { SetAbandon(value); return *this;}
74
76
80 inline const Aws::String& GetReason() const { return m_reason; }
81 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
82 template<typename ReasonT = Aws::String>
83 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
84 template<typename ReasonT = Aws::String>
85 StopPipelineExecutionRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
87 private:
88
89 Aws::String m_pipelineName;
90 bool m_pipelineNameHasBeenSet = false;
91
92 Aws::String m_pipelineExecutionId;
93 bool m_pipelineExecutionIdHasBeenSet = false;
94
95 bool m_abandon{false};
96 bool m_abandonHasBeenSet = false;
97
98 Aws::String m_reason;
99 bool m_reasonHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodePipeline
104} // 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