AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigRule.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/Scope.h>
10#include <aws/config/model/Source.h>
11#include <aws/config/model/MaximumExecutionFrequency.h>
12#include <aws/config/model/ConfigRuleState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/config/model/EvaluationModeConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ConfigService
28{
29namespace Model
30{
31
61 {
62 public:
63 AWS_CONFIGSERVICE_API ConfigRule() = default;
64 AWS_CONFIGSERVICE_API ConfigRule(Aws::Utils::Json::JsonView jsonValue);
65 AWS_CONFIGSERVICE_API ConfigRule& operator=(Aws::Utils::Json::JsonView jsonValue);
66 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
67
68
70
74 inline const Aws::String& GetConfigRuleName() const { return m_configRuleName; }
75 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
76 template<typename ConfigRuleNameT = Aws::String>
77 void SetConfigRuleName(ConfigRuleNameT&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::forward<ConfigRuleNameT>(value); }
78 template<typename ConfigRuleNameT = Aws::String>
79 ConfigRule& WithConfigRuleName(ConfigRuleNameT&& value) { SetConfigRuleName(std::forward<ConfigRuleNameT>(value)); return *this;}
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) { m_configRuleArnHasBeenSet = true; m_configRuleArn = std::forward<ConfigRuleArnT>(value); }
90 template<typename ConfigRuleArnT = Aws::String>
91 ConfigRule& WithConfigRuleArn(ConfigRuleArnT&& value) { SetConfigRuleArn(std::forward<ConfigRuleArnT>(value)); return *this;}
93
95
98 inline const Aws::String& GetConfigRuleId() const { return m_configRuleId; }
99 inline bool ConfigRuleIdHasBeenSet() const { return m_configRuleIdHasBeenSet; }
100 template<typename ConfigRuleIdT = Aws::String>
101 void SetConfigRuleId(ConfigRuleIdT&& value) { m_configRuleIdHasBeenSet = true; m_configRuleId = std::forward<ConfigRuleIdT>(value); }
102 template<typename ConfigRuleIdT = Aws::String>
103 ConfigRule& WithConfigRuleId(ConfigRuleIdT&& value) { SetConfigRuleId(std::forward<ConfigRuleIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template<typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
114 template<typename DescriptionT = Aws::String>
115 ConfigRule& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
117
119
127 inline const Scope& GetScope() const { return m_scope; }
128 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
129 template<typename ScopeT = Scope>
130 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
131 template<typename ScopeT = Scope>
132 ConfigRule& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
134
136
143 inline const Source& GetSource() const { return m_source; }
144 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
145 template<typename SourceT = Source>
146 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
147 template<typename SourceT = Source>
148 ConfigRule& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
150
152
156 inline const Aws::String& GetInputParameters() const { return m_inputParameters; }
157 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
158 template<typename InputParametersT = Aws::String>
159 void SetInputParameters(InputParametersT&& value) { m_inputParametersHasBeenSet = true; m_inputParameters = std::forward<InputParametersT>(value); }
160 template<typename InputParametersT = Aws::String>
161 ConfigRule& WithInputParameters(InputParametersT&& value) { SetInputParameters(std::forward<InputParametersT>(value)); return *this;}
163
165
176 inline MaximumExecutionFrequency GetMaximumExecutionFrequency() const { return m_maximumExecutionFrequency; }
177 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
178 inline void SetMaximumExecutionFrequency(MaximumExecutionFrequency value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; }
181
183
196 inline ConfigRuleState GetConfigRuleState() const { return m_configRuleState; }
197 inline bool ConfigRuleStateHasBeenSet() const { return m_configRuleStateHasBeenSet; }
198 inline void SetConfigRuleState(ConfigRuleState value) { m_configRuleStateHasBeenSet = true; m_configRuleState = value; }
199 inline ConfigRule& WithConfigRuleState(ConfigRuleState value) { SetConfigRuleState(value); return *this;}
201
203
208 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
209 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
210 template<typename CreatedByT = Aws::String>
211 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
212 template<typename CreatedByT = Aws::String>
213 ConfigRule& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
215
217
221 inline const Aws::Vector<EvaluationModeConfiguration>& GetEvaluationModes() const { return m_evaluationModes; }
222 inline bool EvaluationModesHasBeenSet() const { return m_evaluationModesHasBeenSet; }
223 template<typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
224 void SetEvaluationModes(EvaluationModesT&& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes = std::forward<EvaluationModesT>(value); }
225 template<typename EvaluationModesT = Aws::Vector<EvaluationModeConfiguration>>
226 ConfigRule& WithEvaluationModes(EvaluationModesT&& value) { SetEvaluationModes(std::forward<EvaluationModesT>(value)); return *this;}
227 template<typename EvaluationModesT = EvaluationModeConfiguration>
228 ConfigRule& AddEvaluationModes(EvaluationModesT&& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes.emplace_back(std::forward<EvaluationModesT>(value)); return *this; }
230 private:
231
232 Aws::String m_configRuleName;
233 bool m_configRuleNameHasBeenSet = false;
234
235 Aws::String m_configRuleArn;
236 bool m_configRuleArnHasBeenSet = false;
237
238 Aws::String m_configRuleId;
239 bool m_configRuleIdHasBeenSet = false;
240
241 Aws::String m_description;
242 bool m_descriptionHasBeenSet = false;
243
244 Scope m_scope;
245 bool m_scopeHasBeenSet = false;
246
247 Source m_source;
248 bool m_sourceHasBeenSet = false;
249
250 Aws::String m_inputParameters;
251 bool m_inputParametersHasBeenSet = false;
252
254 bool m_maximumExecutionFrequencyHasBeenSet = false;
255
256 ConfigRuleState m_configRuleState{ConfigRuleState::NOT_SET};
257 bool m_configRuleStateHasBeenSet = false;
258
259 Aws::String m_createdBy;
260 bool m_createdByHasBeenSet = false;
261
263 bool m_evaluationModesHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace ConfigService
268} // 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:179
ConfigRule & WithConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:103
ConfigRule & WithEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:226
void SetConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:89
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigRule & WithCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:213
ConfigRule & WithConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:199
void SetInputParameters(InputParametersT &&value)
Definition ConfigRule.h:159
ConfigRule & WithConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:79
ConfigRule & WithConfigRuleArn(ConfigRuleArnT &&value)
Definition ConfigRule.h:91
ConfigRule & WithSource(SourceT &&value)
Definition ConfigRule.h:148
ConfigRule & AddEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:228
ConfigRule & WithScope(ScopeT &&value)
Definition ConfigRule.h:132
const Aws::String & GetInputParameters() const
Definition ConfigRule.h:156
ConfigRule & WithInputParameters(InputParametersT &&value)
Definition ConfigRule.h:161
ConfigRule & WithDescription(DescriptionT &&value)
Definition ConfigRule.h:115
ConfigRuleState GetConfigRuleState() const
Definition ConfigRule.h:196
void SetMaximumExecutionFrequency(MaximumExecutionFrequency value)
Definition ConfigRule.h:178
AWS_CONFIGSERVICE_API ConfigRule()=default
const Aws::String & GetDescription() const
Definition ConfigRule.h:110
void SetDescription(DescriptionT &&value)
Definition ConfigRule.h:113
const Aws::Vector< EvaluationModeConfiguration > & GetEvaluationModes() const
Definition ConfigRule.h:221
const Aws::String & GetConfigRuleName() const
Definition ConfigRule.h:74
void SetConfigRuleId(ConfigRuleIdT &&value)
Definition ConfigRule.h:101
void SetEvaluationModes(EvaluationModesT &&value)
Definition ConfigRule.h:224
const Aws::String & GetConfigRuleArn() const
Definition ConfigRule.h:86
const Source & GetSource() const
Definition ConfigRule.h:143
void SetConfigRuleState(ConfigRuleState value)
Definition ConfigRule.h:198
const Aws::String & GetConfigRuleId() const
Definition ConfigRule.h:98
void SetConfigRuleName(ConfigRuleNameT &&value)
Definition ConfigRule.h:77
MaximumExecutionFrequency GetMaximumExecutionFrequency() const
Definition ConfigRule.h:176
const Aws::String & GetCreatedBy() const
Definition ConfigRule.h:208
void SetCreatedBy(CreatedByT &&value)
Definition ConfigRule.h:211
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue