AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
49 inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); }
50 inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
51 inline PutApprovalResultRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
52 inline PutApprovalResultRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;}
53 inline PutApprovalResultRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
55
57
60 inline const Aws::String& GetStageName() const{ return m_stageName; }
61 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
62 inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
63 inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
64 inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
65 inline PutApprovalResultRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
66 inline PutApprovalResultRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
67 inline PutApprovalResultRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
69
71
74 inline const Aws::String& GetActionName() const{ return m_actionName; }
75 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
76 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
77 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
78 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
79 inline PutApprovalResultRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
80 inline PutApprovalResultRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
81 inline PutApprovalResultRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
83
85
88 inline const ApprovalResult& GetResult() const{ return m_result; }
89 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
90 inline void SetResult(const ApprovalResult& value) { m_resultHasBeenSet = true; m_result = value; }
91 inline void SetResult(ApprovalResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
92 inline PutApprovalResultRequest& WithResult(const ApprovalResult& value) { SetResult(value); return *this;}
93 inline PutApprovalResultRequest& WithResult(ApprovalResult&& value) { SetResult(std::move(value)); return *this;}
95
97
103 inline const Aws::String& GetToken() const{ return m_token; }
104 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
105 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
106 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
107 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
108 inline PutApprovalResultRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
109 inline PutApprovalResultRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
110 inline PutApprovalResultRequest& WithToken(const char* value) { SetToken(value); return *this;}
112 private:
113
114 Aws::String m_pipelineName;
115 bool m_pipelineNameHasBeenSet = false;
116
117 Aws::String m_stageName;
118 bool m_stageNameHasBeenSet = false;
119
120 Aws::String m_actionName;
121 bool m_actionNameHasBeenSet = false;
122
123 ApprovalResult m_result;
124 bool m_resultHasBeenSet = false;
125
126 Aws::String m_token;
127 bool m_tokenHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodePipeline
132} // namespace Aws
PutApprovalResultRequest & WithActionName(const Aws::String &value)
PutApprovalResultRequest & WithPipelineName(const Aws::String &value)
PutApprovalResultRequest & WithPipelineName(Aws::String &&value)
PutApprovalResultRequest & WithToken(const Aws::String &value)
PutApprovalResultRequest & WithResult(ApprovalResult &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutApprovalResultRequest & WithStageName(const char *value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
PutApprovalResultRequest & WithActionName(const char *value)
PutApprovalResultRequest & WithPipelineName(const char *value)
PutApprovalResultRequest & WithToken(const char *value)
PutApprovalResultRequest & WithActionName(Aws::String &&value)
PutApprovalResultRequest & WithToken(Aws::String &&value)
PutApprovalResultRequest & WithStageName(const Aws::String &value)
PutApprovalResultRequest & WithStageName(Aws::String &&value)
PutApprovalResultRequest & WithResult(const ApprovalResult &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String