AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutApprovalResultRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/codepipeline/model/ApprovalResult.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodePipeline {
16namespace Model {
17
25 public:
26 AWS_CODEPIPELINE_API PutApprovalResultRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutApprovalResult"; }
33
34 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
35
36 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
43 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
44 template <typename PipelineNameT = Aws::String>
45 void SetPipelineName(PipelineNameT&& value) {
46 m_pipelineNameHasBeenSet = true;
47 m_pipelineName = std::forward<PipelineNameT>(value);
48 }
49 template <typename PipelineNameT = Aws::String>
51 SetPipelineName(std::forward<PipelineNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetStageName() const { return m_stageName; }
61 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
62 template <typename StageNameT = Aws::String>
63 void SetStageName(StageNameT&& value) {
64 m_stageNameHasBeenSet = true;
65 m_stageName = std::forward<StageNameT>(value);
66 }
67 template <typename StageNameT = Aws::String>
69 SetStageName(std::forward<StageNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetActionName() const { return m_actionName; }
79 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
80 template <typename ActionNameT = Aws::String>
81 void SetActionName(ActionNameT&& value) {
82 m_actionNameHasBeenSet = true;
83 m_actionName = std::forward<ActionNameT>(value);
84 }
85 template <typename ActionNameT = Aws::String>
87 SetActionName(std::forward<ActionNameT>(value));
88 return *this;
89 }
91
93
96 inline const ApprovalResult& GetResult() const { return m_result; }
97 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
98 template <typename ResultT = ApprovalResult>
99 void SetResult(ResultT&& value) {
100 m_resultHasBeenSet = true;
101 m_result = std::forward<ResultT>(value);
102 }
103 template <typename ResultT = ApprovalResult>
105 SetResult(std::forward<ResultT>(value));
106 return *this;
107 }
109
111
122 inline const Aws::String& GetToken() const { return m_token; }
123 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
124 template <typename TokenT = Aws::String>
125 void SetToken(TokenT&& value) {
126 m_tokenHasBeenSet = true;
127 m_token = std::forward<TokenT>(value);
128 }
129 template <typename TokenT = Aws::String>
131 SetToken(std::forward<TokenT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_pipelineName;
137
138 Aws::String m_stageName;
139
140 Aws::String m_actionName;
141
142 ApprovalResult m_result;
143
144 Aws::String m_token;
145 bool m_pipelineNameHasBeenSet = false;
146 bool m_stageNameHasBeenSet = false;
147 bool m_actionNameHasBeenSet = false;
148 bool m_resultHasBeenSet = false;
149 bool m_tokenHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace CodePipeline
154} // namespace Aws
AWS_CODEPIPELINE_API PutApprovalResultRequest()=default
PutApprovalResultRequest & WithToken(TokenT &&value)
PutApprovalResultRequest & WithResult(ResultT &&value)
PutApprovalResultRequest & WithPipelineName(PipelineNameT &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutApprovalResultRequest & WithStageName(StageNameT &&value)
virtual const char * GetServiceRequestName() const override
PutApprovalResultRequest & WithActionName(ActionNameT &&value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String