7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/InputArtifact.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>
23namespace CodePipeline {
54 template <
typename NameT = Aws::String>
56 m_nameHasBeenSet =
true;
57 m_name = std::forward<NameT>(value);
59 template <
typename NameT = Aws::String>
61 SetName(std::forward<NameT>(value));
73 template <
typename RuleTypeIdT = RuleTypeId>
75 m_ruleTypeIdHasBeenSet =
true;
76 m_ruleTypeId = std::forward<RuleTypeIdT>(value);
78 template <
typename RuleTypeIdT = RuleTypeId>
91 template <
typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
93 m_configurationHasBeenSet =
true;
94 m_configuration = std::forward<ConfigurationT>(value);
96 template <
typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
101 template <
typename ConfigurationKeyT = Aws::String,
typename ConfigurationValueT = Aws::String>
103 m_configurationHasBeenSet =
true;
104 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
119 template <
typename CommandsT = Aws::Vector<Aws::String>>
121 m_commandsHasBeenSet =
true;
122 m_commands = std::forward<CommandsT>(value);
124 template <
typename CommandsT = Aws::Vector<Aws::String>>
129 template <
typename CommandsT = Aws::String>
131 m_commandsHasBeenSet =
true;
132 m_commands.emplace_back(std::forward<CommandsT>(value));
144 template <
typename InputArtifactsT = Aws::Vector<InputArtifact>>
146 m_inputArtifactsHasBeenSet =
true;
147 m_inputArtifacts = std::forward<InputArtifactsT>(value);
149 template <
typename InputArtifactsT = Aws::Vector<InputArtifact>>
154 template <
typename InputArtifactsT = InputArtifact>
156 m_inputArtifactsHasBeenSet =
true;
157 m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value));
168 template <
typename RoleArnT = Aws::String>
170 m_roleArnHasBeenSet =
true;
171 m_roleArn = std::forward<RoleArnT>(value);
173 template <
typename RoleArnT = Aws::String>
186 template <
typename RegionT = Aws::String>
188 m_regionHasBeenSet =
true;
189 m_region = std::forward<RegionT>(value);
191 template <
typename RegionT = Aws::String>
205 m_timeoutInMinutesHasBeenSet =
true;
206 m_timeoutInMinutes = value;
228 int m_timeoutInMinutes{0};
229 bool m_nameHasBeenSet =
false;
230 bool m_ruleTypeIdHasBeenSet =
false;
231 bool m_configurationHasBeenSet =
false;
232 bool m_commandsHasBeenSet =
false;
233 bool m_inputArtifactsHasBeenSet =
false;
234 bool m_roleArnHasBeenSet =
false;
235 bool m_regionHasBeenSet =
false;
236 bool m_timeoutInMinutesHasBeenSet =
false;
void SetRoleArn(RoleArnT &&value)
const Aws::Vector< Aws::String > & GetCommands() const
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
RuleDeclaration & WithTimeoutInMinutes(int value)
RuleDeclaration & AddCommands(CommandsT &&value)
void SetCommands(CommandsT &&value)
bool InputArtifactsHasBeenSet() const
bool RoleArnHasBeenSet() const
RuleDeclaration & WithInputArtifacts(InputArtifactsT &&value)
const RuleTypeId & GetRuleTypeId() const
RuleDeclaration & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
bool CommandsHasBeenSet() const
bool RegionHasBeenSet() const
bool NameHasBeenSet() const
RuleDeclaration & WithRuleTypeId(RuleTypeIdT &&value)
RuleDeclaration & WithRoleArn(RoleArnT &&value)
RuleDeclaration & AddInputArtifacts(InputArtifactsT &&value)
void SetRegion(RegionT &&value)
bool RuleTypeIdHasBeenSet() const
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
bool TimeoutInMinutesHasBeenSet() const
RuleDeclaration & WithConfiguration(ConfigurationT &&value)
RuleDeclaration & WithRegion(RegionT &&value)
AWS_CODEPIPELINE_API RuleDeclaration()=default
AWS_CODEPIPELINE_API RuleDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegion() const
const Aws::String & GetName() const
void SetTimeoutInMinutes(int value)
AWS_CODEPIPELINE_API RuleDeclaration(Aws::Utils::Json::JsonView jsonValue)
RuleDeclaration & WithName(NameT &&value)
bool ConfigurationHasBeenSet() const
int GetTimeoutInMinutes() const
RuleDeclaration & WithCommands(CommandsT &&value)
const Aws::String & GetRoleArn() const
void SetConfiguration(ConfigurationT &&value)
void SetRuleTypeId(RuleTypeIdT &&value)
void SetName(NameT &&value)
void SetInputArtifacts(InputArtifactsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
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