AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RuleDeclaration.h
1
6#pragma once
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>
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
45 {
46 public:
47 AWS_CODEPIPELINE_API RuleDeclaration() = default;
48 AWS_CODEPIPELINE_API RuleDeclaration(Aws::Utils::Json::JsonView jsonValue);
49 AWS_CODEPIPELINE_API RuleDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
63 RuleDeclaration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
71 inline const RuleTypeId& GetRuleTypeId() const { return m_ruleTypeId; }
72 inline bool RuleTypeIdHasBeenSet() const { return m_ruleTypeIdHasBeenSet; }
73 template<typename RuleTypeIdT = RuleTypeId>
74 void SetRuleTypeId(RuleTypeIdT&& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = std::forward<RuleTypeIdT>(value); }
75 template<typename RuleTypeIdT = RuleTypeId>
76 RuleDeclaration& WithRuleTypeId(RuleTypeIdT&& value) { SetRuleTypeId(std::forward<RuleTypeIdT>(value)); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
84 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
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>>
88 RuleDeclaration& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
89 template<typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
90 RuleDeclaration& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
91 m_configurationHasBeenSet = true; m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value)); return *this;
92 }
94
96
103 inline const Aws::Vector<Aws::String>& GetCommands() const { return m_commands; }
104 inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; }
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>>
108 RuleDeclaration& WithCommands(CommandsT&& value) { SetCommands(std::forward<CommandsT>(value)); return *this;}
109 template<typename CommandsT = Aws::String>
110 RuleDeclaration& AddCommands(CommandsT&& value) { m_commandsHasBeenSet = true; m_commands.emplace_back(std::forward<CommandsT>(value)); return *this; }
112
114
118 inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
119 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
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>>
123 RuleDeclaration& WithInputArtifacts(InputArtifactsT&& value) { SetInputArtifacts(std::forward<InputArtifactsT>(value)); return *this;}
124 template<typename InputArtifactsT = InputArtifact>
125 RuleDeclaration& AddInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value)); return *this; }
127
129
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
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>
137 RuleDeclaration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139
141
144 inline const Aws::String& GetRegion() const { return m_region; }
145 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
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>
149 RuleDeclaration& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
151
153
156 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
157 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
158 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
159 inline RuleDeclaration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
161 private:
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 RuleTypeId m_ruleTypeId;
167 bool m_ruleTypeIdHasBeenSet = false;
168
170 bool m_configurationHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_commands;
173 bool m_commandsHasBeenSet = false;
174
175 Aws::Vector<InputArtifact> m_inputArtifacts;
176 bool m_inputArtifactsHasBeenSet = false;
177
178 Aws::String m_roleArn;
179 bool m_roleArnHasBeenSet = false;
180
181 Aws::String m_region;
182 bool m_regionHasBeenSet = false;
183
184 int m_timeoutInMinutes{0};
185 bool m_timeoutInMinutesHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace CodePipeline
190} // namespace Aws
const Aws::Vector< Aws::String > & GetCommands() const
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
RuleDeclaration & WithTimeoutInMinutes(int value)
RuleDeclaration & AddCommands(CommandsT &&value)
RuleDeclaration & WithInputArtifacts(InputArtifactsT &&value)
const RuleTypeId & GetRuleTypeId() const
RuleDeclaration & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
RuleDeclaration & WithRuleTypeId(RuleTypeIdT &&value)
RuleDeclaration & WithRoleArn(RoleArnT &&value)
RuleDeclaration & AddInputArtifacts(InputArtifactsT &&value)
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
RuleDeclaration & WithConfiguration(ConfigurationT &&value)
RuleDeclaration & WithRegion(RegionT &&value)
AWS_CODEPIPELINE_API RuleDeclaration()=default
AWS_CODEPIPELINE_API RuleDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API RuleDeclaration(Aws::Utils::Json::JsonView jsonValue)
RuleDeclaration & WithName(NameT &&value)
RuleDeclaration & WithCommands(CommandsT &&value)
void SetConfiguration(ConfigurationT &&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