AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StandardsControl.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/ControlStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/securityhub/model/SeverityRating.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 SecurityHub
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SECURITYHUB_API StandardsControl();
40 AWS_SECURITYHUB_API StandardsControl(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API StandardsControl& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetStandardsControlArn() const{ return m_standardsControlArn; }
50 inline bool StandardsControlArnHasBeenSet() const { return m_standardsControlArnHasBeenSet; }
51 inline void SetStandardsControlArn(const Aws::String& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = value; }
52 inline void SetStandardsControlArn(Aws::String&& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = std::move(value); }
53 inline void SetStandardsControlArn(const char* value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn.assign(value); }
54 inline StandardsControl& WithStandardsControlArn(const Aws::String& value) { SetStandardsControlArn(value); return *this;}
55 inline StandardsControl& WithStandardsControlArn(Aws::String&& value) { SetStandardsControlArn(std::move(value)); return *this;}
56 inline StandardsControl& WithStandardsControlArn(const char* value) { SetStandardsControlArn(value); return *this;}
58
60
65 inline const ControlStatus& GetControlStatus() const{ return m_controlStatus; }
66 inline bool ControlStatusHasBeenSet() const { return m_controlStatusHasBeenSet; }
67 inline void SetControlStatus(const ControlStatus& value) { m_controlStatusHasBeenSet = true; m_controlStatus = value; }
68 inline void SetControlStatus(ControlStatus&& value) { m_controlStatusHasBeenSet = true; m_controlStatus = std::move(value); }
69 inline StandardsControl& WithControlStatus(const ControlStatus& value) { SetControlStatus(value); return *this;}
70 inline StandardsControl& WithControlStatus(ControlStatus&& value) { SetControlStatus(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; }
78 inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
79 inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
80 inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); }
81 inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); }
82 inline StandardsControl& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;}
83 inline StandardsControl& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;}
84 inline StandardsControl& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;}
86
88
92 inline const Aws::Utils::DateTime& GetControlStatusUpdatedAt() const{ return m_controlStatusUpdatedAt; }
93 inline bool ControlStatusUpdatedAtHasBeenSet() const { return m_controlStatusUpdatedAtHasBeenSet; }
94 inline void SetControlStatusUpdatedAt(const Aws::Utils::DateTime& value) { m_controlStatusUpdatedAtHasBeenSet = true; m_controlStatusUpdatedAt = value; }
95 inline void SetControlStatusUpdatedAt(Aws::Utils::DateTime&& value) { m_controlStatusUpdatedAtHasBeenSet = true; m_controlStatusUpdatedAt = std::move(value); }
99
101
104 inline const Aws::String& GetControlId() const{ return m_controlId; }
105 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
106 inline void SetControlId(const Aws::String& value) { m_controlIdHasBeenSet = true; m_controlId = value; }
107 inline void SetControlId(Aws::String&& value) { m_controlIdHasBeenSet = true; m_controlId = std::move(value); }
108 inline void SetControlId(const char* value) { m_controlIdHasBeenSet = true; m_controlId.assign(value); }
109 inline StandardsControl& WithControlId(const Aws::String& value) { SetControlId(value); return *this;}
110 inline StandardsControl& WithControlId(Aws::String&& value) { SetControlId(std::move(value)); return *this;}
111 inline StandardsControl& WithControlId(const char* value) { SetControlId(value); return *this;}
113
115
118 inline const Aws::String& GetTitle() const{ return m_title; }
119 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
120 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
121 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
122 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
123 inline StandardsControl& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
124 inline StandardsControl& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
125 inline StandardsControl& WithTitle(const char* value) { SetTitle(value); return *this;}
127
129
133 inline const Aws::String& GetDescription() const{ return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
137 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
138 inline StandardsControl& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
139 inline StandardsControl& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 inline StandardsControl& WithDescription(const char* value) { SetDescription(value); return *this;}
142
144
148 inline const Aws::String& GetRemediationUrl() const{ return m_remediationUrl; }
149 inline bool RemediationUrlHasBeenSet() const { return m_remediationUrlHasBeenSet; }
150 inline void SetRemediationUrl(const Aws::String& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = value; }
151 inline void SetRemediationUrl(Aws::String&& value) { m_remediationUrlHasBeenSet = true; m_remediationUrl = std::move(value); }
152 inline void SetRemediationUrl(const char* value) { m_remediationUrlHasBeenSet = true; m_remediationUrl.assign(value); }
153 inline StandardsControl& WithRemediationUrl(const Aws::String& value) { SetRemediationUrl(value); return *this;}
154 inline StandardsControl& WithRemediationUrl(Aws::String&& value) { SetRemediationUrl(std::move(value)); return *this;}
155 inline StandardsControl& WithRemediationUrl(const char* value) { SetRemediationUrl(value); return *this;}
157
159
164 inline const SeverityRating& GetSeverityRating() const{ return m_severityRating; }
165 inline bool SeverityRatingHasBeenSet() const { return m_severityRatingHasBeenSet; }
166 inline void SetSeverityRating(const SeverityRating& value) { m_severityRatingHasBeenSet = true; m_severityRating = value; }
167 inline void SetSeverityRating(SeverityRating&& value) { m_severityRatingHasBeenSet = true; m_severityRating = std::move(value); }
168 inline StandardsControl& WithSeverityRating(const SeverityRating& value) { SetSeverityRating(value); return *this;}
169 inline StandardsControl& WithSeverityRating(SeverityRating&& value) { SetSeverityRating(std::move(value)); return *this;}
171
173
176 inline const Aws::Vector<Aws::String>& GetRelatedRequirements() const{ return m_relatedRequirements; }
177 inline bool RelatedRequirementsHasBeenSet() const { return m_relatedRequirementsHasBeenSet; }
178 inline void SetRelatedRequirements(const Aws::Vector<Aws::String>& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = value; }
179 inline void SetRelatedRequirements(Aws::Vector<Aws::String>&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements = std::move(value); }
182 inline StandardsControl& AddRelatedRequirements(const Aws::String& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
183 inline StandardsControl& AddRelatedRequirements(Aws::String&& value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(std::move(value)); return *this; }
184 inline StandardsControl& AddRelatedRequirements(const char* value) { m_relatedRequirementsHasBeenSet = true; m_relatedRequirements.push_back(value); return *this; }
186 private:
187
188 Aws::String m_standardsControlArn;
189 bool m_standardsControlArnHasBeenSet = false;
190
191 ControlStatus m_controlStatus;
192 bool m_controlStatusHasBeenSet = false;
193
194 Aws::String m_disabledReason;
195 bool m_disabledReasonHasBeenSet = false;
196
197 Aws::Utils::DateTime m_controlStatusUpdatedAt;
198 bool m_controlStatusUpdatedAtHasBeenSet = false;
199
200 Aws::String m_controlId;
201 bool m_controlIdHasBeenSet = false;
202
203 Aws::String m_title;
204 bool m_titleHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 Aws::String m_remediationUrl;
210 bool m_remediationUrlHasBeenSet = false;
211
212 SeverityRating m_severityRating;
213 bool m_severityRatingHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_relatedRequirements;
216 bool m_relatedRequirementsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace SecurityHub
221} // namespace Aws
void SetRelatedRequirements(const Aws::Vector< Aws::String > &value)
const Aws::Utils::DateTime & GetControlStatusUpdatedAt() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
StandardsControl & WithTitle(const Aws::String &value)
void SetControlStatus(ControlStatus &&value)
void SetDisabledReason(Aws::String &&value)
StandardsControl & WithControlId(const char *value)
void SetRelatedRequirements(Aws::Vector< Aws::String > &&value)
void SetControlStatus(const ControlStatus &value)
AWS_SECURITYHUB_API StandardsControl & operator=(Aws::Utils::Json::JsonView jsonValue)
StandardsControl & WithControlStatusUpdatedAt(Aws::Utils::DateTime &&value)
StandardsControl & WithSeverityRating(const SeverityRating &value)
StandardsControl & WithRelatedRequirements(Aws::Vector< Aws::String > &&value)
StandardsControl & WithStandardsControlArn(const Aws::String &value)
const ControlStatus & GetControlStatus() const
StandardsControl & WithSeverityRating(SeverityRating &&value)
StandardsControl & AddRelatedRequirements(Aws::String &&value)
StandardsControl & WithTitle(const char *value)
void SetTitle(const Aws::String &value)
StandardsControl & WithDescription(Aws::String &&value)
void SetSeverityRating(SeverityRating &&value)
void SetStandardsControlArn(Aws::String &&value)
void SetControlId(const Aws::String &value)
StandardsControl & WithRemediationUrl(Aws::String &&value)
void SetSeverityRating(const SeverityRating &value)
StandardsControl & WithStandardsControlArn(const char *value)
StandardsControl & WithControlId(Aws::String &&value)
void SetStandardsControlArn(const Aws::String &value)
const Aws::String & GetStandardsControlArn() const
StandardsControl & WithControlStatus(const ControlStatus &value)
const SeverityRating & GetSeverityRating() const
void SetControlStatusUpdatedAt(const Aws::Utils::DateTime &value)
StandardsControl & WithDisabledReason(const Aws::String &value)
StandardsControl & WithTitle(Aws::String &&value)
StandardsControl & WithDisabledReason(const char *value)
void SetRemediationUrl(const Aws::String &value)
const Aws::String & GetRemediationUrl() const
StandardsControl & WithDisabledReason(Aws::String &&value)
StandardsControl & WithRemediationUrl(const Aws::String &value)
const Aws::String & GetDisabledReason() const
StandardsControl & WithRelatedRequirements(const Aws::Vector< Aws::String > &value)
StandardsControl & WithStandardsControlArn(Aws::String &&value)
StandardsControl & AddRelatedRequirements(const Aws::String &value)
void SetControlStatusUpdatedAt(Aws::Utils::DateTime &&value)
StandardsControl & WithControlStatus(ControlStatus &&value)
void SetDisabledReason(const Aws::String &value)
StandardsControl & WithRemediationUrl(const char *value)
const Aws::Vector< Aws::String > & GetRelatedRequirements() const
StandardsControl & WithDescription(const Aws::String &value)
StandardsControl & AddRelatedRequirements(const char *value)
AWS_SECURITYHUB_API StandardsControl(Aws::Utils::Json::JsonView jsonValue)
StandardsControl & WithControlStatusUpdatedAt(const Aws::Utils::DateTime &value)
StandardsControl & WithControlId(const Aws::String &value)
StandardsControl & WithDescription(const char *value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue