AWS SDK for C++  0.14.3
AWS SDK for C++
PipelineDeclaration.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 
41  {
42  public:
45  PipelineDeclaration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline PipelineDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline PipelineDeclaration& WithName(Aws::String&& value) { SetName(value); return *this;}
77 
81  inline PipelineDeclaration& WithName(const char* value) { SetName(value); return *this;}
82 
88  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
89 
95  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
96 
102  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
103 
109  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
110 
116  inline PipelineDeclaration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
117 
123  inline PipelineDeclaration& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
124 
130  inline PipelineDeclaration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
131 
132 
133  inline const ArtifactStore& GetArtifactStore() const{ return m_artifactStore; }
134 
135 
136  inline void SetArtifactStore(const ArtifactStore& value) { m_artifactStoreHasBeenSet = true; m_artifactStore = value; }
137 
138 
139  inline void SetArtifactStore(ArtifactStore&& value) { m_artifactStoreHasBeenSet = true; m_artifactStore = value; }
140 
141 
142  inline PipelineDeclaration& WithArtifactStore(const ArtifactStore& value) { SetArtifactStore(value); return *this;}
143 
144 
145  inline PipelineDeclaration& WithArtifactStore(ArtifactStore&& value) { SetArtifactStore(value); return *this;}
146 
150  inline const Aws::Vector<StageDeclaration>& GetStages() const{ return m_stages; }
151 
155  inline void SetStages(const Aws::Vector<StageDeclaration>& value) { m_stagesHasBeenSet = true; m_stages = value; }
156 
160  inline void SetStages(Aws::Vector<StageDeclaration>&& value) { m_stagesHasBeenSet = true; m_stages = value; }
161 
165  inline PipelineDeclaration& WithStages(const Aws::Vector<StageDeclaration>& value) { SetStages(value); return *this;}
166 
170  inline PipelineDeclaration& WithStages(Aws::Vector<StageDeclaration>&& value) { SetStages(value); return *this;}
171 
175  inline PipelineDeclaration& AddStages(const StageDeclaration& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
176 
180  inline PipelineDeclaration& AddStages(StageDeclaration&& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
181 
187  inline int GetVersion() const{ return m_version; }
188 
194  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
195 
201  inline PipelineDeclaration& WithVersion(int value) { SetVersion(value); return *this;}
202 
203  private:
204  Aws::String m_name;
205  bool m_nameHasBeenSet;
206  Aws::String m_roleArn;
207  bool m_roleArnHasBeenSet;
208  ArtifactStore m_artifactStore;
209  bool m_artifactStoreHasBeenSet;
211  bool m_stagesHasBeenSet;
212  int m_version;
213  bool m_versionHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace CodePipeline
218 } // namespace Aws
PipelineDeclaration & WithName(Aws::String &&value)
PipelineDeclaration & WithRoleArn(Aws::String &&value)
PipelineDeclaration & WithName(const char *value)
PipelineDeclaration & WithRoleArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PipelineDeclaration & WithArtifactStore(ArtifactStore &&value)
PipelineDeclaration & WithStages(const Aws::Vector< StageDeclaration > &value)
PipelineDeclaration & WithRoleArn(const char *value)
void SetStages(const Aws::Vector< StageDeclaration > &value)
PipelineDeclaration & AddStages(const StageDeclaration &value)
PipelineDeclaration & WithVersion(int value)
PipelineDeclaration & WithStages(Aws::Vector< StageDeclaration > &&value)
void SetStages(Aws::Vector< StageDeclaration > &&value)
const Aws::Vector< StageDeclaration > & GetStages() const
#define AWS_CODEPIPELINE_API
PipelineDeclaration & AddStages(StageDeclaration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PipelineDeclaration & WithArtifactStore(const ArtifactStore &value)
const ArtifactStore & GetArtifactStore() const
JSON (JavaScript Object Notation).
void SetArtifactStore(const ArtifactStore &value)
PipelineDeclaration & WithName(const Aws::String &value)