AWS SDK for C++  0.14.3
AWS SDK for C++
StageState.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace CodePipeline
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  StageState();
44  StageState(const Aws::Utils::Json::JsonValue& jsonValue);
45  StageState& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetStageName() const{ return m_stageName; }
52 
56  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
57 
61  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
62 
66  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
67 
71  inline StageState& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
72 
76  inline StageState& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
77 
81  inline StageState& WithStageName(const char* value) { SetStageName(value); return *this;}
82 
86  inline const TransitionState& GetInboundTransitionState() const{ return m_inboundTransitionState; }
87 
91  inline void SetInboundTransitionState(const TransitionState& value) { m_inboundTransitionStateHasBeenSet = true; m_inboundTransitionState = value; }
92 
96  inline void SetInboundTransitionState(TransitionState&& value) { m_inboundTransitionStateHasBeenSet = true; m_inboundTransitionState = value; }
97 
101  inline StageState& WithInboundTransitionState(const TransitionState& value) { SetInboundTransitionState(value); return *this;}
102 
106  inline StageState& WithInboundTransitionState(TransitionState&& value) { SetInboundTransitionState(value); return *this;}
107 
111  inline const Aws::Vector<ActionState>& GetActionStates() const{ return m_actionStates; }
112 
116  inline void SetActionStates(const Aws::Vector<ActionState>& value) { m_actionStatesHasBeenSet = true; m_actionStates = value; }
117 
121  inline void SetActionStates(Aws::Vector<ActionState>&& value) { m_actionStatesHasBeenSet = true; m_actionStates = value; }
122 
126  inline StageState& WithActionStates(const Aws::Vector<ActionState>& value) { SetActionStates(value); return *this;}
127 
131  inline StageState& WithActionStates(Aws::Vector<ActionState>&& value) { SetActionStates(value); return *this;}
132 
136  inline StageState& AddActionStates(const ActionState& value) { m_actionStatesHasBeenSet = true; m_actionStates.push_back(value); return *this; }
137 
141  inline StageState& AddActionStates(ActionState&& value) { m_actionStatesHasBeenSet = true; m_actionStates.push_back(value); return *this; }
142 
147  inline const StageExecution& GetLatestExecution() const{ return m_latestExecution; }
148 
153  inline void SetLatestExecution(const StageExecution& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = value; }
154 
159  inline void SetLatestExecution(StageExecution&& value) { m_latestExecutionHasBeenSet = true; m_latestExecution = value; }
160 
165  inline StageState& WithLatestExecution(const StageExecution& value) { SetLatestExecution(value); return *this;}
166 
171  inline StageState& WithLatestExecution(StageExecution&& value) { SetLatestExecution(value); return *this;}
172 
173  private:
174  Aws::String m_stageName;
175  bool m_stageNameHasBeenSet;
176  TransitionState m_inboundTransitionState;
177  bool m_inboundTransitionStateHasBeenSet;
178  Aws::Vector<ActionState> m_actionStates;
179  bool m_actionStatesHasBeenSet;
180  StageExecution m_latestExecution;
181  bool m_latestExecutionHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace CodePipeline
186 } // namespace Aws
void SetLatestExecution(const StageExecution &value)
Definition: StageState.h:153
const StageExecution & GetLatestExecution() const
Definition: StageState.h:147
StageState & WithStageName(const Aws::String &value)
Definition: StageState.h:71
StageState & WithLatestExecution(StageExecution &&value)
Definition: StageState.h:171
StageState & WithLatestExecution(const StageExecution &value)
Definition: StageState.h:165
void SetLatestExecution(StageExecution &&value)
Definition: StageState.h:159
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetStageName(const Aws::String &value)
Definition: StageState.h:56
void SetActionStates(Aws::Vector< ActionState > &&value)
Definition: StageState.h:121
const Aws::Vector< ActionState > & GetActionStates() const
Definition: StageState.h:111
StageState & WithStageName(const char *value)
Definition: StageState.h:81
void SetStageName(const char *value)
Definition: StageState.h:66
StageState & WithActionStates(const Aws::Vector< ActionState > &value)
Definition: StageState.h:126
void SetInboundTransitionState(TransitionState &&value)
Definition: StageState.h:96
#define AWS_CODEPIPELINE_API
void SetActionStates(const Aws::Vector< ActionState > &value)
Definition: StageState.h:116
StageState & WithStageName(Aws::String &&value)
Definition: StageState.h:76
const TransitionState & GetInboundTransitionState() const
Definition: StageState.h:86
void SetStageName(Aws::String &&value)
Definition: StageState.h:61
StageState & AddActionStates(ActionState &&value)
Definition: StageState.h:141
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StageState & WithInboundTransitionState(TransitionState &&value)
Definition: StageState.h:106
StageState & WithActionStates(Aws::Vector< ActionState > &&value)
Definition: StageState.h:131
StageState & AddActionStates(const ActionState &value)
Definition: StageState.h:136
void SetInboundTransitionState(const TransitionState &value)
Definition: StageState.h:91
StageState & WithInboundTransitionState(const TransitionState &value)
Definition: StageState.h:101
const Aws::String & GetStageName() const
Definition: StageState.h:51
JSON (JavaScript Object Notation).