AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ConfigRuleNameT = Aws::String>
53 void SetConfigRuleName(ConfigRuleNameT&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::forward<ConfigRuleNameT>(value); }
54 template<typename ConfigRuleNameT = Aws::String>
55 RemediationConfiguration& WithConfigRuleName(ConfigRuleNameT&& value) { SetConfigRuleName(std::forward<ConfigRuleNameT>(value)); return *this;}
57
59
63 inline RemediationTargetType GetTargetType() const { return m_targetType; }
64 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
65 inline void SetTargetType(RemediationTargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
68
70
73 inline const Aws::String& GetTargetId() const { return m_targetId; }
74 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
75 template<typename TargetIdT = Aws::String>
76 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
77 template<typename TargetIdT = Aws::String>
78 RemediationConfiguration& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
80
82
88 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
89 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
90 template<typename TargetVersionT = Aws::String>
91 void SetTargetVersion(TargetVersionT&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::forward<TargetVersionT>(value); }
92 template<typename TargetVersionT = Aws::String>
93 RemediationConfiguration& WithTargetVersion(TargetVersionT&& value) { SetTargetVersion(std::forward<TargetVersionT>(value)); return *this;}
95
97
100 inline const Aws::Map<Aws::String, RemediationParameterValue>& GetParameters() const { return m_parameters; }
101 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
102 template<typename ParametersT = Aws::Map<Aws::String, RemediationParameterValue>>
103 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
104 template<typename ParametersT = Aws::Map<Aws::String, RemediationParameterValue>>
105 RemediationConfiguration& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
106 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = RemediationParameterValue>
107 RemediationConfiguration& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
108 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
109 }
111
113
116 inline const Aws::String& GetResourceType() const { return m_resourceType; }
117 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
118 template<typename ResourceTypeT = Aws::String>
119 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
120 template<typename ResourceTypeT = Aws::String>
121 RemediationConfiguration& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
123
125
128 inline bool GetAutomatic() const { return m_automatic; }
129 inline bool AutomaticHasBeenSet() const { return m_automaticHasBeenSet; }
130 inline void SetAutomatic(bool value) { m_automaticHasBeenSet = true; m_automatic = value; }
131 inline RemediationConfiguration& WithAutomatic(bool value) { SetAutomatic(value); return *this;}
133
135
138 inline const ExecutionControls& GetExecutionControls() const { return m_executionControls; }
139 inline bool ExecutionControlsHasBeenSet() const { return m_executionControlsHasBeenSet; }
140 template<typename ExecutionControlsT = ExecutionControls>
141 void SetExecutionControls(ExecutionControlsT&& value) { m_executionControlsHasBeenSet = true; m_executionControls = std::forward<ExecutionControlsT>(value); }
142 template<typename ExecutionControlsT = ExecutionControls>
143 RemediationConfiguration& WithExecutionControls(ExecutionControlsT&& value) { SetExecutionControls(std::forward<ExecutionControlsT>(value)); return *this;}
145
147
154 inline int GetMaximumAutomaticAttempts() const { return m_maximumAutomaticAttempts; }
155 inline bool MaximumAutomaticAttemptsHasBeenSet() const { return m_maximumAutomaticAttemptsHasBeenSet; }
156 inline void SetMaximumAutomaticAttempts(int value) { m_maximumAutomaticAttemptsHasBeenSet = true; m_maximumAutomaticAttempts = value; }
159
161
172 inline long long GetRetryAttemptSeconds() const { return m_retryAttemptSeconds; }
173 inline bool RetryAttemptSecondsHasBeenSet() const { return m_retryAttemptSecondsHasBeenSet; }
174 inline void SetRetryAttemptSeconds(long long value) { m_retryAttemptSecondsHasBeenSet = true; m_retryAttemptSeconds = value; }
175 inline RemediationConfiguration& WithRetryAttemptSeconds(long long value) { SetRetryAttemptSeconds(value); return *this;}
177
179
182 inline const Aws::String& GetArn() const { return m_arn; }
183 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
184 template<typename ArnT = Aws::String>
185 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
186 template<typename ArnT = Aws::String>
187 RemediationConfiguration& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
189
191
194 inline const Aws::String& GetCreatedByService() const { return m_createdByService; }
195 inline bool CreatedByServiceHasBeenSet() const { return m_createdByServiceHasBeenSet; }
196 template<typename CreatedByServiceT = Aws::String>
197 void SetCreatedByService(CreatedByServiceT&& value) { m_createdByServiceHasBeenSet = true; m_createdByService = std::forward<CreatedByServiceT>(value); }
198 template<typename CreatedByServiceT = Aws::String>
199 RemediationConfiguration& WithCreatedByService(CreatedByServiceT&& value) { SetCreatedByService(std::forward<CreatedByServiceT>(value)); return *this;}
201 private:
202
203 Aws::String m_configRuleName;
204 bool m_configRuleNameHasBeenSet = false;
205
207 bool m_targetTypeHasBeenSet = false;
208
209 Aws::String m_targetId;
210 bool m_targetIdHasBeenSet = false;
211
212 Aws::String m_targetVersion;
213 bool m_targetVersionHasBeenSet = false;
214
216 bool m_parametersHasBeenSet = false;
217
218 Aws::String m_resourceType;
219 bool m_resourceTypeHasBeenSet = false;
220
221 bool m_automatic{false};
222 bool m_automaticHasBeenSet = false;
223
224 ExecutionControls m_executionControls;
225 bool m_executionControlsHasBeenSet = false;
226
227 int m_maximumAutomaticAttempts{0};
228 bool m_maximumAutomaticAttemptsHasBeenSet = false;
229
230 long long m_retryAttemptSeconds{0};
231 bool m_retryAttemptSecondsHasBeenSet = false;
232
233 Aws::String m_arn;
234 bool m_arnHasBeenSet = false;
235
236 Aws::String m_createdByService;
237 bool m_createdByServiceHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace ConfigService
242} // 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