AWS SDK for C++  0.14.3
AWS SDK for C++
PipelineContext.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 Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CodePipeline
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  PipelineContext& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
51 
56  inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
57 
62  inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; }
63 
68  inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); }
69 
74  inline PipelineContext& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
75 
80  inline PipelineContext& WithPipelineName(Aws::String&& value) { SetPipelineName(value); return *this;}
81 
86  inline PipelineContext& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
87 
91  inline const StageContext& GetStage() const{ return m_stage; }
92 
96  inline void SetStage(const StageContext& value) { m_stageHasBeenSet = true; m_stage = value; }
97 
101  inline void SetStage(StageContext&& value) { m_stageHasBeenSet = true; m_stage = value; }
102 
106  inline PipelineContext& WithStage(const StageContext& value) { SetStage(value); return *this;}
107 
111  inline PipelineContext& WithStage(StageContext&& value) { SetStage(value); return *this;}
112 
113 
114  inline const ActionContext& GetAction() const{ return m_action; }
115 
116 
117  inline void SetAction(const ActionContext& value) { m_actionHasBeenSet = true; m_action = value; }
118 
119 
120  inline void SetAction(ActionContext&& value) { m_actionHasBeenSet = true; m_action = value; }
121 
122 
123  inline PipelineContext& WithAction(const ActionContext& value) { SetAction(value); return *this;}
124 
125 
126  inline PipelineContext& WithAction(ActionContext&& value) { SetAction(value); return *this;}
127 
128  private:
129  Aws::String m_pipelineName;
130  bool m_pipelineNameHasBeenSet;
131  StageContext m_stage;
132  bool m_stageHasBeenSet;
133  ActionContext m_action;
134  bool m_actionHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace CodePipeline
139 } // namespace Aws
void SetStage(const StageContext &value)
PipelineContext & WithStage(StageContext &&value)
PipelineContext & WithPipelineName(const Aws::String &value)
PipelineContext & WithStage(const StageContext &value)
void SetAction(ActionContext &&value)
const Aws::String & GetPipelineName() const
void SetPipelineName(const Aws::String &value)
void SetAction(const ActionContext &value)
void SetPipelineName(Aws::String &&value)
PipelineContext & WithPipelineName(const char *value)
PipelineContext & WithPipelineName(Aws::String &&value)
#define AWS_CODEPIPELINE_API
PipelineContext & WithAction(const ActionContext &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ActionContext & GetAction() const
PipelineContext & WithAction(ActionContext &&value)
const StageContext & GetStage() const
JSON (JavaScript Object Notation).