AWS SDK for C++  0.14.3
AWS SDK for C++
GetPipelineStateResult.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 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace CodePipeline
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::String& GetPipelineName() const{ return m_pipelineName; }
52 
56  inline void SetPipelineName(const Aws::String& value) { m_pipelineName = value; }
57 
61  inline void SetPipelineName(Aws::String&& value) { m_pipelineName = value; }
62 
66  inline void SetPipelineName(const char* value) { m_pipelineName.assign(value); }
67 
71  inline GetPipelineStateResult& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;}
72 
76  inline GetPipelineStateResult& WithPipelineName(Aws::String&& value) { SetPipelineName(value); return *this;}
77 
81  inline GetPipelineStateResult& WithPipelineName(const char* value) { SetPipelineName(value); return *this;}
82 
87  inline int GetPipelineVersion() const{ return m_pipelineVersion; }
88 
93  inline void SetPipelineVersion(int value) { m_pipelineVersion = value; }
94 
99  inline GetPipelineStateResult& WithPipelineVersion(int value) { SetPipelineVersion(value); return *this;}
100 
105  inline const Aws::Vector<StageState>& GetStageStates() const{ return m_stageStates; }
106 
111  inline void SetStageStates(const Aws::Vector<StageState>& value) { m_stageStates = value; }
112 
117  inline void SetStageStates(Aws::Vector<StageState>&& value) { m_stageStates = value; }
118 
123  inline GetPipelineStateResult& WithStageStates(const Aws::Vector<StageState>& value) { SetStageStates(value); return *this;}
124 
129  inline GetPipelineStateResult& WithStageStates(Aws::Vector<StageState>&& value) { SetStageStates(value); return *this;}
130 
135  inline GetPipelineStateResult& AddStageStates(const StageState& value) { m_stageStates.push_back(value); return *this; }
136 
141  inline GetPipelineStateResult& AddStageStates(StageState&& value) { m_stageStates.push_back(value); return *this; }
142 
146  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
147 
151  inline void SetCreated(const Aws::Utils::DateTime& value) { m_created = value; }
152 
156  inline void SetCreated(Aws::Utils::DateTime&& value) { m_created = value; }
157 
161  inline GetPipelineStateResult& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
162 
166  inline GetPipelineStateResult& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
167 
171  inline const Aws::Utils::DateTime& GetUpdated() const{ return m_updated; }
172 
176  inline void SetUpdated(const Aws::Utils::DateTime& value) { m_updated = value; }
177 
181  inline void SetUpdated(Aws::Utils::DateTime&& value) { m_updated = value; }
182 
186  inline GetPipelineStateResult& WithUpdated(const Aws::Utils::DateTime& value) { SetUpdated(value); return *this;}
187 
191  inline GetPipelineStateResult& WithUpdated(Aws::Utils::DateTime&& value) { SetUpdated(value); return *this;}
192 
193  private:
194  Aws::String m_pipelineName;
195  int m_pipelineVersion;
196  Aws::Vector<StageState> m_stageStates;
197  Aws::Utils::DateTime m_created;
198  Aws::Utils::DateTime m_updated;
199  };
200 
201 } // namespace Model
202 } // namespace CodePipeline
203 } // namespace Aws
GetPipelineStateResult & WithPipelineVersion(int value)
void SetCreated(const Aws::Utils::DateTime &value)
GetPipelineStateResult & WithCreated(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetUpdated() const
void SetStageStates(const Aws::Vector< StageState > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetPipelineStateResult & WithPipelineName(const char *value)
GetPipelineStateResult & WithStageStates(const Aws::Vector< StageState > &value)
GetPipelineStateResult & WithPipelineName(Aws::String &&value)
const Aws::Vector< StageState > & GetStageStates() const
GetPipelineStateResult & AddStageStates(const StageState &value)
const Aws::Utils::DateTime & GetCreated() const
GetPipelineStateResult & WithPipelineName(const Aws::String &value)
#define AWS_CODEPIPELINE_API
GetPipelineStateResult & WithCreated(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetPipelineStateResult & WithUpdated(Aws::Utils::DateTime &&value)
GetPipelineStateResult & WithStageStates(Aws::Vector< StageState > &&value)
GetPipelineStateResult & AddStageStates(StageState &&value)
void SetStageStates(Aws::Vector< StageState > &&value)
JSON (JavaScript Object Notation).
void SetUpdated(const Aws::Utils::DateTime &value)
GetPipelineStateResult & WithUpdated(const Aws::Utils::DateTime &value)