AWS SDK for C++  0.14.3
AWS SDK for C++
ExecutionDetails.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CodePipeline
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  ExecutionDetails& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetSummary() const{ return m_summary; }
49 
53  inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
54 
58  inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = value; }
59 
63  inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
64 
68  inline ExecutionDetails& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
69 
73  inline ExecutionDetails& WithSummary(Aws::String&& value) { SetSummary(value); return *this;}
74 
78  inline ExecutionDetails& WithSummary(const char* value) { SetSummary(value); return *this;}
79 
84  inline const Aws::String& GetExternalExecutionId() const{ return m_externalExecutionId; }
85 
90  inline void SetExternalExecutionId(const Aws::String& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = value; }
91 
96  inline void SetExternalExecutionId(Aws::String&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = value; }
97 
102  inline void SetExternalExecutionId(const char* value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId.assign(value); }
103 
108  inline ExecutionDetails& WithExternalExecutionId(const Aws::String& value) { SetExternalExecutionId(value); return *this;}
109 
114  inline ExecutionDetails& WithExternalExecutionId(Aws::String&& value) { SetExternalExecutionId(value); return *this;}
115 
120  inline ExecutionDetails& WithExternalExecutionId(const char* value) { SetExternalExecutionId(value); return *this;}
121 
126  inline int GetPercentComplete() const{ return m_percentComplete; }
127 
132  inline void SetPercentComplete(int value) { m_percentCompleteHasBeenSet = true; m_percentComplete = value; }
133 
138  inline ExecutionDetails& WithPercentComplete(int value) { SetPercentComplete(value); return *this;}
139 
140  private:
141  Aws::String m_summary;
142  bool m_summaryHasBeenSet;
143  Aws::String m_externalExecutionId;
144  bool m_externalExecutionIdHasBeenSet;
145  int m_percentComplete;
146  bool m_percentCompleteHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace CodePipeline
151 } // namespace Aws
ExecutionDetails & WithExternalExecutionId(const char *value)
ExecutionDetails & WithExternalExecutionId(const Aws::String &value)
ExecutionDetails & WithPercentComplete(int value)
void SetExternalExecutionId(Aws::String &&value)
ExecutionDetails & WithSummary(Aws::String &&value)
const Aws::String & GetExternalExecutionId() const
void SetExternalExecutionId(const Aws::String &value)
const Aws::String & GetSummary() const
ExecutionDetails & WithSummary(const Aws::String &value)
#define AWS_CODEPIPELINE_API
ExecutionDetails & WithSummary(const char *value)
ExecutionDetails & WithExternalExecutionId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSummary(const Aws::String &value)
JSON (JavaScript Object Notation).