7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/RuleTypeId.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/InputArtifact.h>
60 template<
typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
62 template<
typename NameT = Aws::String>
73 template<
typename RuleTypeIdT = RuleTypeId>
74 void SetRuleTypeId(RuleTypeIdT&& value) { m_ruleTypeIdHasBeenSet =
true; m_ruleTypeId = std::forward<RuleTypeIdT>(value); }
75 template<
typename RuleTypeIdT = RuleTypeId>
85 template<
typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
86 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet =
true; m_configuration = std::forward<ConfigurationT>(value); }
87 template<
typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
89 template<
typename ConfigurationKeyT = Aws::String,
typename ConfigurationValueT = Aws::String>
91 m_configurationHasBeenSet =
true; m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
return *
this;
105 template<
typename CommandsT = Aws::Vector<Aws::String>>
106 void SetCommands(CommandsT&& value) { m_commandsHasBeenSet =
true; m_commands = std::forward<CommandsT>(value); }
107 template<
typename CommandsT = Aws::Vector<Aws::String>>
109 template<
typename CommandsT = Aws::String>
110 RuleDeclaration&
AddCommands(CommandsT&& value) { m_commandsHasBeenSet =
true; m_commands.emplace_back(std::forward<CommandsT>(value));
return *
this; }
120 template<
typename InputArtifactsT = Aws::Vector<InputArtifact>>
121 void SetInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet =
true; m_inputArtifacts = std::forward<InputArtifactsT>(value); }
122 template<
typename InputArtifactsT = Aws::Vector<InputArtifact>>
124 template<
typename InputArtifactsT = InputArtifact>
125 RuleDeclaration&
AddInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet =
true; m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value));
return *
this; }
134 template<
typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<
typename RoleArnT = Aws::String>
146 template<
typename RegionT = Aws::String>
147 void SetRegion(RegionT&& value) { m_regionHasBeenSet =
true; m_region = std::forward<RegionT>(value); }
148 template<
typename RegionT = Aws::String>
158 inline void SetTimeoutInMinutes(
int value) { m_timeoutInMinutesHasBeenSet =
true; m_timeoutInMinutes = value; }
164 bool m_nameHasBeenSet =
false;
167 bool m_ruleTypeIdHasBeenSet =
false;
170 bool m_configurationHasBeenSet =
false;
173 bool m_commandsHasBeenSet =
false;
176 bool m_inputArtifactsHasBeenSet =
false;
179 bool m_roleArnHasBeenSet =
false;
182 bool m_regionHasBeenSet =
false;
184 int m_timeoutInMinutes{0};
185 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