AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityControl.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/SeverityRating.h>
10#include <aws/securityhub/model/ControlStatus.h>
11#include <aws/securityhub/model/UpdateStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/securityhub/model/ParameterConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SECURITYHUB_API SecurityControl();
41 AWS_SECURITYHUB_API SecurityControl(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYHUB_API SecurityControl& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetSecurityControlId() const{ return m_securityControlId; }
53 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
54 inline void SetSecurityControlId(const Aws::String& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = value; }
55 inline void SetSecurityControlId(Aws::String&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::move(value); }
56 inline void SetSecurityControlId(const char* value) { m_securityControlIdHasBeenSet = true; m_securityControlId.assign(value); }
57 inline SecurityControl& WithSecurityControlId(const Aws::String& value) { SetSecurityControlId(value); return *this;}
58 inline SecurityControl& WithSecurityControlId(Aws::String&& value) { SetSecurityControlId(std::move(value)); return *this;}
59 inline SecurityControl& WithSecurityControlId(const char* value) { SetSecurityControlId(value); return *this;}
61
63
69 inline const Aws::String& GetSecurityControlArn() const{ return m_securityControlArn; }
70 inline bool SecurityControlArnHasBeenSet() const { return m_securityControlArnHasBeenSet; }
71 inline void SetSecurityControlArn(const Aws::String& value) { m_securityControlArnHasBeenSet = true; m_securityControlArn = value; }
72 inline void SetSecurityControlArn(Aws::String&& value) { m_securityControlArnHasBeenSet = true; m_securityControlArn = std::move(value); }
73 inline void SetSecurityControlArn(const char* value) { m_securityControlArnHasBeenSet = true; m_securityControlArn.assign(value); }
74 inline SecurityControl& WithSecurityControlArn(const Aws::String& value) { SetSecurityControlArn(value); return *this;}
75 inline SecurityControl& WithSecurityControlArn(Aws::String&& value) { SetSecurityControlArn(std::move(value)); return *this;}
76 inline SecurityControl& WithSecurityControlArn(const char* value) { SetSecurityControlArn(value); return *this;}
78
80
83 inline const Aws::String& GetTitle() const{ return m_title; }
84 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
85 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
86 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
87 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
88 inline SecurityControl& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
89 inline SecurityControl& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
90 inline SecurityControl& WithTitle(const char* value) { SetTitle(value); return *this;}
92
94
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline SecurityControl& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline SecurityControl& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline SecurityControl& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
115 inline const Aws::String& GetRemediationUrl() const{ return m_remediationUrl; }
116 inline bool RemediationUrlHasBeenSet() const { return m_remediationUrlHasBeenSet; }
117 inline void SetRemediationUrl(const Aws::String& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = value; }
118 inline void SetRemediationUrl(Aws::String&& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = std::move(value); }
119 inline void SetRemediationUrl(const char* value) { m_remediationUrlHasBeenSet = true; m_remediationUrl.assign(value); }
120 inline SecurityControl& WithRemediationUrl(const Aws::String& value) { SetRemediationUrl(value); return *this;}
121 inline SecurityControl& WithRemediationUrl(Aws::String&& value) { SetRemediationUrl(std::move(value)); return *this;}
122 inline SecurityControl& WithRemediationUrl(const char* value) { SetRemediationUrl(value); return *this;}
124
126
132 inline const SeverityRating& GetSeverityRating() const{ return m_severityRating; }
133 inline bool SeverityRatingHasBeenSet() const { return m_severityRatingHasBeenSet; }
134 inline void SetSeverityRating(const SeverityRating& value) { m_severityRatingHasBeenSet = true; m_severityRating = value; }
135 inline void SetSeverityRating(SeverityRating&& value) { m_severityRatingHasBeenSet = true; m_severityRating = std::move(value); }
136 inline SecurityControl& WithSeverityRating(const SeverityRating& value) { SetSeverityRating(value); return *this;}
137 inline SecurityControl& WithSeverityRating(SeverityRating&& value) { SetSeverityRating(std::move(value)); return *this;}
139
141
144 inline const ControlStatus& GetSecurityControlStatus() const{ return m_securityControlStatus; }
145 inline bool SecurityControlStatusHasBeenSet() const { return m_securityControlStatusHasBeenSet; }
146 inline void SetSecurityControlStatus(const ControlStatus& value) { m_securityControlStatusHasBeenSet = true; m_securityControlStatus = value; }
147 inline void SetSecurityControlStatus(ControlStatus&& value) { m_securityControlStatusHasBeenSet = true; m_securityControlStatus = std::move(value); }
149 inline SecurityControl& WithSecurityControlStatus(ControlStatus&& value) { SetSecurityControlStatus(std::move(value)); return *this;}
151
153
160 inline const UpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
161 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
162 inline void SetUpdateStatus(const UpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
163 inline void SetUpdateStatus(UpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
164 inline SecurityControl& WithUpdateStatus(const UpdateStatus& value) { SetUpdateStatus(value); return *this;}
165 inline SecurityControl& WithUpdateStatus(UpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
167
169
173 inline const Aws::Map<Aws::String, ParameterConfiguration>& GetParameters() const{ return m_parameters; }
174 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
175 inline void SetParameters(const Aws::Map<Aws::String, ParameterConfiguration>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
176 inline void SetParameters(Aws::Map<Aws::String, ParameterConfiguration>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
179 inline SecurityControl& AddParameters(const Aws::String& key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
180 inline SecurityControl& AddParameters(Aws::String&& key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
181 inline SecurityControl& AddParameters(const Aws::String& key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
182 inline SecurityControl& AddParameters(Aws::String&& key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
183 inline SecurityControl& AddParameters(const char* key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
184 inline SecurityControl& AddParameters(const char* key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
186
188
198 inline const Aws::String& GetLastUpdateReason() const{ return m_lastUpdateReason; }
199 inline bool LastUpdateReasonHasBeenSet() const { return m_lastUpdateReasonHasBeenSet; }
200 inline void SetLastUpdateReason(const Aws::String& value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason = value; }
201 inline void SetLastUpdateReason(Aws::String&& value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason = std::move(value); }
202 inline void SetLastUpdateReason(const char* value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason.assign(value); }
203 inline SecurityControl& WithLastUpdateReason(const Aws::String& value) { SetLastUpdateReason(value); return *this;}
204 inline SecurityControl& WithLastUpdateReason(Aws::String&& value) { SetLastUpdateReason(std::move(value)); return *this;}
205 inline SecurityControl& WithLastUpdateReason(const char* value) { SetLastUpdateReason(value); return *this;}
207 private:
208
209 Aws::String m_securityControlId;
210 bool m_securityControlIdHasBeenSet = false;
211
212 Aws::String m_securityControlArn;
213 bool m_securityControlArnHasBeenSet = false;
214
215 Aws::String m_title;
216 bool m_titleHasBeenSet = false;
217
218 Aws::String m_description;
219 bool m_descriptionHasBeenSet = false;
220
221 Aws::String m_remediationUrl;
222 bool m_remediationUrlHasBeenSet = false;
223
224 SeverityRating m_severityRating;
225 bool m_severityRatingHasBeenSet = false;
226
227 ControlStatus m_securityControlStatus;
228 bool m_securityControlStatusHasBeenSet = false;
229
230 UpdateStatus m_updateStatus;
231 bool m_updateStatusHasBeenSet = false;
232
234 bool m_parametersHasBeenSet = false;
235
236 Aws::String m_lastUpdateReason;
237 bool m_lastUpdateReasonHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace SecurityHub
242} // namespace Aws
SecurityControl & WithSecurityControlId(const Aws::String &value)
void SetDescription(const Aws::String &value)
const SeverityRating & GetSeverityRating() const
void SetUpdateStatus(const UpdateStatus &value)
SecurityControl & WithUpdateStatus(UpdateStatus &&value)
SecurityControl & AddParameters(const char *key, const ParameterConfiguration &value)
void SetLastUpdateReason(const Aws::String &value)
const Aws::Map< Aws::String, ParameterConfiguration > & GetParameters() const
SecurityControl & WithDescription(Aws::String &&value)
const ControlStatus & GetSecurityControlStatus() const
SecurityControl & WithLastUpdateReason(Aws::String &&value)
void SetSecurityControlArn(Aws::String &&value)
const UpdateStatus & GetUpdateStatus() const
SecurityControl & WithLastUpdateReason(const char *value)
SecurityControl & AddParameters(Aws::String &&key, const ParameterConfiguration &value)
void SetTitle(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, ParameterConfiguration > &&value)
SecurityControl & WithSecurityControlArn(const Aws::String &value)
void SetLastUpdateReason(Aws::String &&value)
SecurityControl & WithLastUpdateReason(const Aws::String &value)
void SetSecurityControlStatus(const ControlStatus &value)
SecurityControl & WithSecurityControlArn(const char *value)
SecurityControl & WithTitle(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityControl & WithTitle(const char *value)
AWS_SECURITYHUB_API SecurityControl & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityControl & WithTitle(Aws::String &&value)
void SetSeverityRating(const SeverityRating &value)
AWS_SECURITYHUB_API SecurityControl(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityControlArn(const Aws::String &value)
SecurityControl & WithSecurityControlId(const char *value)
SecurityControl & WithDescription(const char *value)
SecurityControl & AddParameters(const Aws::String &key, const ParameterConfiguration &value)
const Aws::String & GetLastUpdateReason() const
void SetRemediationUrl(const Aws::String &value)
void SetSecurityControlId(const char *value)
SecurityControl & WithSecurityControlId(Aws::String &&value)
SecurityControl & AddParameters(const char *key, ParameterConfiguration &&value)
void SetSecurityControlId(Aws::String &&value)
SecurityControl & WithRemediationUrl(const Aws::String &value)
void SetRemediationUrl(Aws::String &&value)
SecurityControl & WithSeverityRating(const SeverityRating &value)
const Aws::String & GetSecurityControlArn() const
void SetUpdateStatus(UpdateStatus &&value)
SecurityControl & WithParameters(const Aws::Map< Aws::String, ParameterConfiguration > &value)
SecurityControl & WithParameters(Aws::Map< Aws::String, ParameterConfiguration > &&value)
const Aws::String & GetDescription() const
const Aws::String & GetTitle() const
const Aws::String & GetSecurityControlId() const
void SetSeverityRating(SeverityRating &&value)
SecurityControl & WithSecurityControlStatus(const ControlStatus &value)
void SetSecurityControlStatus(ControlStatus &&value)
SecurityControl & AddParameters(Aws::String &&key, ParameterConfiguration &&value)
SecurityControl & WithUpdateStatus(const UpdateStatus &value)
SecurityControl & WithSecurityControlStatus(ControlStatus &&value)
SecurityControl & WithRemediationUrl(const char *value)
SecurityControl & WithDescription(const Aws::String &value)
SecurityControl & WithSeverityRating(SeverityRating &&value)
SecurityControl & WithRemediationUrl(Aws::String &&value)
void SetSecurityControlArn(const char *value)
void SetParameters(const Aws::Map< Aws::String, ParameterConfiguration > &value)
const Aws::String & GetRemediationUrl() const
SecurityControl & AddParameters(const Aws::String &key, ParameterConfiguration &&value)
void SetSecurityControlId(const Aws::String &value)
SecurityControl & WithSecurityControlArn(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