AWS SDK for C++  0.14.3
AWS SDK for C++
ActionExecution.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace CodePipeline
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ActionExecution& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const ActionExecutionStatus& GetStatus() const{ return m_status; }
52 
57  inline void SetStatus(const ActionExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
58 
63  inline void SetStatus(ActionExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
64 
69  inline ActionExecution& WithStatus(const ActionExecutionStatus& value) { SetStatus(value); return *this;}
70 
75  inline ActionExecution& WithStatus(ActionExecutionStatus&& value) { SetStatus(value); return *this;}
76 
80  inline const Aws::String& GetSummary() const{ return m_summary; }
81 
85  inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
86 
90  inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = value; }
91 
95  inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
96 
100  inline ActionExecution& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
101 
105  inline ActionExecution& WithSummary(Aws::String&& value) { SetSummary(value); return *this;}
106 
110  inline ActionExecution& WithSummary(const char* value) { SetSummary(value); return *this;}
111 
115  inline const Aws::Utils::DateTime& GetLastStatusChange() const{ return m_lastStatusChange; }
116 
120  inline void SetLastStatusChange(const Aws::Utils::DateTime& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = value; }
121 
125  inline void SetLastStatusChange(Aws::Utils::DateTime&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = value; }
126 
130  inline ActionExecution& WithLastStatusChange(const Aws::Utils::DateTime& value) { SetLastStatusChange(value); return *this;}
131 
135  inline ActionExecution& WithLastStatusChange(Aws::Utils::DateTime&& value) { SetLastStatusChange(value); return *this;}
136 
143  inline const Aws::String& GetToken() const{ return m_token; }
144 
151  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
152 
159  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = value; }
160 
167  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
168 
175  inline ActionExecution& WithToken(const Aws::String& value) { SetToken(value); return *this;}
176 
183  inline ActionExecution& WithToken(Aws::String&& value) { SetToken(value); return *this;}
184 
191  inline ActionExecution& WithToken(const char* value) { SetToken(value); return *this;}
192 
196  inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; }
197 
201  inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; }
202 
206  inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; }
207 
211  inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy.assign(value); }
212 
216  inline ActionExecution& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;}
217 
221  inline ActionExecution& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(value); return *this;}
222 
226  inline ActionExecution& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;}
227 
231  inline const Aws::String& GetExternalExecutionId() const{ return m_externalExecutionId; }
232 
236  inline void SetExternalExecutionId(const Aws::String& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = value; }
237 
241  inline void SetExternalExecutionId(Aws::String&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = value; }
242 
246  inline void SetExternalExecutionId(const char* value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId.assign(value); }
247 
251  inline ActionExecution& WithExternalExecutionId(const Aws::String& value) { SetExternalExecutionId(value); return *this;}
252 
256  inline ActionExecution& WithExternalExecutionId(Aws::String&& value) { SetExternalExecutionId(value); return *this;}
257 
261  inline ActionExecution& WithExternalExecutionId(const char* value) { SetExternalExecutionId(value); return *this;}
262 
267  inline const Aws::String& GetExternalExecutionUrl() const{ return m_externalExecutionUrl; }
268 
273  inline void SetExternalExecutionUrl(const Aws::String& value) { m_externalExecutionUrlHasBeenSet = true; m_externalExecutionUrl = value; }
274 
279  inline void SetExternalExecutionUrl(Aws::String&& value) { m_externalExecutionUrlHasBeenSet = true; m_externalExecutionUrl = value; }
280 
285  inline void SetExternalExecutionUrl(const char* value) { m_externalExecutionUrlHasBeenSet = true; m_externalExecutionUrl.assign(value); }
286 
291  inline ActionExecution& WithExternalExecutionUrl(const Aws::String& value) { SetExternalExecutionUrl(value); return *this;}
292 
297  inline ActionExecution& WithExternalExecutionUrl(Aws::String&& value) { SetExternalExecutionUrl(value); return *this;}
298 
303  inline ActionExecution& WithExternalExecutionUrl(const char* value) { SetExternalExecutionUrl(value); return *this;}
304 
308  inline int GetPercentComplete() const{ return m_percentComplete; }
309 
313  inline void SetPercentComplete(int value) { m_percentCompleteHasBeenSet = true; m_percentComplete = value; }
314 
318  inline ActionExecution& WithPercentComplete(int value) { SetPercentComplete(value); return *this;}
319 
323  inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; }
324 
328  inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
329 
333  inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
334 
338  inline ActionExecution& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;}
339 
343  inline ActionExecution& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(value); return *this;}
344 
345  private:
346  ActionExecutionStatus m_status;
347  bool m_statusHasBeenSet;
348  Aws::String m_summary;
349  bool m_summaryHasBeenSet;
350  Aws::Utils::DateTime m_lastStatusChange;
351  bool m_lastStatusChangeHasBeenSet;
352  Aws::String m_token;
353  bool m_tokenHasBeenSet;
354  Aws::String m_lastUpdatedBy;
355  bool m_lastUpdatedByHasBeenSet;
356  Aws::String m_externalExecutionId;
357  bool m_externalExecutionIdHasBeenSet;
358  Aws::String m_externalExecutionUrl;
359  bool m_externalExecutionUrlHasBeenSet;
360  int m_percentComplete;
361  bool m_percentCompleteHasBeenSet;
362  ErrorDetails m_errorDetails;
363  bool m_errorDetailsHasBeenSet;
364  };
365 
366 } // namespace Model
367 } // namespace CodePipeline
368 } // namespace Aws
void SetStatus(const ActionExecutionStatus &value)
ActionExecution & WithExternalExecutionId(Aws::String &&value)
const ActionExecutionStatus & GetStatus() const
const Aws::String & GetExternalExecutionUrl() const
ActionExecution & WithErrorDetails(ErrorDetails &&value)
void SetSummary(const Aws::String &value)
ActionExecution & WithExternalExecutionId(const Aws::String &value)
void SetErrorDetails(const ErrorDetails &value)
const Aws::Utils::DateTime & GetLastStatusChange() const
ActionExecution & WithStatus(ActionExecutionStatus &&value)
ActionExecution & WithExternalExecutionUrl(const char *value)
const ErrorDetails & GetErrorDetails() const
ActionExecution & WithPercentComplete(int value)
const Aws::String & GetLastUpdatedBy() const
ActionExecution & WithExternalExecutionId(const char *value)
void SetExternalExecutionUrl(Aws::String &&value)
ActionExecution & WithStatus(const ActionExecutionStatus &value)
void SetToken(const Aws::String &value)
void SetLastStatusChange(const Aws::Utils::DateTime &value)
void SetExternalExecutionId(const Aws::String &value)
ActionExecution & WithToken(const char *value)
ActionExecution & WithErrorDetails(const ErrorDetails &value)
void SetExternalExecutionUrl(const char *value)
void SetExternalExecutionUrl(const Aws::String &value)
void SetStatus(ActionExecutionStatus &&value)
ActionExecution & WithSummary(const Aws::String &value)
#define AWS_CODEPIPELINE_API
ActionExecution & WithLastUpdatedBy(const Aws::String &value)
ActionExecution & WithLastStatusChange(const Aws::Utils::DateTime &value)
ActionExecution & WithExternalExecutionUrl(Aws::String &&value)
const Aws::String & GetExternalExecutionId() const
ActionExecution & WithSummary(Aws::String &&value)
const Aws::String & GetSummary() const
ActionExecution & WithSummary(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetExternalExecutionId(const char *value)
ActionExecution & WithToken(Aws::String &&value)
void SetErrorDetails(ErrorDetails &&value)
ActionExecution & WithLastStatusChange(Aws::Utils::DateTime &&value)
ActionExecution & WithLastUpdatedBy(Aws::String &&value)
ActionExecution & WithExternalExecutionUrl(const Aws::String &value)
const Aws::String & GetToken() const
void SetExternalExecutionId(Aws::String &&value)
ActionExecution & WithToken(const Aws::String &value)
ActionExecution & WithLastUpdatedBy(const char *value)
void SetLastUpdatedBy(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetLastUpdatedBy(const Aws::String &value)
void SetLastStatusChange(Aws::Utils::DateTime &&value)