AWS SDK for C++  0.14.3
AWS SDK for C++
StageExecution.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  StageExecution& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetPipelineExecutionId() const{ return m_pipelineExecutionId; }
49 
53  inline void SetPipelineExecutionId(const Aws::String& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
54 
58  inline void SetPipelineExecutionId(Aws::String&& value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId = value; }
59 
63  inline void SetPipelineExecutionId(const char* value) { m_pipelineExecutionIdHasBeenSet = true; m_pipelineExecutionId.assign(value); }
64 
68  inline StageExecution& WithPipelineExecutionId(const Aws::String& value) { SetPipelineExecutionId(value); return *this;}
69 
73  inline StageExecution& WithPipelineExecutionId(Aws::String&& value) { SetPipelineExecutionId(value); return *this;}
74 
78  inline StageExecution& WithPipelineExecutionId(const char* value) { SetPipelineExecutionId(value); return *this;}
79 
84  inline const StageExecutionStatus& GetStatus() const{ return m_status; }
85 
90  inline void SetStatus(const StageExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 
96  inline void SetStatus(StageExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
97 
102  inline StageExecution& WithStatus(const StageExecutionStatus& value) { SetStatus(value); return *this;}
103 
108  inline StageExecution& WithStatus(StageExecutionStatus&& value) { SetStatus(value); return *this;}
109 
110  private:
111  Aws::String m_pipelineExecutionId;
112  bool m_pipelineExecutionIdHasBeenSet;
113  StageExecutionStatus m_status;
114  bool m_statusHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CodePipeline
119 } // namespace Aws
StageExecution & WithStatus(const StageExecutionStatus &value)
const Aws::String & GetPipelineExecutionId() const
void SetPipelineExecutionId(const char *value)
StageExecution & WithPipelineExecutionId(const char *value)
const StageExecutionStatus & GetStatus() const
void SetPipelineExecutionId(Aws::String &&value)
void SetPipelineExecutionId(const Aws::String &value)
#define AWS_CODEPIPELINE_API
StageExecution & WithStatus(StageExecutionStatus &&value)
void SetStatus(StageExecutionStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StageExecution & WithPipelineExecutionId(Aws::String &&value)
void SetStatus(const StageExecutionStatus &value)
JSON (JavaScript Object Notation).
StageExecution & WithPipelineExecutionId(const Aws::String &value)