AWS SDK for C++  0.14.3
AWS SDK for C++
ActionDeclaration.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
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CodePipeline
34 {
35 namespace Model
36 {
37 
42  {
43  public:
46  ActionDeclaration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline ActionDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline ActionDeclaration& WithName(Aws::String&& value) { SetName(value); return *this;}
78 
82  inline ActionDeclaration& WithName(const char* value) { SetName(value); return *this;}
83 
87  inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
88 
92  inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
93 
97  inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
98 
102  inline ActionDeclaration& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
103 
107  inline ActionDeclaration& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(value); return *this;}
108 
112  inline int GetRunOrder() const{ return m_runOrder; }
113 
117  inline void SetRunOrder(int value) { m_runOrderHasBeenSet = true; m_runOrder = value; }
118 
122  inline ActionDeclaration& WithRunOrder(int value) { SetRunOrder(value); return *this;}
123 
127  inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
128 
132  inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
133 
137  inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = value; }
138 
142  inline ActionDeclaration& WithConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { SetConfiguration(value); return *this;}
143 
147  inline ActionDeclaration& WithConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { SetConfiguration(value); return *this;}
148 
152  inline ActionDeclaration& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
153 
157  inline ActionDeclaration& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
158 
162  inline ActionDeclaration& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
163 
167  inline ActionDeclaration& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
168 
172  inline ActionDeclaration& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
173 
177  inline ActionDeclaration& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
178 
182  inline ActionDeclaration& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration[key] = value; return *this; }
183 
188  inline const Aws::Vector<OutputArtifact>& GetOutputArtifacts() const{ return m_outputArtifacts; }
189 
194  inline void SetOutputArtifacts(const Aws::Vector<OutputArtifact>& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = value; }
195 
200  inline void SetOutputArtifacts(Aws::Vector<OutputArtifact>&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = value; }
201 
206  inline ActionDeclaration& WithOutputArtifacts(const Aws::Vector<OutputArtifact>& value) { SetOutputArtifacts(value); return *this;}
207 
212  inline ActionDeclaration& WithOutputArtifacts(Aws::Vector<OutputArtifact>&& value) { SetOutputArtifacts(value); return *this;}
213 
218  inline ActionDeclaration& AddOutputArtifacts(const OutputArtifact& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.push_back(value); return *this; }
219 
224  inline ActionDeclaration& AddOutputArtifacts(OutputArtifact&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.push_back(value); return *this; }
225 
230  inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const{ return m_inputArtifacts; }
231 
236  inline void SetInputArtifacts(const Aws::Vector<InputArtifact>& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; }
237 
242  inline void SetInputArtifacts(Aws::Vector<InputArtifact>&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; }
243 
248  inline ActionDeclaration& WithInputArtifacts(const Aws::Vector<InputArtifact>& value) { SetInputArtifacts(value); return *this;}
249 
254  inline ActionDeclaration& WithInputArtifacts(Aws::Vector<InputArtifact>&& value) { SetInputArtifacts(value); return *this;}
255 
260  inline ActionDeclaration& AddInputArtifacts(const InputArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; }
261 
266  inline ActionDeclaration& AddInputArtifacts(InputArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; }
267 
272  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
273 
278  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
279 
284  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
285 
290  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
291 
296  inline ActionDeclaration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
297 
302  inline ActionDeclaration& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
303 
308  inline ActionDeclaration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
309 
310  private:
311  Aws::String m_name;
312  bool m_nameHasBeenSet;
313  ActionTypeId m_actionTypeId;
314  bool m_actionTypeIdHasBeenSet;
315  int m_runOrder;
316  bool m_runOrderHasBeenSet;
317  Aws::Map<Aws::String, Aws::String> m_configuration;
318  bool m_configurationHasBeenSet;
319  Aws::Vector<OutputArtifact> m_outputArtifacts;
320  bool m_outputArtifactsHasBeenSet;
321  Aws::Vector<InputArtifact> m_inputArtifacts;
322  bool m_inputArtifactsHasBeenSet;
323  Aws::String m_roleArn;
324  bool m_roleArnHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace CodePipeline
329 } // namespace Aws
const ActionTypeId & GetActionTypeId() const
ActionDeclaration & WithRoleArn(const Aws::String &value)
void SetOutputArtifacts(const Aws::Vector< OutputArtifact > &value)
ActionDeclaration & AddOutputArtifacts(const OutputArtifact &value)
ActionDeclaration & WithOutputArtifacts(const Aws::Vector< OutputArtifact > &value)
ActionDeclaration & WithRunOrder(int value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ActionDeclaration & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
ActionDeclaration & AddConfiguration(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
ActionDeclaration & WithRoleArn(Aws::String &&value)
ActionDeclaration & WithRoleArn(const char *value)
ActionDeclaration & WithInputArtifacts(Aws::Vector< InputArtifact > &&value)
ActionDeclaration & WithOutputArtifacts(Aws::Vector< OutputArtifact > &&value)
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
ActionDeclaration & WithName(Aws::String &&value)
ActionDeclaration & AddConfiguration(const char *key, Aws::String &&value)
ActionDeclaration & AddConfiguration(Aws::String &&key, const char *value)
ActionDeclaration & AddOutputArtifacts(OutputArtifact &&value)
void SetInputArtifacts(const Aws::Vector< InputArtifact > &value)
ActionDeclaration & WithActionTypeId(const ActionTypeId &value)
void SetInputArtifacts(Aws::Vector< InputArtifact > &&value)
const Aws::Vector< OutputArtifact > & GetOutputArtifacts() const
ActionDeclaration & AddConfiguration(const Aws::String &key, const Aws::String &value)
ActionDeclaration & WithInputArtifacts(const Aws::Vector< InputArtifact > &value)
#define AWS_CODEPIPELINE_API
void SetName(const Aws::String &value)
ActionDeclaration & AddConfiguration(const Aws::String &key, Aws::String &&value)
ActionDeclaration & WithName(const Aws::String &value)
ActionDeclaration & WithName(const char *value)
ActionDeclaration & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetOutputArtifacts(Aws::Vector< OutputArtifact > &&value)
void SetActionTypeId(const ActionTypeId &value)
ActionDeclaration & AddInputArtifacts(const InputArtifact &value)
void SetRoleArn(const Aws::String &value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
ActionDeclaration & WithActionTypeId(ActionTypeId &&value)
ActionDeclaration & AddInputArtifacts(InputArtifact &&value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
ActionDeclaration & AddConfiguration(const char *key, const char *value)
JSON (JavaScript Object Notation).
ActionDeclaration & AddConfiguration(Aws::String &&key, const Aws::String &value)