AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ConfigRule.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ConfigRuleState.h>
9#include <aws/config/model/EvaluationModeConfiguration.h>
10#include <aws/config/model/MaximumExecutionFrequency.h>
11#include <aws/config/model/Scope.h>
12#include <aws/config/model/Source.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConfigService {
26namespace Model {
27
57 public:
58 AWS_CONFIGSERVICE_API ConfigRule() = default;
59 AWS_CONFIGSERVICE_API ConfigRule(Aws::Utils::Json::JsonView jsonValue);
60 AWS_CONFIGSERVICE_API ConfigRule& operator=(Aws::Utils::Json::JsonView jsonValue);
61 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
62
64
68 inline const Aws::String& GetConfigRuleName() const { return m_configRuleName; }
69 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
70 template <typename ConfigRuleNameT = Aws::String>
71 void SetConfigRuleName(ConfigRuleNameT&& value) {
72 m_configRuleNameHasBeenSet = true;
73 m_configRuleName = std::forward<ConfigRuleNameT>(value);
74 }
75 template <typename ConfigRuleNameT = Aws::String>
76 ConfigRule& WithConfigRuleName(ConfigRuleNameT&& value) {
77 SetConfigRuleName(std::forward<ConfigRuleNameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetConfigRuleArn() const { return m_configRuleArn; }
87 inline bool ConfigRuleArnHasBeenSet() const { return m_configRuleArnHasBeenSet; }
88 template <typename ConfigRuleArnT = Aws::String>
89 void SetConfigRuleArn(ConfigRuleArnT&& value) {
90 m_configRuleArnHasBeenSet = true;
91 m_configRuleArn = std::forward<ConfigRuleArnT>(value);
92 }
93 template <typename ConfigRuleArnT = Aws::String>
94 ConfigRule& WithConfigRuleArn(ConfigRuleArnT&& value) {
95 SetConfigRuleArn(std::forward<ConfigRuleArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetConfigRuleId() const { return m_configRuleId; }
105 inline bool ConfigRuleIdHasBeenSet() const { return m_configRuleIdHasBeenSet; }
106 template <typename ConfigRuleIdT = Aws::String>
107 void SetConfigRuleId(ConfigRuleIdT&& value) {
108 m_configRuleIdHasBeenSet = true;
109 m_configRuleId = std::forward<ConfigRuleIdT>(value);
110 }
111 template <typename ConfigRuleIdT = Aws::String>
112 ConfigRule& WithConfigRuleId(ConfigRuleIdT&& value) {
113 SetConfigRuleId(std::forward<ConfigRuleIdT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDescription() const { return m_description; }
123 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
130 ConfigRule& WithDescription(DescriptionT&& value) {
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
145 inline const Scope& GetScope() const { return m_scope; }
146 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
147 template <typename ScopeT = Scope>
148 void SetScope(ScopeT&& value) {
149 m_scopeHasBeenSet = true;
150 m_scope = std::forward<ScopeT>(value);
151 }
152 template <typename ScopeT = Scope>
153 ConfigRule& WithScope(ScopeT&& value) {
154 SetScope(std::forward<ScopeT>(value));
155 return *this;
156 }
158
160
167 inline const Source& GetSource() const { return m_source; }
168 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
169 template <typename SourceT = Source>
170 void SetSource(SourceT&& value) {
171 m_sourceHasBeenSet = true;
172 m_source = std::forward<SourceT>(value);
173 }
174 template <typename SourceT = Source>
175 ConfigRule& WithSource(SourceT&& value) {
176 SetSource(std::forward<SourceT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::String& GetInputParameters() const { return m_inputParameters; }
187 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
188 template <typename InputParametersT = Aws::String>
189 void SetInputParameters(InputParametersT&& value) {
190 m_inputParametersHasBeenSet = true;
191 m_inputParameters = std::forward<InputParametersT>(value);
192 }
193 template <typename InputParametersT = Aws::String>
194 ConfigRule& WithInputParameters(InputParametersT&& value) {
195 SetInputParameters(std::forward<InputParametersT>(value));
196 return *this;
197 }
199
201
212 inline MaximumExecutionFrequency GetMaximumExecutionFrequency() const { return m_maximumExecutionFrequency; }
213 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
215 m_maximumExecutionFrequencyHasBeenSet = true;
216 m_maximumExecutionFrequency = value;
217 }
220 return *this;
221 }
223
225
238 inline ConfigRuleState GetConfigRuleState() const { return m_configRuleState; }
239 inline bool ConfigRuleStateHasBeenSet() const { return m_configRuleStateHasBeenSet; }
241 m_configRuleStateHasBeenSet = true;
242 m_configRuleState = value;
243 }
245 SetConfigRuleState(value);
246 return *this;
247 }
249
251
256 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
257 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
258 template <typename CreatedByT = Aws::String>
259 void SetCreatedBy(CreatedByT&& value) {
260 m_createdByHasBeenSet = true;
261 m_createdBy = std::forward<CreatedByT>(value);
262 }
263 template <typename CreatedByT = Aws::String>
264 ConfigRule& WithCreatedBy(CreatedByT&& value) {
265 SetCreatedBy(std::forward<CreatedByT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::Vector<EvaluationModeConfiguration>& GetEvaluationModes() const { return m_evaluationModes; }
276 inline bool EvaluationModesHasBeenSet() const { return m_evaluationModesHasBeenSet; }
277 template <typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
278 void SetEvaluationModes(EvaluationModesT&& value) {
279 m_evaluationModesHasBeenSet = true;
280 m_evaluationModes = std::forward<EvaluationModesT>(value);
281 }
282 template <typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
283 ConfigRule& WithEvaluationModes(EvaluationModesT&& value) {
284 SetEvaluationModes(std::forward<EvaluationModesT>(value));
285 return *this;
286 }
287 template <typename EvaluationModesT = EvaluationModeConfiguration>
288 ConfigRule& AddEvaluationModes(EvaluationModesT&& value) {
289 m_evaluationModesHasBeenSet = true;
290 m_evaluationModes.emplace_back(std::forward<EvaluationModesT>(value));
291 return *this;
292 }
294 private:
295 Aws::String m_configRuleName;
296
297 Aws::String m_configRuleArn;
298
299 Aws::String m_configRuleId;
300
301 Aws::String m_description;
302
303 Scope m_scope;
304
305 Source m_source;
306
307 Aws::String m_inputParameters;
308
310
311 ConfigRuleState m_configRuleState{ConfigRuleState::NOT_SET};
312
313 Aws::String m_createdBy;
314
316 bool m_configRuleNameHasBeenSet = false;
317 bool m_configRuleArnHasBeenSet = false;
318 bool m_configRuleIdHasBeenSet = false;
319 bool m_descriptionHasBeenSet = false;
320 bool m_scopeHasBeenSet = false;
321 bool m_sourceHasBeenSet = false;
322 bool m_inputParametersHasBeenSet = false;
323 bool m_maximumExecutionFrequencyHasBeenSet = false;
324 bool m_configRuleStateHasBeenSet = false;
325 bool m_createdByHasBeenSet = false;
326 bool m_evaluationModesHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace ConfigService
331} // namespace Aws
AWS_CONFIGSERVICE_API ConfigRule(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigRule & WithMaximumExecutionFrequency(MaximumExecutionFrequency value)
Definition ConfigRule.h:218
ConfigRule & WithConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:112
ConfigRule & WithEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:283
void SetConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:89
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigRule & WithCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:264
ConfigRule & WithConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:244
void SetInputParameters(InputParametersT &&value)
Definition ConfigRule.h:189
ConfigRule & WithConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:76
ConfigRule & WithConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:94
ConfigRule & WithSource(SourceT &&value)
Definition ConfigRule.h:175
ConfigRule & AddEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:288
ConfigRule & WithScope(ScopeT &&value)
Definition ConfigRule.h:153
const Aws::String & GetInputParameters() const
Definition ConfigRule.h:186
ConfigRule & WithInputParameters(InputParametersT &&value)
Definition ConfigRule.h:194
ConfigRule & WithDescription(DescriptionT &&value)
Definition ConfigRule.h:130
ConfigRuleState GetConfigRuleState() const
Definition ConfigRule.h:238
void SetMaximumExecutionFrequency(MaximumExecutionFrequency value)
Definition ConfigRule.h:214
AWS_CONFIGSERVICE_API ConfigRule()=default
const Aws::String & GetDescription() const
Definition ConfigRule.h:122
void SetDescription(DescriptionT &&value)
Definition ConfigRule.h:125
const Aws::Vector< EvaluationModeConfiguration > & GetEvaluationModes() const
Definition ConfigRule.h:275
const Aws::String & GetConfigRuleName() const
Definition ConfigRule.h:68
void SetConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:107
void SetEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:278
const Aws::String & GetConfigRuleArn() const
Definition ConfigRule.h:86
const Source & GetSource() const
Definition ConfigRule.h:167
void SetConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:240
const Aws::String & GetConfigRuleId() const
Definition ConfigRule.h:104
void SetConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:71
MaximumExecutionFrequency GetMaximumExecutionFrequency() const
Definition ConfigRule.h:212
const Aws::String & GetCreatedBy() const
Definition ConfigRule.h:256
void SetCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:259
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue