AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionExecutionInput.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ActionTypeId.h>
9#include <aws/codepipeline/model/ArtifactDetail.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodePipeline {
24namespace Model {
25
32 public:
33 AWS_CODEPIPELINE_API ActionExecutionInput() = default;
34 AWS_CODEPIPELINE_API ActionExecutionInput(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const ActionTypeId& GetActionTypeId() const { return m_actionTypeId; }
41 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
42 template <typename ActionTypeIdT = ActionTypeId>
43 void SetActionTypeId(ActionTypeIdT&& value) {
44 m_actionTypeIdHasBeenSet = true;
45 m_actionTypeId = std::forward<ActionTypeIdT>(value);
46 }
47 template <typename ActionTypeIdT = ActionTypeId>
48 ActionExecutionInput& WithActionTypeId(ActionTypeIdT&& value) {
49 SetActionTypeId(std::forward<ActionTypeIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
59 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
60 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
61 void SetConfiguration(ConfigurationT&& value) {
62 m_configurationHasBeenSet = true;
63 m_configuration = std::forward<ConfigurationT>(value);
64 }
65 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
66 ActionExecutionInput& WithConfiguration(ConfigurationT&& value) {
67 SetConfiguration(std::forward<ConfigurationT>(value));
68 return *this;
69 }
70 template <typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
71 ActionExecutionInput& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
72 m_configurationHasBeenSet = true;
73 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Map<Aws::String, Aws::String>& GetResolvedConfiguration() const { return m_resolvedConfiguration; }
84 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
85 template <typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
86 void SetResolvedConfiguration(ResolvedConfigurationT&& value) {
87 m_resolvedConfigurationHasBeenSet = true;
88 m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value);
89 }
90 template <typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
91 ActionExecutionInput& WithResolvedConfiguration(ResolvedConfigurationT&& value) {
92 SetResolvedConfiguration(std::forward<ResolvedConfigurationT>(value));
93 return *this;
94 }
95 template <typename ResolvedConfigurationKeyT = Aws::String, typename ResolvedConfigurationValueT = Aws::String>
96 ActionExecutionInput& AddResolvedConfiguration(ResolvedConfigurationKeyT&& key, ResolvedConfigurationValueT&& value) {
97 m_resolvedConfigurationHasBeenSet = true;
98 m_resolvedConfiguration.emplace(std::forward<ResolvedConfigurationKeyT>(key), std::forward<ResolvedConfigurationValueT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 template <typename RoleArnT = Aws::String>
111 void SetRoleArn(RoleArnT&& value) {
112 m_roleArnHasBeenSet = true;
113 m_roleArn = std::forward<RoleArnT>(value);
114 }
115 template <typename RoleArnT = Aws::String>
117 SetRoleArn(std::forward<RoleArnT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetRegion() const { return m_region; }
127 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
128 template <typename RegionT = Aws::String>
129 void SetRegion(RegionT&& value) {
130 m_regionHasBeenSet = true;
131 m_region = std::forward<RegionT>(value);
132 }
133 template <typename RegionT = Aws::String>
135 SetRegion(std::forward<RegionT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::Vector<ArtifactDetail>& GetInputArtifacts() const { return m_inputArtifacts; }
146 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
147 template <typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
148 void SetInputArtifacts(InputArtifactsT&& value) {
149 m_inputArtifactsHasBeenSet = true;
150 m_inputArtifacts = std::forward<InputArtifactsT>(value);
151 }
152 template <typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
153 ActionExecutionInput& WithInputArtifacts(InputArtifactsT&& value) {
154 SetInputArtifacts(std::forward<InputArtifactsT>(value));
155 return *this;
156 }
157 template <typename InputArtifactsT = ArtifactDetail>
158 ActionExecutionInput& AddInputArtifacts(InputArtifactsT&& value) {
159 m_inputArtifactsHasBeenSet = true;
160 m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetNamespace() const { return m_namespace; }
171 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
172 template <typename NamespaceT = Aws::String>
173 void SetNamespace(NamespaceT&& value) {
174 m_namespaceHasBeenSet = true;
175 m_namespace = std::forward<NamespaceT>(value);
176 }
177 template <typename NamespaceT = Aws::String>
178 ActionExecutionInput& WithNamespace(NamespaceT&& value) {
179 SetNamespace(std::forward<NamespaceT>(value));
180 return *this;
181 }
183 private:
184 ActionTypeId m_actionTypeId;
185
187
188 Aws::Map<Aws::String, Aws::String> m_resolvedConfiguration;
189
190 Aws::String m_roleArn;
191
192 Aws::String m_region;
193
194 Aws::Vector<ArtifactDetail> m_inputArtifacts;
195
196 Aws::String m_namespace;
197 bool m_actionTypeIdHasBeenSet = false;
198 bool m_configurationHasBeenSet = false;
199 bool m_resolvedConfigurationHasBeenSet = false;
200 bool m_roleArnHasBeenSet = false;
201 bool m_regionHasBeenSet = false;
202 bool m_inputArtifactsHasBeenSet = false;
203 bool m_namespaceHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace CodePipeline
208} // namespace Aws
ActionExecutionInput & WithInputArtifacts(InputArtifactsT &&value)
ActionExecutionInput & WithConfiguration(ConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetResolvedConfiguration() const
AWS_CODEPIPELINE_API ActionExecutionInput()=default
ActionExecutionInput & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
AWS_CODEPIPELINE_API ActionExecutionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionExecutionInput & AddInputArtifacts(InputArtifactsT &&value)
ActionExecutionInput & WithRegion(RegionT &&value)
const Aws::Vector< ArtifactDetail > & GetInputArtifacts() const
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API ActionExecutionInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
ActionExecutionInput & WithNamespace(NamespaceT &&value)
ActionExecutionInput & WithResolvedConfiguration(ResolvedConfigurationT &&value)
void SetResolvedConfiguration(ResolvedConfigurationT &&value)
ActionExecutionInput & WithActionTypeId(ActionTypeIdT &&value)
ActionExecutionInput & AddResolvedConfiguration(ResolvedConfigurationKeyT &&key, ResolvedConfigurationValueT &&value)
ActionExecutionInput & WithRoleArn(RoleArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue