AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
RemediationConfiguration.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ExecutionControls.h>
9#include <aws/config/model/RemediationParameterValue.h>
10#include <aws/config/model/RemediationTargetType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService {
24namespace Model {
25
34 public:
35 AWS_CONFIGSERVICE_API RemediationConfiguration() = default;
36 AWS_CONFIGSERVICE_API RemediationConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetConfigRuleName() const { return m_configRuleName; }
45 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
46 template <typename ConfigRuleNameT = Aws::String>
47 void SetConfigRuleName(ConfigRuleNameT&& value) {
48 m_configRuleNameHasBeenSet = true;
49 m_configRuleName = std::forward<ConfigRuleNameT>(value);
50 }
51 template <typename ConfigRuleNameT = Aws::String>
52 RemediationConfiguration& WithConfigRuleName(ConfigRuleNameT&& value) {
53 SetConfigRuleName(std::forward<ConfigRuleNameT>(value));
54 return *this;
55 }
57
59
63 inline RemediationTargetType GetTargetType() const { return m_targetType; }
64 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
66 m_targetTypeHasBeenSet = true;
67 m_targetType = value;
68 }
70 SetTargetType(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTargetId() const { return m_targetId; }
80 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
81 template <typename TargetIdT = Aws::String>
82 void SetTargetId(TargetIdT&& value) {
83 m_targetIdHasBeenSet = true;
84 m_targetId = std::forward<TargetIdT>(value);
85 }
86 template <typename TargetIdT = Aws::String>
88 SetTargetId(std::forward<TargetIdT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
101 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
102 template <typename TargetVersionT = Aws::String>
103 void SetTargetVersion(TargetVersionT&& value) {
104 m_targetVersionHasBeenSet = true;
105 m_targetVersion = std::forward<TargetVersionT>(value);
106 }
107 template <typename TargetVersionT = Aws::String>
109 SetTargetVersion(std::forward<TargetVersionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Map<Aws::String, RemediationParameterValue>& GetParameters() const { return m_parameters; }
119 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
120 template <typename ParametersT = Aws::Map<Aws::String, RemediationParameterValue>>
121 void SetParameters(ParametersT&& value) {
122 m_parametersHasBeenSet = true;
123 m_parameters = std::forward<ParametersT>(value);
124 }
125 template <typename ParametersT = Aws::Map<Aws::String, RemediationParameterValue>>
127 SetParameters(std::forward<ParametersT>(value));
128 return *this;
129 }
130 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = RemediationParameterValue>
131 RemediationConfiguration& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
132 m_parametersHasBeenSet = true;
133 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetResourceType() const { return m_resourceType; }
143 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
144 template <typename ResourceTypeT = Aws::String>
145 void SetResourceType(ResourceTypeT&& value) {
146 m_resourceTypeHasBeenSet = true;
147 m_resourceType = std::forward<ResourceTypeT>(value);
148 }
149 template <typename ResourceTypeT = Aws::String>
151 SetResourceType(std::forward<ResourceTypeT>(value));
152 return *this;
153 }
155
157
160 inline bool GetAutomatic() const { return m_automatic; }
161 inline bool AutomaticHasBeenSet() const { return m_automaticHasBeenSet; }
162 inline void SetAutomatic(bool value) {
163 m_automaticHasBeenSet = true;
164 m_automatic = value;
165 }
167 SetAutomatic(value);
168 return *this;
169 }
171
173
176 inline const ExecutionControls& GetExecutionControls() const { return m_executionControls; }
177 inline bool ExecutionControlsHasBeenSet() const { return m_executionControlsHasBeenSet; }
178 template <typename ExecutionControlsT = ExecutionControls>
179 void SetExecutionControls(ExecutionControlsT&& value) {
180 m_executionControlsHasBeenSet = true;
181 m_executionControls = std::forward<ExecutionControlsT>(value);
182 }
183 template <typename ExecutionControlsT = ExecutionControls>
184 RemediationConfiguration& WithExecutionControls(ExecutionControlsT&& value) {
185 SetExecutionControls(std::forward<ExecutionControlsT>(value));
186 return *this;
187 }
189
191
198 inline int GetMaximumAutomaticAttempts() const { return m_maximumAutomaticAttempts; }
199 inline bool MaximumAutomaticAttemptsHasBeenSet() const { return m_maximumAutomaticAttemptsHasBeenSet; }
200 inline void SetMaximumAutomaticAttempts(int value) {
201 m_maximumAutomaticAttemptsHasBeenSet = true;
202 m_maximumAutomaticAttempts = value;
203 }
206 return *this;
207 }
209
211
222 inline long long GetRetryAttemptSeconds() const { return m_retryAttemptSeconds; }
223 inline bool RetryAttemptSecondsHasBeenSet() const { return m_retryAttemptSecondsHasBeenSet; }
224 inline void SetRetryAttemptSeconds(long long value) {
225 m_retryAttemptSecondsHasBeenSet = true;
226 m_retryAttemptSeconds = value;
227 }
230 return *this;
231 }
233
235
238 inline const Aws::String& GetArn() const { return m_arn; }
239 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
240 template <typename ArnT = Aws::String>
241 void SetArn(ArnT&& value) {
242 m_arnHasBeenSet = true;
243 m_arn = std::forward<ArnT>(value);
244 }
245 template <typename ArnT = Aws::String>
247 SetArn(std::forward<ArnT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetCreatedByService() const { return m_createdByService; }
257 inline bool CreatedByServiceHasBeenSet() const { return m_createdByServiceHasBeenSet; }
258 template <typename CreatedByServiceT = Aws::String>
259 void SetCreatedByService(CreatedByServiceT&& value) {
260 m_createdByServiceHasBeenSet = true;
261 m_createdByService = std::forward<CreatedByServiceT>(value);
262 }
263 template <typename CreatedByServiceT = Aws::String>
264 RemediationConfiguration& WithCreatedByService(CreatedByServiceT&& value) {
265 SetCreatedByService(std::forward<CreatedByServiceT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_configRuleName;
271
273
274 Aws::String m_targetId;
275
276 Aws::String m_targetVersion;
277
279
280 Aws::String m_resourceType;
281
282 bool m_automatic{false};
283
284 ExecutionControls m_executionControls;
285
286 int m_maximumAutomaticAttempts{0};
287
288 long long m_retryAttemptSeconds{0};
289
290 Aws::String m_arn;
291
292 Aws::String m_createdByService;
293 bool m_configRuleNameHasBeenSet = false;
294 bool m_targetTypeHasBeenSet = false;
295 bool m_targetIdHasBeenSet = false;
296 bool m_targetVersionHasBeenSet = false;
297 bool m_parametersHasBeenSet = false;
298 bool m_resourceTypeHasBeenSet = false;
299 bool m_automaticHasBeenSet = false;
300 bool m_executionControlsHasBeenSet = false;
301 bool m_maximumAutomaticAttemptsHasBeenSet = false;
302 bool m_retryAttemptSecondsHasBeenSet = false;
303 bool m_arnHasBeenSet = false;
304 bool m_createdByServiceHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace ConfigService
309} // namespace Aws
const Aws::Map< Aws::String, RemediationParameterValue > & GetParameters() const
RemediationConfiguration & WithMaximumAutomaticAttempts(int value)
RemediationConfiguration & WithConfigRuleName(ConfigRuleNameT &&value)
AWS_CONFIGSERVICE_API RemediationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RemediationConfiguration & WithRetryAttemptSeconds(long long value)
AWS_CONFIGSERVICE_API RemediationConfiguration(Aws::Utils::Json::JsonView jsonValue)
RemediationConfiguration & WithCreatedByService(CreatedByServiceT &&value)
RemediationConfiguration & WithTargetType(RemediationTargetType value)
RemediationConfiguration & WithExecutionControls(ExecutionControlsT &&value)
AWS_CONFIGSERVICE_API RemediationConfiguration()=default
RemediationConfiguration & WithTargetId(TargetIdT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationConfiguration & WithParameters(ParametersT &&value)
RemediationConfiguration & WithTargetVersion(TargetVersionT &&value)
RemediationConfiguration & WithResourceType(ResourceTypeT &&value)
RemediationConfiguration & AddParameters(ParametersKeyT &&key, ParametersValueT &&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
Aws::Utils::Json::JsonValue JsonValue