AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RuleExecutionInput.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/RuleTypeId.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 RuleExecutionInput() = default;
39 AWS_CODEPIPELINE_API RuleExecutionInput(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline const RuleTypeId& GetRuleTypeId() const { return m_ruleTypeId; }
55 inline bool RuleTypeIdHasBeenSet() const { return m_ruleTypeIdHasBeenSet; }
56 template<typename RuleTypeIdT = RuleTypeId>
57 void SetRuleTypeId(RuleTypeIdT&& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = std::forward<RuleTypeIdT>(value); }
58 template<typename RuleTypeIdT = RuleTypeId>
59 RuleExecutionInput& WithRuleTypeId(RuleTypeIdT&& value) { SetRuleTypeId(std::forward<RuleTypeIdT>(value)); return *this;}
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) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
71 template<typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
72 RuleExecutionInput& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
73 template<typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
74 RuleExecutionInput& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
75 m_configurationHasBeenSet = true; m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value)); return *this;
76 }
78
80
84 inline const Aws::Map<Aws::String, Aws::String>& GetResolvedConfiguration() const { return m_resolvedConfiguration; }
85 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
86 template<typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
87 void SetResolvedConfiguration(ResolvedConfigurationT&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = std::forward<ResolvedConfigurationT>(value); }
88 template<typename ResolvedConfigurationT = Aws::Map<Aws::String, Aws::String>>
89 RuleExecutionInput& WithResolvedConfiguration(ResolvedConfigurationT&& value) { SetResolvedConfiguration(std::forward<ResolvedConfigurationT>(value)); return *this;}
90 template<typename ResolvedConfigurationKeyT = Aws::String, typename ResolvedConfigurationValueT = Aws::String>
91 RuleExecutionInput& AddResolvedConfiguration(ResolvedConfigurationKeyT&& key, ResolvedConfigurationValueT&& value) {
92 m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::forward<ResolvedConfigurationKeyT>(key), std::forward<ResolvedConfigurationValueT>(value)); return *this;
93 }
95
97
101 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 template<typename RoleArnT = Aws::String>
104 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
105 template<typename RoleArnT = Aws::String>
106 RuleExecutionInput& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
108
110
113 inline const Aws::String& GetRegion() const { return m_region; }
114 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
115 template<typename RegionT = Aws::String>
116 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
117 template<typename RegionT = Aws::String>
118 RuleExecutionInput& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
120
122
126 inline const Aws::Vector<ArtifactDetail>& GetInputArtifacts() const { return m_inputArtifacts; }
127 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
128 template<typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
129 void SetInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::forward<InputArtifactsT>(value); }
130 template<typename InputArtifactsT = Aws::Vector<ArtifactDetail>>
131 RuleExecutionInput& WithInputArtifacts(InputArtifactsT&& value) { SetInputArtifacts(std::forward<InputArtifactsT>(value)); return *this;}
132 template<typename InputArtifactsT = ArtifactDetail>
133 RuleExecutionInput& AddInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value)); return *this; }
135 private:
136
137 RuleTypeId m_ruleTypeId;
138 bool m_ruleTypeIdHasBeenSet = false;
139
141 bool m_configurationHasBeenSet = false;
142
143 Aws::Map<Aws::String, Aws::String> m_resolvedConfiguration;
144 bool m_resolvedConfigurationHasBeenSet = false;
145
146 Aws::String m_roleArn;
147 bool m_roleArnHasBeenSet = false;
148
149 Aws::String m_region;
150 bool m_regionHasBeenSet = false;
151
152 Aws::Vector<ArtifactDetail> m_inputArtifacts;
153 bool m_inputArtifactsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodePipeline
158} // 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