AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_CODEPIPELINE_API RuleExecutionInput(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const RuleTypeId& GetRuleTypeId() const{ return m_ruleTypeId; }
50 inline bool RuleTypeIdHasBeenSet() const { return m_ruleTypeIdHasBeenSet; }
51 inline void SetRuleTypeId(const RuleTypeId& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = value; }
52 inline void SetRuleTypeId(RuleTypeId&& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = std::move(value); }
53 inline RuleExecutionInput& WithRuleTypeId(const RuleTypeId& value) { SetRuleTypeId(value); return *this;}
54 inline RuleExecutionInput& WithRuleTypeId(RuleTypeId&& value) { SetRuleTypeId(std::move(value)); return *this;}
56
58
62 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
63 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
64 inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
65 inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
68 inline RuleExecutionInput& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
69 inline RuleExecutionInput& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
70 inline RuleExecutionInput& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
71 inline RuleExecutionInput& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; }
72 inline RuleExecutionInput& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
73 inline RuleExecutionInput& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
74 inline RuleExecutionInput& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
76
78
82 inline const Aws::Map<Aws::String, Aws::String>& GetResolvedConfiguration() const{ return m_resolvedConfiguration; }
83 inline bool ResolvedConfigurationHasBeenSet() const { return m_resolvedConfigurationHasBeenSet; }
84 inline void SetResolvedConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = value; }
85 inline void SetResolvedConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration = std::move(value); }
88 inline RuleExecutionInput& AddResolvedConfiguration(const Aws::String& key, const Aws::String& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, value); return *this; }
89 inline RuleExecutionInput& AddResolvedConfiguration(Aws::String&& key, const Aws::String& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), value); return *this; }
90 inline RuleExecutionInput& AddResolvedConfiguration(const Aws::String& key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, std::move(value)); return *this; }
91 inline RuleExecutionInput& AddResolvedConfiguration(Aws::String&& key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), std::move(value)); return *this; }
92 inline RuleExecutionInput& AddResolvedConfiguration(const char* key, Aws::String&& value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, std::move(value)); return *this; }
93 inline RuleExecutionInput& AddResolvedConfiguration(Aws::String&& key, const char* value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(std::move(key), value); return *this; }
94 inline RuleExecutionInput& AddResolvedConfiguration(const char* key, const char* value) { m_resolvedConfigurationHasBeenSet = true; m_resolvedConfiguration.emplace(key, value); return *this; }
96
98
102 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
105 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
106 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
107 inline RuleExecutionInput& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
108 inline RuleExecutionInput& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
109 inline RuleExecutionInput& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
111
113
116 inline const Aws::String& GetRegion() const{ return m_region; }
117 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
118 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
119 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
120 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
121 inline RuleExecutionInput& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
122 inline RuleExecutionInput& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
123 inline RuleExecutionInput& WithRegion(const char* value) { SetRegion(value); return *this;}
125
127
131 inline const Aws::Vector<ArtifactDetail>& GetInputArtifacts() const{ return m_inputArtifacts; }
132 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
133 inline void SetInputArtifacts(const Aws::Vector<ArtifactDetail>& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; }
134 inline void SetInputArtifacts(Aws::Vector<ArtifactDetail>&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::move(value); }
136 inline RuleExecutionInput& WithInputArtifacts(Aws::Vector<ArtifactDetail>&& value) { SetInputArtifacts(std::move(value)); return *this;}
137 inline RuleExecutionInput& AddInputArtifacts(const ArtifactDetail& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; }
138 inline RuleExecutionInput& AddInputArtifacts(ArtifactDetail&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(std::move(value)); return *this; }
140 private:
141
142 RuleTypeId m_ruleTypeId;
143 bool m_ruleTypeIdHasBeenSet = false;
144
146 bool m_configurationHasBeenSet = false;
147
148 Aws::Map<Aws::String, Aws::String> m_resolvedConfiguration;
149 bool m_resolvedConfigurationHasBeenSet = false;
150
151 Aws::String m_roleArn;
152 bool m_roleArnHasBeenSet = false;
153
154 Aws::String m_region;
155 bool m_regionHasBeenSet = false;
156
157 Aws::Vector<ArtifactDetail> m_inputArtifacts;
158 bool m_inputArtifactsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CodePipeline
163} // namespace Aws
RuleExecutionInput & AddConfiguration(const Aws::String &key, const Aws::String &value)
RuleExecutionInput & AddConfiguration(Aws::String &&key, const char *value)
RuleExecutionInput & WithRuleTypeId(RuleTypeId &&value)
RuleExecutionInput & AddResolvedConfiguration(Aws::String &&key, const Aws::String &value)
RuleExecutionInput & AddResolvedConfiguration(Aws::String &&key, const char *value)
RuleExecutionInput & WithRuleTypeId(const RuleTypeId &value)
RuleExecutionInput & WithRoleArn(const char *value)
RuleExecutionInput & WithResolvedConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
RuleExecutionInput & AddResolvedConfiguration(const char *key, Aws::String &&value)
void SetResolvedConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
void SetResolvedConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
RuleExecutionInput & AddResolvedConfiguration(Aws::String &&key, Aws::String &&value)
void SetInputArtifacts(const Aws::Vector< ArtifactDetail > &value)
RuleExecutionInput & WithInputArtifacts(const Aws::Vector< ArtifactDetail > &value)
RuleExecutionInput & AddConfiguration(const char *key, Aws::String &&value)
RuleExecutionInput & AddConfiguration(const Aws::String &key, Aws::String &&value)
RuleExecutionInput & AddConfiguration(const char *key, const char *value)
RuleExecutionInput & AddResolvedConfiguration(const char *key, const char *value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleExecutionInput & AddConfiguration(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetResolvedConfiguration() const
RuleExecutionInput & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
RuleExecutionInput & AddConfiguration(Aws::String &&key, Aws::String &&value)
AWS_CODEPIPELINE_API RuleExecutionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleExecutionInput & WithRegion(Aws::String &&value)
RuleExecutionInput & AddResolvedConfiguration(const Aws::String &key, Aws::String &&value)
RuleExecutionInput & WithRoleArn(Aws::String &&value)
RuleExecutionInput & AddResolvedConfiguration(const Aws::String &key, const Aws::String &value)
const Aws::Vector< ArtifactDetail > & GetInputArtifacts() const
RuleExecutionInput & WithResolvedConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
RuleExecutionInput & WithRegion(const char *value)
RuleExecutionInput & AddInputArtifacts(ArtifactDetail &&value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
RuleExecutionInput & WithInputArtifacts(Aws::Vector< ArtifactDetail > &&value)
RuleExecutionInput & AddInputArtifacts(const ArtifactDetail &value)
RuleExecutionInput & WithRegion(const Aws::String &value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
RuleExecutionInput & WithRoleArn(const Aws::String &value)
void SetInputArtifacts(Aws::Vector< ArtifactDetail > &&value)
RuleExecutionInput & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&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