AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RemediationConfiguration.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/RemediationTargetType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/config/model/ExecutionControls.h>
12#include <aws/config/model/RemediationParameterValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConfigService
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CONFIGSERVICE_API RemediationConfiguration();
41 AWS_CONFIGSERVICE_API RemediationConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
51 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
52 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
53 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
54 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
55 inline RemediationConfiguration& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
56 inline RemediationConfiguration& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
57 inline RemediationConfiguration& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
59
61
65 inline const RemediationTargetType& GetTargetType() const{ return m_targetType; }
66 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
67 inline void SetTargetType(const RemediationTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
68 inline void SetTargetType(RemediationTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
69 inline RemediationConfiguration& WithTargetType(const RemediationTargetType& value) { SetTargetType(value); return *this;}
70 inline RemediationConfiguration& WithTargetType(RemediationTargetType&& value) { SetTargetType(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetTargetId() const{ return m_targetId; }
78 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
79 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
80 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
81 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
82 inline RemediationConfiguration& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
83 inline RemediationConfiguration& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
84 inline RemediationConfiguration& WithTargetId(const char* value) { SetTargetId(value); return *this;}
86
88
94 inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; }
95 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
96 inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
97 inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); }
98 inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); }
99 inline RemediationConfiguration& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;}
100 inline RemediationConfiguration& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;}
101 inline RemediationConfiguration& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;}
103
105
108 inline const Aws::Map<Aws::String, RemediationParameterValue>& GetParameters() const{ return m_parameters; }
109 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
110 inline void SetParameters(const Aws::Map<Aws::String, RemediationParameterValue>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
111 inline void SetParameters(Aws::Map<Aws::String, RemediationParameterValue>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
114 inline RemediationConfiguration& AddParameters(const Aws::String& key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
115 inline RemediationConfiguration& AddParameters(Aws::String&& key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
116 inline RemediationConfiguration& AddParameters(const Aws::String& key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
117 inline RemediationConfiguration& AddParameters(Aws::String&& key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
118 inline RemediationConfiguration& AddParameters(const char* key, RemediationParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
119 inline RemediationConfiguration& AddParameters(const char* key, const RemediationParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
121
123
126 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
127 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
128 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
129 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
130 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
131 inline RemediationConfiguration& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
132 inline RemediationConfiguration& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
133 inline RemediationConfiguration& WithResourceType(const char* value) { SetResourceType(value); return *this;}
135
137
140 inline bool GetAutomatic() const{ return m_automatic; }
141 inline bool AutomaticHasBeenSet() const { return m_automaticHasBeenSet; }
142 inline void SetAutomatic(bool value) { m_automaticHasBeenSet = true; m_automatic = value; }
143 inline RemediationConfiguration& WithAutomatic(bool value) { SetAutomatic(value); return *this;}
145
147
150 inline const ExecutionControls& GetExecutionControls() const{ return m_executionControls; }
151 inline bool ExecutionControlsHasBeenSet() const { return m_executionControlsHasBeenSet; }
152 inline void SetExecutionControls(const ExecutionControls& value) { m_executionControlsHasBeenSet = true; m_executionControls = value; }
153 inline void SetExecutionControls(ExecutionControls&& value) { m_executionControlsHasBeenSet = true; m_executionControls = std::move(value); }
157
159
166 inline int GetMaximumAutomaticAttempts() const{ return m_maximumAutomaticAttempts; }
167 inline bool MaximumAutomaticAttemptsHasBeenSet() const { return m_maximumAutomaticAttemptsHasBeenSet; }
168 inline void SetMaximumAutomaticAttempts(int value) { m_maximumAutomaticAttemptsHasBeenSet = true; m_maximumAutomaticAttempts = value; }
171
173
184 inline long long GetRetryAttemptSeconds() const{ return m_retryAttemptSeconds; }
185 inline bool RetryAttemptSecondsHasBeenSet() const { return m_retryAttemptSecondsHasBeenSet; }
186 inline void SetRetryAttemptSeconds(long long value) { m_retryAttemptSecondsHasBeenSet = true; m_retryAttemptSeconds = value; }
187 inline RemediationConfiguration& WithRetryAttemptSeconds(long long value) { SetRetryAttemptSeconds(value); return *this;}
189
191
194 inline const Aws::String& GetArn() const{ return m_arn; }
195 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
196 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
197 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
198 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
199 inline RemediationConfiguration& WithArn(const Aws::String& value) { SetArn(value); return *this;}
200 inline RemediationConfiguration& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
201 inline RemediationConfiguration& WithArn(const char* value) { SetArn(value); return *this;}
203
205
208 inline const Aws::String& GetCreatedByService() const{ return m_createdByService; }
209 inline bool CreatedByServiceHasBeenSet() const { return m_createdByServiceHasBeenSet; }
210 inline void SetCreatedByService(const Aws::String& value) { m_createdByServiceHasBeenSet = true; m_createdByService = value; }
211 inline void SetCreatedByService(Aws::String&& value) { m_createdByServiceHasBeenSet = true; m_createdByService = std::move(value); }
212 inline void SetCreatedByService(const char* value) { m_createdByServiceHasBeenSet = true; m_createdByService.assign(value); }
214 inline RemediationConfiguration& WithCreatedByService(Aws::String&& value) { SetCreatedByService(std::move(value)); return *this;}
215 inline RemediationConfiguration& WithCreatedByService(const char* value) { SetCreatedByService(value); return *this;}
217 private:
218
219 Aws::String m_configRuleName;
220 bool m_configRuleNameHasBeenSet = false;
221
222 RemediationTargetType m_targetType;
223 bool m_targetTypeHasBeenSet = false;
224
225 Aws::String m_targetId;
226 bool m_targetIdHasBeenSet = false;
227
228 Aws::String m_targetVersion;
229 bool m_targetVersionHasBeenSet = false;
230
232 bool m_parametersHasBeenSet = false;
233
234 Aws::String m_resourceType;
235 bool m_resourceTypeHasBeenSet = false;
236
237 bool m_automatic;
238 bool m_automaticHasBeenSet = false;
239
240 ExecutionControls m_executionControls;
241 bool m_executionControlsHasBeenSet = false;
242
243 int m_maximumAutomaticAttempts;
244 bool m_maximumAutomaticAttemptsHasBeenSet = false;
245
246 long long m_retryAttemptSeconds;
247 bool m_retryAttemptSecondsHasBeenSet = false;
248
249 Aws::String m_arn;
250 bool m_arnHasBeenSet = false;
251
252 Aws::String m_createdByService;
253 bool m_createdByServiceHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace ConfigService
258} // namespace Aws
RemediationConfiguration & WithResourceType(Aws::String &&value)
const Aws::Map< Aws::String, RemediationParameterValue > & GetParameters() const
RemediationConfiguration & WithTargetId(const char *value)
RemediationConfiguration & AddParameters(const Aws::String &key, const RemediationParameterValue &value)
RemediationConfiguration & WithMaximumAutomaticAttempts(int value)
RemediationConfiguration & WithExecutionControls(const ExecutionControls &value)
RemediationConfiguration & WithCreatedByService(Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, RemediationParameterValue > &value)
RemediationConfiguration & WithTargetId(Aws::String &&value)
RemediationConfiguration & WithConfigRuleName(const char *value)
RemediationConfiguration & WithResourceType(const Aws::String &value)
RemediationConfiguration & WithCreatedByService(const char *value)
RemediationConfiguration & WithTargetVersion(const Aws::String &value)
RemediationConfiguration & WithArn(const Aws::String &value)
AWS_CONFIGSERVICE_API RemediationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(Aws::Map< Aws::String, RemediationParameterValue > &&value)
RemediationConfiguration & WithConfigRuleName(const Aws::String &value)
RemediationConfiguration & AddParameters(const Aws::String &key, RemediationParameterValue &&value)
RemediationConfiguration & WithRetryAttemptSeconds(long long value)
RemediationConfiguration & WithConfigRuleName(Aws::String &&value)
AWS_CONFIGSERVICE_API RemediationConfiguration(Aws::Utils::Json::JsonView jsonValue)
RemediationConfiguration & WithParameters(Aws::Map< Aws::String, RemediationParameterValue > &&value)
RemediationConfiguration & WithTargetType(RemediationTargetType &&value)
RemediationConfiguration & WithArn(const char *value)
RemediationConfiguration & WithArn(Aws::String &&value)
void SetTargetType(const RemediationTargetType &value)
RemediationConfiguration & WithTargetId(const Aws::String &value)
RemediationConfiguration & AddParameters(Aws::String &&key, RemediationParameterValue &&value)
RemediationConfiguration & WithTargetVersion(Aws::String &&value)
RemediationConfiguration & AddParameters(const char *key, RemediationParameterValue &&value)
RemediationConfiguration & WithExecutionControls(ExecutionControls &&value)
RemediationConfiguration & AddParameters(const char *key, const RemediationParameterValue &value)
RemediationConfiguration & WithParameters(const Aws::Map< Aws::String, RemediationParameterValue > &value)
RemediationConfiguration & AddParameters(Aws::String &&key, const RemediationParameterValue &value)
RemediationConfiguration & WithResourceType(const char *value)
RemediationConfiguration & WithTargetType(const RemediationTargetType &value)
RemediationConfiguration & WithTargetVersion(const char *value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RemediationConfiguration & WithCreatedByService(const Aws::String &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