AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleExecutionInput.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ArtifactDetail.h>
9#include <aws/codepipeline/model/RuleTypeId.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 RuleExecutionInput() = default;
34 AWS_CODEPIPELINE_API RuleExecutionInput(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline const RuleTypeId& GetRuleTypeId() const { return m_ruleTypeId; }
49 inline bool RuleTypeIdHasBeenSet() const { return m_ruleTypeIdHasBeenSet; }
50 template <typename RuleTypeIdT = RuleTypeId>
51 void SetRuleTypeId(RuleTypeIdT&& value) {
52 m_ruleTypeIdHasBeenSet = true;
53 m_ruleTypeId = std::forward<RuleTypeIdT>(value);
54 }
55 template <typename RuleTypeIdT = RuleTypeId>
56 RuleExecutionInput& WithRuleTypeId(RuleTypeIdT&& value) {
57 SetRuleTypeId(std::forward<RuleTypeIdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
68 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
69 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
70 void SetConfiguration(ConfigurationT&& value) {
71 m_configurationHasBeenSet = true;
72 m_configuration = std::forward<ConfigurationT>(value);
73 }
74 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
75 RuleExecutionInput& WithConfiguration(ConfigurationT&& value) {
76 SetConfiguration(std::forward<ConfigurationT>(value));
77 return *this;
78 }
79 template <typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
80 RuleExecutionInput& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
81 m_configurationHasBeenSet = true;
82 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Map<Aws::String, Aws::String>& GetResolvedConfiguration() const { return m_resolvedConfiguration; }
93 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
94 template <typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
95 void SetResolvedConfiguration(ResolvedConfigurationT&& value) {
96 m_resolvedConfigurationHasBeenSet = true;
97 m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value);
98 }
99 template <typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
100 RuleExecutionInput& WithResolvedConfiguration(ResolvedConfigurationT&& value) {
101 SetResolvedConfiguration(std::forward<ResolvedConfigurationT>(value));
102 return *this;
103 }
104 template <typename ResolvedConfigurationKeyT = Aws::String, typename ResolvedConfigurationValueT = Aws::String>
105 RuleExecutionInput& AddResolvedConfiguration(ResolvedConfigurationKeyT&& key, ResolvedConfigurationValueT&& value) {
106 m_resolvedConfigurationHasBeenSet = true;
107 m_resolvedConfiguration.emplace(std::forward<ResolvedConfigurationKeyT>(key), std::forward<ResolvedConfigurationValueT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 template <typename RoleArnT = Aws::String>
120 void SetRoleArn(RoleArnT&& value) {
121 m_roleArnHasBeenSet = true;
122 m_roleArn = std::forward<RoleArnT>(value);
123 }
124 template <typename RoleArnT = Aws::String>
125 RuleExecutionInput& WithRoleArn(RoleArnT&& value) {
126 SetRoleArn(std::forward<RoleArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetRegion() const { return m_region; }
136 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
137 template <typename RegionT = Aws::String>
138 void SetRegion(RegionT&& value) {
139 m_regionHasBeenSet = true;
140 m_region = std::forward<RegionT>(value);
141 }
142 template <typename RegionT = Aws::String>
143 RuleExecutionInput& WithRegion(RegionT&& value) {
144 SetRegion(std::forward<RegionT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Vector<ArtifactDetail>& GetInputArtifacts() const { return m_inputArtifacts; }
155 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
156 template <typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
157 void SetInputArtifacts(InputArtifactsT&& value) {
158 m_inputArtifactsHasBeenSet = true;
159 m_inputArtifacts = std::forward<InputArtifactsT>(value);
160 }
161 template <typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
162 RuleExecutionInput& WithInputArtifacts(InputArtifactsT&& value) {
163 SetInputArtifacts(std::forward<InputArtifactsT>(value));
164 return *this;
165 }
166 template <typename InputArtifactsT = ArtifactDetail>
167 RuleExecutionInput& AddInputArtifacts(InputArtifactsT&& value) {
168 m_inputArtifactsHasBeenSet = true;
169 m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value));
170 return *this;
171 }
173 private:
174 RuleTypeId m_ruleTypeId;
175
177
178 Aws::Map<Aws::String, Aws::String> m_resolvedConfiguration;
179
180 Aws::String m_roleArn;
181
182 Aws::String m_region;
183
184 Aws::Vector<ArtifactDetail> m_inputArtifacts;
185 bool m_ruleTypeIdHasBeenSet = false;
186 bool m_configurationHasBeenSet = false;
187 bool m_resolvedConfigurationHasBeenSet = false;
188 bool m_roleArnHasBeenSet = false;
189 bool m_regionHasBeenSet = false;
190 bool m_inputArtifactsHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace CodePipeline
195} // namespace Aws
RuleExecutionInput & WithRoleArn(RoleArnT &&value)
void SetResolvedConfiguration(ResolvedConfigurationT &&value)
RuleExecutionInput & WithResolvedConfiguration(ResolvedConfigurationT &&value)
AWS_CODEPIPELINE_API RuleExecutionInput()=default
RuleExecutionInput & AddResolvedConfiguration(ResolvedConfigurationKeyT &&key, ResolvedConfigurationValueT &&value)
RuleExecutionInput & AddInputArtifacts(InputArtifactsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetResolvedConfiguration() const
AWS_CODEPIPELINE_API RuleExecutionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleExecutionInput & WithRuleTypeId(RuleTypeIdT &&value)
const Aws::Vector< ArtifactDetail > & GetInputArtifacts() const
RuleExecutionInput & WithConfiguration(ConfigurationT &&value)
void SetInputArtifacts(InputArtifactsT &&value)
RuleExecutionInput & WithInputArtifacts(InputArtifactsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
RuleExecutionInput & WithRegion(RegionT &&value)
RuleExecutionInput & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
AWS_CODEPIPELINE_API RuleExecutionInput(Aws::Utils::Json::JsonView jsonValue)
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