AWS SDK for C++  0.14.3
AWS SDK for C++
PutApprovalResultRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace CodePipeline
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
43 
47  inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
48 
52  inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
53 
57  inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
58 
62  inline PutApprovalResultRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
63 
67  inline PutApprovalResultRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(value); return *this;}
68 
72  inline PutApprovalResultRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
73 
77  inline const Aws::String& GetStageName() const{ return m_stageName; }
78 
82  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
83 
87  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
88 
92  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
93 
97  inline PutApprovalResultRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
98 
102  inline PutApprovalResultRequest& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
103 
107  inline PutApprovalResultRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
108 
112  inline const Aws::String& GetActionName() const{ return m_actionName; }
113 
117  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
118 
122  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
123 
127  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
128 
132  inline PutApprovalResultRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
133 
137  inline PutApprovalResultRequest& WithActionName(Aws::String&& value) { SetActionName(value); return *this;}
138 
142  inline PutApprovalResultRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
143 
147  inline const ApprovalResult& GetResult() const{ return m_result; }
148 
152  inline void SetResult(const ApprovalResult& value) { m_resultHasBeenSet = true; m_result = value; }
153 
157  inline void SetResult(ApprovalResult&& value) { m_resultHasBeenSet = true; m_result = value; }
158 
162  inline PutApprovalResultRequest& WithResult(const ApprovalResult& value) { SetResult(value); return *this;}
163 
167  inline PutApprovalResultRequest& WithResult(ApprovalResult&& value) { SetResult(value); return *this;}
168 
175  inline const Aws::String& GetToken() const{ return m_token; }
176 
183  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
184 
191  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = value; }
192 
199  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
200 
207  inline PutApprovalResultRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
208 
215  inline PutApprovalResultRequest& WithToken(Aws::String&& value) { SetToken(value); return *this;}
216 
223  inline PutApprovalResultRequest& WithToken(const char* value) { SetToken(value); return *this;}
224 
225  private:
226  Aws::String m_pipelineName;
227  bool m_pipelineNameHasBeenSet;
228  Aws::String m_stageName;
229  bool m_stageNameHasBeenSet;
230  Aws::String m_actionName;
231  bool m_actionNameHasBeenSet;
232  ApprovalResult m_result;
233  bool m_resultHasBeenSet;
234  Aws::String m_token;
235  bool m_tokenHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace CodePipeline
240 } // namespace Aws
PutApprovalResultRequest & WithToken(Aws::String &&value)
PutApprovalResultRequest & WithToken(const Aws::String &value)
PutApprovalResultRequest & WithToken(const char *value)
PutApprovalResultRequest & WithActionName(Aws::String &&value)
PutApprovalResultRequest & WithPipelineName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutApprovalResultRequest & WithActionName(const char *value)
PutApprovalResultRequest & WithResult(const ApprovalResult &value)
PutApprovalResultRequest & WithResult(ApprovalResult &&value)
#define AWS_CODEPIPELINE_API
PutApprovalResultRequest & WithStageName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutApprovalResultRequest & WithPipelineName(const char *value)
PutApprovalResultRequest & WithStageName(const char *value)
PutApprovalResultRequest & WithStageName(Aws::String &&value)
PutApprovalResultRequest & WithActionName(const Aws::String &value)
JSON (JavaScript Object Notation).
PutApprovalResultRequest & WithPipelineName(const Aws::String &value)