AWS SDK for C++  0.14.3
AWS SDK for C++
StageDeclaration.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  StageDeclaration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline StageDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline StageDeclaration& WithName(Aws::String&& value) { SetName(value); return *this;}
76 
80  inline StageDeclaration& WithName(const char* value) { SetName(value); return *this;}
81 
85  inline const Aws::Vector<BlockerDeclaration>& GetBlockers() const{ return m_blockers; }
86 
90  inline void SetBlockers(const Aws::Vector<BlockerDeclaration>& value) { m_blockersHasBeenSet = true; m_blockers = value; }
91 
95  inline void SetBlockers(Aws::Vector<BlockerDeclaration>&& value) { m_blockersHasBeenSet = true; m_blockers = value; }
96 
100  inline StageDeclaration& WithBlockers(const Aws::Vector<BlockerDeclaration>& value) { SetBlockers(value); return *this;}
101 
105  inline StageDeclaration& WithBlockers(Aws::Vector<BlockerDeclaration>&& value) { SetBlockers(value); return *this;}
106 
110  inline StageDeclaration& AddBlockers(const BlockerDeclaration& value) { m_blockersHasBeenSet = true; m_blockers.push_back(value); return *this; }
111 
115  inline StageDeclaration& AddBlockers(BlockerDeclaration&& value) { m_blockersHasBeenSet = true; m_blockers.push_back(value); return *this; }
116 
120  inline const Aws::Vector<ActionDeclaration>& GetActions() const{ return m_actions; }
121 
125  inline void SetActions(const Aws::Vector<ActionDeclaration>& value) { m_actionsHasBeenSet = true; m_actions = value; }
126 
130  inline void SetActions(Aws::Vector<ActionDeclaration>&& value) { m_actionsHasBeenSet = true; m_actions = value; }
131 
135  inline StageDeclaration& WithActions(const Aws::Vector<ActionDeclaration>& value) { SetActions(value); return *this;}
136 
140  inline StageDeclaration& WithActions(Aws::Vector<ActionDeclaration>&& value) { SetActions(value); return *this;}
141 
145  inline StageDeclaration& AddActions(const ActionDeclaration& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
146 
150  inline StageDeclaration& AddActions(ActionDeclaration&& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
151 
152  private:
153  Aws::String m_name;
154  bool m_nameHasBeenSet;
156  bool m_blockersHasBeenSet;
158  bool m_actionsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CodePipeline
163 } // namespace Aws
StageDeclaration & WithActions(const Aws::Vector< ActionDeclaration > &value)
StageDeclaration & AddBlockers(const BlockerDeclaration &value)
StageDeclaration & AddActions(ActionDeclaration &&value)
const Aws::Vector< ActionDeclaration > & GetActions() const
void SetActions(const Aws::Vector< ActionDeclaration > &value)
StageDeclaration & WithActions(Aws::Vector< ActionDeclaration > &&value)
void SetName(const Aws::String &value)
StageDeclaration & WithBlockers(const Aws::Vector< BlockerDeclaration > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetName() const
StageDeclaration & WithName(Aws::String &&value)
StageDeclaration & WithName(const char *value)
void SetBlockers(const Aws::Vector< BlockerDeclaration > &value)
#define AWS_CODEPIPELINE_API
StageDeclaration & WithBlockers(Aws::Vector< BlockerDeclaration > &&value)
void SetActions(Aws::Vector< ActionDeclaration > &&value)
StageDeclaration & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StageDeclaration & AddBlockers(BlockerDeclaration &&value)
void SetBlockers(Aws::Vector< BlockerDeclaration > &&value)
StageDeclaration & AddActions(const ActionDeclaration &value)
const Aws::Vector< BlockerDeclaration > & GetBlockers() const
JSON (JavaScript Object Notation).