AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
44 inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); }
45 inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
46 inline StopPipelineExecutionRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
47 inline StopPipelineExecutionRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
48 inline StopPipelineExecutionRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
50
52
57 inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; }
58 inline bool PipelineExecutionIdHasBeenSet() const { return m_pipelineExecutionIdHasBeenSet; }
59 inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
60 inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = std::move(value); }
61 inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
64 inline StopPipelineExecutionRequest& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
66
68
73 inline bool GetAbandon() const{ return m_abandon; }
74 inline bool AbandonHasBeenSet() const { return m_abandonHasBeenSet; }
75 inline void SetAbandon(bool value) { m_abandonHasBeenSet = true; m_abandon = value; }
76 inline StopPipelineExecutionRequest& WithAbandon(bool value) { SetAbandon(value); return *this;}
78
80
84 inline const Aws::String& GetReason() const{ return m_reason; }
85 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
86 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
87 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
88 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
89 inline StopPipelineExecutionRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
90 inline StopPipelineExecutionRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
91 inline StopPipelineExecutionRequest& WithReason(const char* value) { SetReason(value); return *this;}
93 private:
94
95 Aws::String m_pipelineName;
96 bool m_pipelineNameHasBeenSet = false;
97
98 Aws::String m_pipelineExecutionId;
99 bool m_pipelineExecutionIdHasBeenSet = false;
100
101 bool m_abandon;
102 bool m_abandonHasBeenSet = false;
103
104 Aws::String m_reason;
105 bool m_reasonHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CodePipeline
110} // namespace Aws
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
StopPipelineExecutionRequest & WithReason(const Aws::String &value)
StopPipelineExecutionRequest & WithPipelineName(Aws::String &&value)
StopPipelineExecutionRequest & WithPipelineExecutionId(const char *value)
StopPipelineExecutionRequest & WithReason(Aws::String &&value)
StopPipelineExecutionRequest & WithPipelineName(const Aws::String &value)
StopPipelineExecutionRequest & WithPipelineName(const char *value)
StopPipelineExecutionRequest & WithReason(const char *value)
StopPipelineExecutionRequest & WithPipelineExecutionId(const Aws::String &value)
StopPipelineExecutionRequest & WithPipelineExecutionId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String