AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/ArtifactDetail.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodePipeline
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CODEPIPELINE_API ActionExecutionInput() = default;
39 AWS_CODEPIPELINE_API ActionExecutionInput(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const ActionTypeId& GetActionTypeId() const { return m_actionTypeId; }
47 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
48 template<typename ActionTypeIdT = ActionTypeId>
49 void SetActionTypeId(ActionTypeIdT&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::forward<ActionTypeIdT>(value); }
50 template<typename ActionTypeIdT = ActionTypeId>
51 ActionExecutionInput& WithActionTypeId(ActionTypeIdT&& value) { SetActionTypeId(std::forward<ActionTypeIdT>(value)); return *this;}
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) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
62 template<typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
63 ActionExecutionInput& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
64 template<typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
65 ActionExecutionInput& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
66 m_configurationHasBeenSet = true; m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value)); return *this;
67 }
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetResolvedConfiguration() const { return m_resolvedConfiguration; }
76 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
77 template<typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
78 void SetResolvedConfiguration(ResolvedConfigurationT&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value); }
79 template<typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
80 ActionExecutionInput& WithResolvedConfiguration(ResolvedConfigurationT&& value) { SetResolvedConfiguration(std::forward<ResolvedConfigurationT>(value)); return *this;}
81 template<typename ResolvedConfigurationKeyT = Aws::String, typename ResolvedConfigurationValueT = Aws::String>
82 ActionExecutionInput& AddResolvedConfiguration(ResolvedConfigurationKeyT&& key, ResolvedConfigurationValueT&& value) {
83 m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::forward<ResolvedConfigurationKeyT>(key), std::forward<ResolvedConfigurationValueT>(value)); return *this;
84 }
86
88
92 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
93 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
94 template<typename RoleArnT = Aws::String>
95 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
96 template<typename RoleArnT = Aws::String>
97 ActionExecutionInput& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
99
101
104 inline const Aws::String& GetRegion() const { return m_region; }
105 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
106 template<typename RegionT = Aws::String>
107 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
108 template<typename RegionT = Aws::String>
109 ActionExecutionInput& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
111
113
117 inline const Aws::Vector<ArtifactDetail>& GetInputArtifacts() const { return m_inputArtifacts; }
118 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
119 template<typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
120 void SetInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::forward<InputArtifactsT>(value); }
121 template<typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
122 ActionExecutionInput& WithInputArtifacts(InputArtifactsT&& value) { SetInputArtifacts(std::forward<InputArtifactsT>(value)); return *this;}
123 template<typename InputArtifactsT = ArtifactDetail>
124 ActionExecutionInput& AddInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value)); return *this; }
126
128
132 inline const Aws::String& GetNamespace() const { return m_namespace; }
133 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
134 template<typename NamespaceT = Aws::String>
135 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
136 template<typename NamespaceT = Aws::String>
137 ActionExecutionInput& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
139 private:
140
141 ActionTypeId m_actionTypeId;
142 bool m_actionTypeIdHasBeenSet = false;
143
145 bool m_configurationHasBeenSet = false;
146
147 Aws::Map<Aws::String, Aws::String> m_resolvedConfiguration;
148 bool m_resolvedConfigurationHasBeenSet = false;
149
150 Aws::String m_roleArn;
151 bool m_roleArnHasBeenSet = false;
152
153 Aws::String m_region;
154 bool m_regionHasBeenSet = false;
155
156 Aws::Vector<ArtifactDetail> m_inputArtifacts;
157 bool m_inputArtifactsHasBeenSet = false;
158
159 Aws::String m_namespace;
160 bool m_namespaceHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CodePipeline
165} // 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