AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
39 {
40 public:
41 AWS_CODEPIPELINE_API RuleDeclaration();
42 AWS_CODEPIPELINE_API RuleDeclaration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API RuleDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline RuleDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline RuleDeclaration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline RuleDeclaration& WithName(const char* value) { SetName(value); return *this;}
61
63
67 inline const RuleTypeId& GetRuleTypeId() const{ return m_ruleTypeId; }
68 inline bool RuleTypeIdHasBeenSet() const { return m_ruleTypeIdHasBeenSet; }
69 inline void SetRuleTypeId(const RuleTypeId& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = value; }
70 inline void SetRuleTypeId(RuleTypeId&& value) { m_ruleTypeIdHasBeenSet = true; m_ruleTypeId = std::move(value); }
71 inline RuleDeclaration& WithRuleTypeId(const RuleTypeId& value) { SetRuleTypeId(value); return *this;}
72 inline RuleDeclaration& WithRuleTypeId(RuleTypeId&& value) { SetRuleTypeId(std::move(value)); return *this;}
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
80 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
81 inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
82 inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
84 inline RuleDeclaration& WithConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { SetConfiguration(std::move(value)); return *this;}
85 inline RuleDeclaration& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
86 inline RuleDeclaration& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
87 inline RuleDeclaration& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
88 inline RuleDeclaration& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; }
89 inline RuleDeclaration& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
90 inline RuleDeclaration& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
91 inline RuleDeclaration& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
93
95
99 inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const{ return m_inputArtifacts; }
100 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
101 inline void SetInputArtifacts(const Aws::Vector<InputArtifact>& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; }
102 inline void SetInputArtifacts(Aws::Vector<InputArtifact>&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::move(value); }
104 inline RuleDeclaration& WithInputArtifacts(Aws::Vector<InputArtifact>&& value) { SetInputArtifacts(std::move(value)); return *this;}
105 inline RuleDeclaration& AddInputArtifacts(const InputArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; }
106 inline RuleDeclaration& AddInputArtifacts(InputArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(std::move(value)); return *this; }
108
110
113 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
114 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
115 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
116 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
117 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
118 inline RuleDeclaration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
119 inline RuleDeclaration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
120 inline RuleDeclaration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
122
124
127 inline const Aws::String& GetRegion() const{ return m_region; }
128 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
129 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
130 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
131 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
132 inline RuleDeclaration& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
133 inline RuleDeclaration& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
134 inline RuleDeclaration& WithRegion(const char* value) { SetRegion(value); return *this;}
136
138
141 inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; }
142 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
143 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
144 inline RuleDeclaration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 RuleTypeId m_ruleTypeId;
152 bool m_ruleTypeIdHasBeenSet = false;
153
155 bool m_configurationHasBeenSet = false;
156
157 Aws::Vector<InputArtifact> m_inputArtifacts;
158 bool m_inputArtifactsHasBeenSet = false;
159
160 Aws::String m_roleArn;
161 bool m_roleArnHasBeenSet = false;
162
163 Aws::String m_region;
164 bool m_regionHasBeenSet = false;
165
166 int m_timeoutInMinutes;
167 bool m_timeoutInMinutesHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CodePipeline
172} // namespace Aws
RuleDeclaration & WithRuleTypeId(RuleTypeId &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
RuleDeclaration & WithTimeoutInMinutes(int value)
RuleDeclaration & AddConfiguration(const char *key, Aws::String &&value)
const RuleTypeId & GetRuleTypeId() const
RuleDeclaration & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
RuleDeclaration & AddInputArtifacts(InputArtifact &&value)
RuleDeclaration & WithName(const Aws::String &value)
RuleDeclaration & WithInputArtifacts(Aws::Vector< InputArtifact > &&value)
RuleDeclaration & AddConfiguration(Aws::String &&key, const char *value)
void SetRegion(const Aws::String &value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
RuleDeclaration & WithRegion(const char *value)
RuleDeclaration & WithRegion(const Aws::String &value)
RuleDeclaration & AddConfiguration(const Aws::String &key, const Aws::String &value)
RuleDeclaration & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
RuleDeclaration & WithRoleArn(Aws::String &&value)
RuleDeclaration & AddInputArtifacts(const InputArtifact &value)
void SetName(const Aws::String &value)
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
RuleDeclaration & WithRegion(Aws::String &&value)
void SetRuleTypeId(const RuleTypeId &value)
AWS_CODEPIPELINE_API RuleDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleDeclaration & WithRoleArn(const Aws::String &value)
void SetInputArtifacts(const Aws::Vector< InputArtifact > &value)
void SetRoleArn(const Aws::String &value)
RuleDeclaration & AddConfiguration(const Aws::String &key, Aws::String &&value)
RuleDeclaration & AddConfiguration(const char *key, const char *value)
RuleDeclaration & AddConfiguration(Aws::String &&key, Aws::String &&value)
AWS_CODEPIPELINE_API RuleDeclaration(Aws::Utils::Json::JsonView jsonValue)
RuleDeclaration & WithRoleArn(const char *value)
RuleDeclaration & WithInputArtifacts(const Aws::Vector< InputArtifact > &value)
RuleDeclaration & WithName(const char *value)
RuleDeclaration & WithName(Aws::String &&value)
void SetInputArtifacts(Aws::Vector< InputArtifact > &&value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleDeclaration & WithRuleTypeId(const RuleTypeId &value)
RuleDeclaration & AddConfiguration(Aws::String &&key, const Aws::String &value)
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