1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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/CurrentRevision.h>
11 #include <aws/codepipeline/model/ExecutionDetails.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodePipeline
17 {
18 namespace Model
19 {
20 
21   /**
22    * <p>Represents the input of a <code>PutThirdPartyJobSuccessResult</code>
23    * action.</p><p><h3>See Also:</h3>   <a
24    * href="http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResultInput">AWS
25    * API Reference</a></p>
26    */
27   class AWS_CODEPIPELINE_API PutThirdPartyJobSuccessResultRequest : public CodePipelineRequest
28   {
29   public:
30     PutThirdPartyJobSuccessResultRequest();
31 
32     // Service request name is the Operation name which will send this request out,
33     // each operation should has unique request name, so that we can get operation's name from this request.
34     // Note: this is not true for response, multiple operations may have the same response name,
35     // so we can not get operation's name from response.
GetServiceRequestName()36     inline virtual const char* GetServiceRequestName() const override { return "PutThirdPartyJobSuccessResult"; }
37 
38     Aws::String SerializePayload() const override;
39 
40     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
42 
43     /**
44      * <p>The ID of the job that successfully completed. This is the same ID returned
45      * from <code>PollForThirdPartyJobs</code>.</p>
46      */
GetJobId()47     inline const Aws::String& GetJobId() const{ return m_jobId; }
48 
49     /**
50      * <p>The ID of the job that successfully completed. This is the same ID returned
51      * from <code>PollForThirdPartyJobs</code>.</p>
52      */
JobIdHasBeenSet()53     inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
54 
55     /**
56      * <p>The ID of the job that successfully completed. This is the same ID returned
57      * from <code>PollForThirdPartyJobs</code>.</p>
58      */
SetJobId(const Aws::String & value)59     inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
60 
61     /**
62      * <p>The ID of the job that successfully completed. This is the same ID returned
63      * from <code>PollForThirdPartyJobs</code>.</p>
64      */
SetJobId(Aws::String && value)65     inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
66 
67     /**
68      * <p>The ID of the job that successfully completed. This is the same ID returned
69      * from <code>PollForThirdPartyJobs</code>.</p>
70      */
SetJobId(const char * value)71     inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
72 
73     /**
74      * <p>The ID of the job that successfully completed. This is the same ID returned
75      * from <code>PollForThirdPartyJobs</code>.</p>
76      */
WithJobId(const Aws::String & value)77     inline PutThirdPartyJobSuccessResultRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
78 
79     /**
80      * <p>The ID of the job that successfully completed. This is the same ID returned
81      * from <code>PollForThirdPartyJobs</code>.</p>
82      */
WithJobId(Aws::String && value)83     inline PutThirdPartyJobSuccessResultRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
84 
85     /**
86      * <p>The ID of the job that successfully completed. This is the same ID returned
87      * from <code>PollForThirdPartyJobs</code>.</p>
88      */
WithJobId(const char * value)89     inline PutThirdPartyJobSuccessResultRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
90 
91 
92     /**
93      * <p>The clientToken portion of the clientId and clientToken pair used to verify
94      * that the calling entity is allowed access to the job and its details.</p>
95      */
GetClientToken()96     inline const Aws::String& GetClientToken() const{ return m_clientToken; }
97 
98     /**
99      * <p>The clientToken portion of the clientId and clientToken pair used to verify
100      * that the calling entity is allowed access to the job and its details.</p>
101      */
ClientTokenHasBeenSet()102     inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 
104     /**
105      * <p>The clientToken portion of the clientId and clientToken pair used to verify
106      * that the calling entity is allowed access to the job and its details.</p>
107      */
SetClientToken(const Aws::String & value)108     inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
109 
110     /**
111      * <p>The clientToken portion of the clientId and clientToken pair used to verify
112      * that the calling entity is allowed access to the job and its details.</p>
113      */
SetClientToken(Aws::String && value)114     inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
115 
116     /**
117      * <p>The clientToken portion of the clientId and clientToken pair used to verify
118      * that the calling entity is allowed access to the job and its details.</p>
119      */
SetClientToken(const char * value)120     inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
121 
122     /**
123      * <p>The clientToken portion of the clientId and clientToken pair used to verify
124      * that the calling entity is allowed access to the job and its details.</p>
125      */
WithClientToken(const Aws::String & value)126     inline PutThirdPartyJobSuccessResultRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
127 
128     /**
129      * <p>The clientToken portion of the clientId and clientToken pair used to verify
130      * that the calling entity is allowed access to the job and its details.</p>
131      */
WithClientToken(Aws::String && value)132     inline PutThirdPartyJobSuccessResultRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
133 
134     /**
135      * <p>The clientToken portion of the clientId and clientToken pair used to verify
136      * that the calling entity is allowed access to the job and its details.</p>
137      */
WithClientToken(const char * value)138     inline PutThirdPartyJobSuccessResultRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
139 
140 
141     /**
142      * <p>Represents information about a current revision.</p>
143      */
GetCurrentRevision()144     inline const CurrentRevision& GetCurrentRevision() const{ return m_currentRevision; }
145 
146     /**
147      * <p>Represents information about a current revision.</p>
148      */
CurrentRevisionHasBeenSet()149     inline bool CurrentRevisionHasBeenSet() const { return m_currentRevisionHasBeenSet; }
150 
151     /**
152      * <p>Represents information about a current revision.</p>
153      */
SetCurrentRevision(const CurrentRevision & value)154     inline void SetCurrentRevision(const CurrentRevision& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = value; }
155 
156     /**
157      * <p>Represents information about a current revision.</p>
158      */
SetCurrentRevision(CurrentRevision && value)159     inline void SetCurrentRevision(CurrentRevision&& value) { m_currentRevisionHasBeenSet = true; m_currentRevision = std::move(value); }
160 
161     /**
162      * <p>Represents information about a current revision.</p>
163      */
WithCurrentRevision(const CurrentRevision & value)164     inline PutThirdPartyJobSuccessResultRequest& WithCurrentRevision(const CurrentRevision& value) { SetCurrentRevision(value); return *this;}
165 
166     /**
167      * <p>Represents information about a current revision.</p>
168      */
WithCurrentRevision(CurrentRevision && value)169     inline PutThirdPartyJobSuccessResultRequest& WithCurrentRevision(CurrentRevision&& value) { SetCurrentRevision(std::move(value)); return *this;}
170 
171 
172     /**
173      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
174      * that a successful job provides to identify a partner action in progress. Future
175      * jobs use this token to identify the running instance of the action. It can be
176      * reused to return more information about the progress of the partner action. When
177      * the action is complete, no continuation token should be supplied.</p>
178      */
GetContinuationToken()179     inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; }
180 
181     /**
182      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
183      * that a successful job provides to identify a partner action in progress. Future
184      * jobs use this token to identify the running instance of the action. It can be
185      * reused to return more information about the progress of the partner action. When
186      * the action is complete, no continuation token should be supplied.</p>
187      */
ContinuationTokenHasBeenSet()188     inline bool ContinuationTokenHasBeenSet() const { return m_continuationTokenHasBeenSet; }
189 
190     /**
191      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
192      * that a successful job provides to identify a partner action in progress. Future
193      * jobs use this token to identify the running instance of the action. It can be
194      * reused to return more information about the progress of the partner action. When
195      * the action is complete, no continuation token should be supplied.</p>
196      */
SetContinuationToken(const Aws::String & value)197     inline void SetContinuationToken(const Aws::String& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = value; }
198 
199     /**
200      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
201      * that a successful job provides to identify a partner action in progress. Future
202      * jobs use this token to identify the running instance of the action. It can be
203      * reused to return more information about the progress of the partner action. When
204      * the action is complete, no continuation token should be supplied.</p>
205      */
SetContinuationToken(Aws::String && value)206     inline void SetContinuationToken(Aws::String&& value) { m_continuationTokenHasBeenSet = true; m_continuationToken = std::move(value); }
207 
208     /**
209      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
210      * that a successful job provides to identify a partner action in progress. Future
211      * jobs use this token to identify the running instance of the action. It can be
212      * reused to return more information about the progress of the partner action. When
213      * the action is complete, no continuation token should be supplied.</p>
214      */
SetContinuationToken(const char * value)215     inline void SetContinuationToken(const char* value) { m_continuationTokenHasBeenSet = true; m_continuationToken.assign(value); }
216 
217     /**
218      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
219      * that a successful job provides to identify a partner action in progress. Future
220      * jobs use this token to identify the running instance of the action. It can be
221      * reused to return more information about the progress of the partner action. When
222      * the action is complete, no continuation token should be supplied.</p>
223      */
WithContinuationToken(const Aws::String & value)224     inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;}
225 
226     /**
227      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
228      * that a successful job provides to identify a partner action in progress. Future
229      * jobs use this token to identify the running instance of the action. It can be
230      * reused to return more information about the progress of the partner action. When
231      * the action is complete, no continuation token should be supplied.</p>
232      */
WithContinuationToken(Aws::String && value)233     inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;}
234 
235     /**
236      * <p>A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
237      * that a successful job provides to identify a partner action in progress. Future
238      * jobs use this token to identify the running instance of the action. It can be
239      * reused to return more information about the progress of the partner action. When
240      * the action is complete, no continuation token should be supplied.</p>
241      */
WithContinuationToken(const char * value)242     inline PutThirdPartyJobSuccessResultRequest& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;}
243 
244 
245     /**
246      * <p>The details of the actions taken and results produced on an artifact as it
247      * passes through stages in the pipeline. </p>
248      */
GetExecutionDetails()249     inline const ExecutionDetails& GetExecutionDetails() const{ return m_executionDetails; }
250 
251     /**
252      * <p>The details of the actions taken and results produced on an artifact as it
253      * passes through stages in the pipeline. </p>
254      */
ExecutionDetailsHasBeenSet()255     inline bool ExecutionDetailsHasBeenSet() const { return m_executionDetailsHasBeenSet; }
256 
257     /**
258      * <p>The details of the actions taken and results produced on an artifact as it
259      * passes through stages in the pipeline. </p>
260      */
SetExecutionDetails(const ExecutionDetails & value)261     inline void SetExecutionDetails(const ExecutionDetails& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = value; }
262 
263     /**
264      * <p>The details of the actions taken and results produced on an artifact as it
265      * passes through stages in the pipeline. </p>
266      */
SetExecutionDetails(ExecutionDetails && value)267     inline void SetExecutionDetails(ExecutionDetails&& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = std::move(value); }
268 
269     /**
270      * <p>The details of the actions taken and results produced on an artifact as it
271      * passes through stages in the pipeline. </p>
272      */
WithExecutionDetails(const ExecutionDetails & value)273     inline PutThirdPartyJobSuccessResultRequest& WithExecutionDetails(const ExecutionDetails& value) { SetExecutionDetails(value); return *this;}
274 
275     /**
276      * <p>The details of the actions taken and results produced on an artifact as it
277      * passes through stages in the pipeline. </p>
278      */
WithExecutionDetails(ExecutionDetails && value)279     inline PutThirdPartyJobSuccessResultRequest& WithExecutionDetails(ExecutionDetails&& value) { SetExecutionDetails(std::move(value)); return *this;}
280 
281   private:
282 
283     Aws::String m_jobId;
284     bool m_jobIdHasBeenSet;
285 
286     Aws::String m_clientToken;
287     bool m_clientTokenHasBeenSet;
288 
289     CurrentRevision m_currentRevision;
290     bool m_currentRevisionHasBeenSet;
291 
292     Aws::String m_continuationToken;
293     bool m_continuationTokenHasBeenSet;
294 
295     ExecutionDetails m_executionDetails;
296     bool m_executionDetailsHasBeenSet;
297   };
298 
299 } // namespace Model
300 } // namespace CodePipeline
301 } // namespace Aws
302