AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
77 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
78 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
79 inline ConfigRule& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
80 inline ConfigRule& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
81 inline ConfigRule& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
83
85
88 inline const Aws::String& GetConfigRuleArn() const{ return m_configRuleArn; }
89 inline bool ConfigRuleArnHasBeenSet() const { return m_configRuleArnHasBeenSet; }
90 inline void SetConfigRuleArn(const Aws::String& value) { m_configRuleArnHasBeenSet = true; m_configRuleArn = value; }
91 inline void SetConfigRuleArn(Aws::String&& value) { m_configRuleArnHasBeenSet = true; m_configRuleArn = std::move(value); }
92 inline void SetConfigRuleArn(const char* value) { m_configRuleArnHasBeenSet = true; m_configRuleArn.assign(value); }
93 inline ConfigRule& WithConfigRuleArn(const Aws::String& value) { SetConfigRuleArn(value); return *this;}
94 inline ConfigRule& WithConfigRuleArn(Aws::String&& value) { SetConfigRuleArn(std::move(value)); return *this;}
95 inline ConfigRule& WithConfigRuleArn(const char* value) { SetConfigRuleArn(value); return *this;}
97
99
102 inline const Aws::String& GetConfigRuleId() const{ return m_configRuleId; }
103 inline bool ConfigRuleIdHasBeenSet() const { return m_configRuleIdHasBeenSet; }
104 inline void SetConfigRuleId(const Aws::String& value) { m_configRuleIdHasBeenSet = true; m_configRuleId = value; }
105 inline void SetConfigRuleId(Aws::String&& value) { m_configRuleIdHasBeenSet = true; m_configRuleId = std::move(value); }
106 inline void SetConfigRuleId(const char* value) { m_configRuleIdHasBeenSet = true; m_configRuleId.assign(value); }
107 inline ConfigRule& WithConfigRuleId(const Aws::String& value) { SetConfigRuleId(value); return *this;}
108 inline ConfigRule& WithConfigRuleId(Aws::String&& value) { SetConfigRuleId(std::move(value)); return *this;}
109 inline ConfigRule& WithConfigRuleId(const char* value) { SetConfigRuleId(value); return *this;}
111
113
116 inline const Aws::String& GetDescription() const{ return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
120 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 inline ConfigRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 inline ConfigRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 inline ConfigRule& WithDescription(const char* value) { SetDescription(value); return *this;}
125
127
135 inline const Scope& GetScope() const{ return m_scope; }
136 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
137 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
138 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
139 inline ConfigRule& WithScope(const Scope& value) { SetScope(value); return *this;}
140 inline ConfigRule& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
142
144
151 inline const Source& GetSource() const{ return m_source; }
152 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
153 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
154 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
155 inline ConfigRule& WithSource(const Source& value) { SetSource(value); return *this;}
156 inline ConfigRule& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
158
160
164 inline const Aws::String& GetInputParameters() const{ return m_inputParameters; }
165 inline bool InputParametersHasBeenSet() const { return m_inputParametersHasBeenSet; }
166 inline void SetInputParameters(const Aws::String& value) { m_inputParametersHasBeenSet = true; m_inputParameters = value; }
167 inline void SetInputParameters(Aws::String&& value) { m_inputParametersHasBeenSet = true; m_inputParameters = std::move(value); }
168 inline void SetInputParameters(const char* value) { m_inputParametersHasBeenSet = true; m_inputParameters.assign(value); }
169 inline ConfigRule& WithInputParameters(const Aws::String& value) { SetInputParameters(value); return *this;}
170 inline ConfigRule& WithInputParameters(Aws::String&& value) { SetInputParameters(std::move(value)); return *this;}
171 inline ConfigRule& WithInputParameters(const char* value) { SetInputParameters(value); return *this;}
173
175
186 inline const MaximumExecutionFrequency& GetMaximumExecutionFrequency() const{ return m_maximumExecutionFrequency; }
187 inline bool MaximumExecutionFrequencyHasBeenSet() const { return m_maximumExecutionFrequencyHasBeenSet; }
188 inline void SetMaximumExecutionFrequency(const MaximumExecutionFrequency& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; }
189 inline void SetMaximumExecutionFrequency(MaximumExecutionFrequency&& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = std::move(value); }
193
195
208 inline const ConfigRuleState& GetConfigRuleState() const{ return m_configRuleState; }
209 inline bool ConfigRuleStateHasBeenSet() const { return m_configRuleStateHasBeenSet; }
210 inline void SetConfigRuleState(const ConfigRuleState& value) { m_configRuleStateHasBeenSet = true; m_configRuleState = value; }
211 inline void SetConfigRuleState(ConfigRuleState&& value) { m_configRuleStateHasBeenSet = true; m_configRuleState = std::move(value); }
212 inline ConfigRule& WithConfigRuleState(const ConfigRuleState& value) { SetConfigRuleState(value); return *this;}
213 inline ConfigRule& WithConfigRuleState(ConfigRuleState&& value) { SetConfigRuleState(std::move(value)); return *this;}
215
217
222 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
223 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
224 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
225 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
226 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
227 inline ConfigRule& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
228 inline ConfigRule& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
229 inline ConfigRule& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
231
233
237 inline const Aws::Vector<EvaluationModeConfiguration>& GetEvaluationModes() const{ return m_evaluationModes; }
238 inline bool EvaluationModesHasBeenSet() const { return m_evaluationModesHasBeenSet; }
239 inline void SetEvaluationModes(const Aws::Vector<EvaluationModeConfiguration>& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes = value; }
240 inline void SetEvaluationModes(Aws::Vector<EvaluationModeConfiguration>&& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes = std::move(value); }
243 inline ConfigRule& AddEvaluationModes(const EvaluationModeConfiguration& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes.push_back(value); return *this; }
244 inline ConfigRule& AddEvaluationModes(EvaluationModeConfiguration&& value) { m_evaluationModesHasBeenSet = true; m_evaluationModes.push_back(std::move(value)); return *this; }
246 private:
247
248 Aws::String m_configRuleName;
249 bool m_configRuleNameHasBeenSet = false;
250
251 Aws::String m_configRuleArn;
252 bool m_configRuleArnHasBeenSet = false;
253
254 Aws::String m_configRuleId;
255 bool m_configRuleIdHasBeenSet = false;
256
257 Aws::String m_description;
258 bool m_descriptionHasBeenSet = false;
259
260 Scope m_scope;
261 bool m_scopeHasBeenSet = false;
262
263 Source m_source;
264 bool m_sourceHasBeenSet = false;
265
266 Aws::String m_inputParameters;
267 bool m_inputParametersHasBeenSet = false;
268
269 MaximumExecutionFrequency m_maximumExecutionFrequency;
270 bool m_maximumExecutionFrequencyHasBeenSet = false;
271
272 ConfigRuleState m_configRuleState;
273 bool m_configRuleStateHasBeenSet = false;
274
275 Aws::String m_createdBy;
276 bool m_createdByHasBeenSet = false;
277
279 bool m_evaluationModesHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace ConfigService
284} // namespace Aws
ConfigRule & WithCreatedBy(const Aws::String &value)
Definition ConfigRule.h:227
void SetMaximumExecutionFrequency(MaximumExecutionFrequency &&value)
Definition ConfigRule.h:189
AWS_CONFIGSERVICE_API ConfigRule(Aws::Utils::Json::JsonView jsonValue)
ConfigRule & WithConfigRuleArn(const char *value)
Definition ConfigRule.h:95
const MaximumExecutionFrequency & GetMaximumExecutionFrequency() const
Definition ConfigRule.h:186
void SetDescription(const Aws::String &value)
Definition ConfigRule.h:118
AWS_CONFIGSERVICE_API ConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigRule & WithConfigRuleId(const char *value)
Definition ConfigRule.h:109
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedBy(Aws::String &&value)
Definition ConfigRule.h:225
void SetDescription(const char *value)
Definition ConfigRule.h:120
ConfigRule & WithConfigRuleState(const ConfigRuleState &value)
Definition ConfigRule.h:212
ConfigRule & WithDescription(Aws::String &&value)
Definition ConfigRule.h:122
void SetInputParameters(Aws::String &&value)
Definition ConfigRule.h:167
AWS_CONFIGSERVICE_API ConfigRule()
ConfigRule & WithCreatedBy(const char *value)
Definition ConfigRule.h:229
void SetCreatedBy(const char *value)
Definition ConfigRule.h:226
void SetSource(const Source &value)
Definition ConfigRule.h:153
ConfigRule & AddEvaluationModes(EvaluationModeConfiguration &&value)
Definition ConfigRule.h:244
ConfigRule & AddEvaluationModes(const EvaluationModeConfiguration &value)
Definition ConfigRule.h:243
void SetConfigRuleName(const Aws::String &value)
Definition ConfigRule.h:76
void SetConfigRuleState(const ConfigRuleState &value)
Definition ConfigRule.h:210
void SetConfigRuleArn(const char *value)
Definition ConfigRule.h:92
ConfigRule & WithDescription(const Aws::String &value)
Definition ConfigRule.h:121
void SetConfigRuleName(const char *value)
Definition ConfigRule.h:78
ConfigRule & WithScope(const Scope &value)
Definition ConfigRule.h:139
const ConfigRuleState & GetConfigRuleState() const
Definition ConfigRule.h:208
const Aws::String & GetInputParameters() const
Definition ConfigRule.h:164
ConfigRule & WithConfigRuleName(Aws::String &&value)
Definition ConfigRule.h:80
void SetInputParameters(const char *value)
Definition ConfigRule.h:168
void SetConfigRuleId(const Aws::String &value)
Definition ConfigRule.h:104
void SetInputParameters(const Aws::String &value)
Definition ConfigRule.h:166
void SetScope(const Scope &value)
Definition ConfigRule.h:137
void SetCreatedBy(const Aws::String &value)
Definition ConfigRule.h:224
ConfigRule & WithConfigRuleId(Aws::String &&value)
Definition ConfigRule.h:108
ConfigRule & WithConfigRuleName(const char *value)
Definition ConfigRule.h:81
const Aws::String & GetDescription() const
Definition ConfigRule.h:116
const Aws::Vector< EvaluationModeConfiguration > & GetEvaluationModes() const
Definition ConfigRule.h:237
ConfigRule & WithCreatedBy(Aws::String &&value)
Definition ConfigRule.h:228
ConfigRule & WithConfigRuleId(const Aws::String &value)
Definition ConfigRule.h:107
ConfigRule & WithEvaluationModes(Aws::Vector< EvaluationModeConfiguration > &&value)
Definition ConfigRule.h:242
ConfigRule & WithSource(Source &&value)
Definition ConfigRule.h:156
ConfigRule & WithInputParameters(const char *value)
Definition ConfigRule.h:171
const Aws::String & GetConfigRuleName() const
Definition ConfigRule.h:74
ConfigRule & WithInputParameters(Aws::String &&value)
Definition ConfigRule.h:170
ConfigRule & WithConfigRuleState(ConfigRuleState &&value)
Definition ConfigRule.h:213
ConfigRule & WithInputParameters(const Aws::String &value)
Definition ConfigRule.h:169
void SetConfigRuleArn(Aws::String &&value)
Definition ConfigRule.h:91
void SetDescription(Aws::String &&value)
Definition ConfigRule.h:119
void SetConfigRuleArn(const Aws::String &value)
Definition ConfigRule.h:90
void SetMaximumExecutionFrequency(const MaximumExecutionFrequency &value)
Definition ConfigRule.h:188
ConfigRule & WithMaximumExecutionFrequency(MaximumExecutionFrequency &&value)
Definition ConfigRule.h:191
void SetEvaluationModes(const Aws::Vector< EvaluationModeConfiguration > &value)
Definition ConfigRule.h:239
void SetConfigRuleState(ConfigRuleState &&value)
Definition ConfigRule.h:211
ConfigRule & WithConfigRuleArn(const Aws::String &value)
Definition ConfigRule.h:93
ConfigRule & WithConfigRuleArn(Aws::String &&value)
Definition ConfigRule.h:94
ConfigRule & WithDescription(const char *value)
Definition ConfigRule.h:123
const Aws::String & GetConfigRuleArn() const
Definition ConfigRule.h:88
const Source & GetSource() const
Definition ConfigRule.h:151
void SetConfigRuleId(const char *value)
Definition ConfigRule.h:106
ConfigRule & WithConfigRuleName(const Aws::String &value)
Definition ConfigRule.h:79
const Aws::String & GetConfigRuleId() const
Definition ConfigRule.h:102
void SetEvaluationModes(Aws::Vector< EvaluationModeConfiguration > &&value)
Definition ConfigRule.h:240
ConfigRule & WithEvaluationModes(const Aws::Vector< EvaluationModeConfiguration > &value)
Definition ConfigRule.h:241
void SetConfigRuleName(Aws::String &&value)
Definition ConfigRule.h:77
ConfigRule & WithScope(Scope &&value)
Definition ConfigRule.h:140
void SetConfigRuleId(Aws::String &&value)
Definition ConfigRule.h:105
ConfigRule & WithSource(const Source &value)
Definition ConfigRule.h:155
const Aws::String & GetCreatedBy() const
Definition ConfigRule.h:222
ConfigRule & WithMaximumExecutionFrequency(const MaximumExecutionFrequency &value)
Definition ConfigRule.h:190
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue