AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutApprovalResultRequest.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/codepipeline/model/ApprovalResult.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodePipeline
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODEPIPELINE_API PutApprovalResultRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutApprovalResult"; }
36
37 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
38
39 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
47 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
48 template<typename PipelineNameT = Aws::String>
49 void SetPipelineName(PipelineNameT&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::forward<PipelineNameT>(value); }
50 template<typename PipelineNameT = Aws::String>
51 PutApprovalResultRequest& WithPipelineName(PipelineNameT&& value) { SetPipelineName(std::forward<PipelineNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetStageName() const { return m_stageName; }
59 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
60 template<typename StageNameT = Aws::String>
61 void SetStageName(StageNameT&& value) { m_stageNameHasBeenSet = true; m_stageName = std::forward<StageNameT>(value); }
62 template<typename StageNameT = Aws::String>
63 PutApprovalResultRequest& WithStageName(StageNameT&& value) { SetStageName(std::forward<StageNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetActionName() const { return m_actionName; }
71 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
72 template<typename ActionNameT = Aws::String>
73 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
74 template<typename ActionNameT = Aws::String>
75 PutApprovalResultRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
77
79
82 inline const ApprovalResult& GetResult() const { return m_result; }
83 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
84 template<typename ResultT = ApprovalResult>
85 void SetResult(ResultT&& value) { m_resultHasBeenSet = true; m_result = std::forward<ResultT>(value); }
86 template<typename ResultT = ApprovalResult>
87 PutApprovalResultRequest& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
89
91
102 inline const Aws::String& GetToken() const { return m_token; }
103 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
104 template<typename TokenT = Aws::String>
105 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
106 template<typename TokenT = Aws::String>
107 PutApprovalResultRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
109 private:
110
111 Aws::String m_pipelineName;
112 bool m_pipelineNameHasBeenSet = false;
113
114 Aws::String m_stageName;
115 bool m_stageNameHasBeenSet = false;
116
117 Aws::String m_actionName;
118 bool m_actionNameHasBeenSet = false;
119
120 ApprovalResult m_result;
121 bool m_resultHasBeenSet = false;
122
123 Aws::String m_token;
124 bool m_tokenHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CodePipeline
129} // 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