AWS SDK for C++

AWS SDK for C++ Version 1.11.827

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/RuleEvaluationVisibility.h>
12#include <aws/config/model/Scope.h>
13#include <aws/config/model/Source.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConfigService {
27namespace Model {
28
58 public:
59 AWS_CONFIGSERVICE_API ConfigRule() = default;
60 AWS_CONFIGSERVICE_API ConfigRule(Aws::Utils::Json::JsonView jsonValue);
61 AWS_CONFIGSERVICE_API ConfigRule& operator=(Aws::Utils::Json::JsonView jsonValue);
62 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
63
65
69 inline const Aws::String& GetConfigRuleName() const { return m_configRuleName; }
70 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
71 template <typename ConfigRuleNameT = Aws::String>
72 void SetConfigRuleName(ConfigRuleNameT&& value) {
73 m_configRuleNameHasBeenSet = true;
74 m_configRuleName = std::forward<ConfigRuleNameT>(value);
75 }
76 template <typename ConfigRuleNameT = Aws::String>
77 ConfigRule& WithConfigRuleName(ConfigRuleNameT&& value) {
78 SetConfigRuleName(std::forward<ConfigRuleNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetConfigRuleArn() const { return m_configRuleArn; }
88 inline bool ConfigRuleArnHasBeenSet() const { return m_configRuleArnHasBeenSet; }
89 template <typename ConfigRuleArnT = Aws::String>
90 void SetConfigRuleArn(ConfigRuleArnT&& value) {
91 m_configRuleArnHasBeenSet = true;
92 m_configRuleArn = std::forward<ConfigRuleArnT>(value);
93 }
94 template <typename ConfigRuleArnT = Aws::String>
95 ConfigRule& WithConfigRuleArn(ConfigRuleArnT&& value) {
96 SetConfigRuleArn(std::forward<ConfigRuleArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetConfigRuleId() const { return m_configRuleId; }
106 inline bool ConfigRuleIdHasBeenSet() const { return m_configRuleIdHasBeenSet; }
107 template <typename ConfigRuleIdT = Aws::String>
108 void SetConfigRuleId(ConfigRuleIdT&& value) {
109 m_configRuleIdHasBeenSet = true;
110 m_configRuleId = std::forward<ConfigRuleIdT>(value);
111 }
112 template <typename ConfigRuleIdT = Aws::String>
113 ConfigRule& WithConfigRuleId(ConfigRuleIdT&& value) {
114 SetConfigRuleId(std::forward<ConfigRuleIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 template <typename DescriptionT = Aws::String>
126 void SetDescription(DescriptionT&& value) {
127 m_descriptionHasBeenSet = true;
128 m_description = std::forward<DescriptionT>(value);
129 }
130 template <typename DescriptionT = Aws::String>
131 ConfigRule& WithDescription(DescriptionT&& value) {
132 SetDescription(std::forward<DescriptionT>(value));
133 return *this;
134 }
136
138
146 inline const Scope& GetScope() const { return m_scope; }
147 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
148 template <typename ScopeT = Scope>
149 void SetScope(ScopeT&& value) {
150 m_scopeHasBeenSet = true;
151 m_scope = std::forward<ScopeT>(value);
152 }
153 template <typename ScopeT = Scope>
154 ConfigRule& WithScope(ScopeT&& value) {
155 SetScope(std::forward<ScopeT>(value));
156 return *this;
157 }
159
161
168 inline const Source& GetSource() const { return m_source; }
169 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
170 template <typename SourceT = Source>
171 void SetSource(SourceT&& value) {
172 m_sourceHasBeenSet = true;
173 m_source = std::forward<SourceT>(value);
174 }
175 template <typename SourceT = Source>
176 ConfigRule& WithSource(SourceT&& value) {
177 SetSource(std::forward<SourceT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetInputParameters() const { return m_inputParameters; }
188 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
189 template <typename InputParametersT = Aws::String>
190 void SetInputParameters(InputParametersT&& value) {
191 m_inputParametersHasBeenSet = true;
192 m_inputParameters = std::forward<InputParametersT>(value);
193 }
194 template <typename InputParametersT = Aws::String>
195 ConfigRule& WithInputParameters(InputParametersT&& value) {
196 SetInputParameters(std::forward<InputParametersT>(value));
197 return *this;
198 }
200
202
213 inline MaximumExecutionFrequency GetMaximumExecutionFrequency() const { return m_maximumExecutionFrequency; }
214 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
216 m_maximumExecutionFrequencyHasBeenSet = true;
217 m_maximumExecutionFrequency = value;
218 }
221 return *this;
222 }
224
226
239 inline ConfigRuleState GetConfigRuleState() const { return m_configRuleState; }
240 inline bool ConfigRuleStateHasBeenSet() const { return m_configRuleStateHasBeenSet; }
242 m_configRuleStateHasBeenSet = true;
243 m_configRuleState = value;
244 }
246 SetConfigRuleState(value);
247 return *this;
248 }
250
252
257 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
258 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
259 template <typename CreatedByT = Aws::String>
260 void SetCreatedBy(CreatedByT&& value) {
261 m_createdByHasBeenSet = true;
262 m_createdBy = std::forward<CreatedByT>(value);
263 }
264 template <typename CreatedByT = Aws::String>
265 ConfigRule& WithCreatedBy(CreatedByT&& value) {
266 SetCreatedBy(std::forward<CreatedByT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Vector<EvaluationModeConfiguration>& GetEvaluationModes() const { return m_evaluationModes; }
277 inline bool EvaluationModesHasBeenSet() const { return m_evaluationModesHasBeenSet; }
278 template <typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
279 void SetEvaluationModes(EvaluationModesT&& value) {
280 m_evaluationModesHasBeenSet = true;
281 m_evaluationModes = std::forward<EvaluationModesT>(value);
282 }
283 template <typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
284 ConfigRule& WithEvaluationModes(EvaluationModesT&& value) {
285 SetEvaluationModes(std::forward<EvaluationModesT>(value));
286 return *this;
287 }
288 template <typename EvaluationModesT = EvaluationModeConfiguration>
289 ConfigRule& AddEvaluationModes(EvaluationModesT&& value) {
290 m_evaluationModesHasBeenSet = true;
291 m_evaluationModes.emplace_back(std::forward<EvaluationModesT>(value));
292 return *this;
293 }
295
297
303 inline RuleEvaluationVisibility GetRuleEvaluationVisibility() const { return m_ruleEvaluationVisibility; }
304 inline bool RuleEvaluationVisibilityHasBeenSet() const { return m_ruleEvaluationVisibilityHasBeenSet; }
306 m_ruleEvaluationVisibilityHasBeenSet = true;
307 m_ruleEvaluationVisibility = value;
308 }
311 return *this;
312 }
314 private:
315 Aws::String m_configRuleName;
316
317 Aws::String m_configRuleArn;
318
319 Aws::String m_configRuleId;
320
321 Aws::String m_description;
322
323 Scope m_scope;
324
325 Source m_source;
326
327 Aws::String m_inputParameters;
328
330
331 ConfigRuleState m_configRuleState{ConfigRuleState::NOT_SET};
332
333 Aws::String m_createdBy;
334
336
338 bool m_configRuleNameHasBeenSet = false;
339 bool m_configRuleArnHasBeenSet = false;
340 bool m_configRuleIdHasBeenSet = false;
341 bool m_descriptionHasBeenSet = false;
342 bool m_scopeHasBeenSet = false;
343 bool m_sourceHasBeenSet = false;
344 bool m_inputParametersHasBeenSet = false;
345 bool m_maximumExecutionFrequencyHasBeenSet = false;
346 bool m_configRuleStateHasBeenSet = false;
347 bool m_createdByHasBeenSet = false;
348 bool m_evaluationModesHasBeenSet = false;
349 bool m_ruleEvaluationVisibilityHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace ConfigService
354} // 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:219
ConfigRule & WithConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:113
ConfigRule & WithEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:284
void SetConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:90
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigRule & WithCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:265
RuleEvaluationVisibility GetRuleEvaluationVisibility() const
Definition ConfigRule.h:303
ConfigRule & WithConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:245
void SetInputParameters(InputParametersT &&value)
Definition ConfigRule.h:190
ConfigRule & WithConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:77
ConfigRule & WithConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:95
ConfigRule & WithRuleEvaluationVisibility(RuleEvaluationVisibility value)
Definition ConfigRule.h:309
ConfigRule & WithSource(SourceT &&value)
Definition ConfigRule.h:176
ConfigRule & AddEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:289
ConfigRule & WithScope(ScopeT &&value)
Definition ConfigRule.h:154
const Aws::String & GetInputParameters() const
Definition ConfigRule.h:187
ConfigRule & WithInputParameters(InputParametersT &&value)
Definition ConfigRule.h:195
ConfigRule & WithDescription(DescriptionT &&value)
Definition ConfigRule.h:131
ConfigRuleState GetConfigRuleState() const
Definition ConfigRule.h:239
void SetMaximumExecutionFrequency(MaximumExecutionFrequency value)
Definition ConfigRule.h:215
AWS_CONFIGSERVICE_API ConfigRule()=default
const Aws::String & GetDescription() const
Definition ConfigRule.h:123
void SetDescription(DescriptionT &&value)
Definition ConfigRule.h:126
const Aws::Vector< EvaluationModeConfiguration > & GetEvaluationModes() const
Definition ConfigRule.h:276
void SetRuleEvaluationVisibility(RuleEvaluationVisibility value)
Definition ConfigRule.h:305
const Aws::String & GetConfigRuleName() const
Definition ConfigRule.h:69
void SetConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:108
void SetEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:279
const Aws::String & GetConfigRuleArn() const
Definition ConfigRule.h:87
const Source & GetSource() const
Definition ConfigRule.h:168
void SetConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:241
const Aws::String & GetConfigRuleId() const
Definition ConfigRule.h:105
void SetConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:72
MaximumExecutionFrequency GetMaximumExecutionFrequency() const
Definition ConfigRule.h:213
const Aws::String & GetCreatedBy() const
Definition ConfigRule.h:257
void SetCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:260
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue