AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CisScanResultDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/CisSecurityLevel.h>
10#include <aws/inspector2/model/CisFindingStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API CisScanResultDetails();
37 AWS_INSPECTOR2_API CisScanResultDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline CisScanResultDetails& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline CisScanResultDetails& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline CisScanResultDetails& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const Aws::String& GetCheckDescription() const{ return m_checkDescription; }
61 inline bool CheckDescriptionHasBeenSet() const { return m_checkDescriptionHasBeenSet; }
62 inline void SetCheckDescription(const Aws::String& value) { m_checkDescriptionHasBeenSet = true; m_checkDescription = value; }
63 inline void SetCheckDescription(Aws::String&& value) { m_checkDescriptionHasBeenSet = true; m_checkDescription = std::move(value); }
64 inline void SetCheckDescription(const char* value) { m_checkDescriptionHasBeenSet = true; m_checkDescription.assign(value); }
65 inline CisScanResultDetails& WithCheckDescription(const Aws::String& value) { SetCheckDescription(value); return *this;}
66 inline CisScanResultDetails& WithCheckDescription(Aws::String&& value) { SetCheckDescription(std::move(value)); return *this;}
67 inline CisScanResultDetails& WithCheckDescription(const char* value) { SetCheckDescription(value); return *this;}
69
71
74 inline const Aws::String& GetCheckId() const{ return m_checkId; }
75 inline bool CheckIdHasBeenSet() const { return m_checkIdHasBeenSet; }
76 inline void SetCheckId(const Aws::String& value) { m_checkIdHasBeenSet = true; m_checkId = value; }
77 inline void SetCheckId(Aws::String&& value) { m_checkIdHasBeenSet = true; m_checkId = std::move(value); }
78 inline void SetCheckId(const char* value) { m_checkIdHasBeenSet = true; m_checkId.assign(value); }
79 inline CisScanResultDetails& WithCheckId(const Aws::String& value) { SetCheckId(value); return *this;}
80 inline CisScanResultDetails& WithCheckId(Aws::String&& value) { SetCheckId(std::move(value)); return *this;}
81 inline CisScanResultDetails& WithCheckId(const char* value) { SetCheckId(value); return *this;}
83
85
88 inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
89 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
90 inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
91 inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
92 inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
93 inline CisScanResultDetails& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
94 inline CisScanResultDetails& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
95 inline CisScanResultDetails& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
97
99
102 inline const CisSecurityLevel& GetLevel() const{ return m_level; }
103 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
104 inline void SetLevel(const CisSecurityLevel& value) { m_levelHasBeenSet = true; m_level = value; }
105 inline void SetLevel(CisSecurityLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
106 inline CisScanResultDetails& WithLevel(const CisSecurityLevel& value) { SetLevel(value); return *this;}
107 inline CisScanResultDetails& WithLevel(CisSecurityLevel&& value) { SetLevel(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetPlatform() const{ return m_platform; }
115 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
116 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
117 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
118 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
119 inline CisScanResultDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
120 inline CisScanResultDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
121 inline CisScanResultDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
123
125
128 inline const Aws::String& GetRemediation() const{ return m_remediation; }
129 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
130 inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; }
131 inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
132 inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); }
133 inline CisScanResultDetails& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;}
134 inline CisScanResultDetails& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;}
135 inline CisScanResultDetails& WithRemediation(const char* value) { SetRemediation(value); return *this;}
137
139
142 inline const Aws::String& GetScanArn() const{ return m_scanArn; }
143 inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; }
144 inline void SetScanArn(const Aws::String& value) { m_scanArnHasBeenSet = true; m_scanArn = value; }
145 inline void SetScanArn(Aws::String&& value) { m_scanArnHasBeenSet = true; m_scanArn = std::move(value); }
146 inline void SetScanArn(const char* value) { m_scanArnHasBeenSet = true; m_scanArn.assign(value); }
147 inline CisScanResultDetails& WithScanArn(const Aws::String& value) { SetScanArn(value); return *this;}
148 inline CisScanResultDetails& WithScanArn(Aws::String&& value) { SetScanArn(std::move(value)); return *this;}
149 inline CisScanResultDetails& WithScanArn(const char* value) { SetScanArn(value); return *this;}
151
153
156 inline const CisFindingStatus& GetStatus() const{ return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 inline void SetStatus(const CisFindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
159 inline void SetStatus(CisFindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
160 inline CisScanResultDetails& WithStatus(const CisFindingStatus& value) { SetStatus(value); return *this;}
161 inline CisScanResultDetails& WithStatus(CisFindingStatus&& value) { SetStatus(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
169 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
170 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
171 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
172 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
173 inline CisScanResultDetails& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
174 inline CisScanResultDetails& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
175 inline CisScanResultDetails& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
177
179
182 inline const Aws::String& GetTargetResourceId() const{ return m_targetResourceId; }
183 inline bool TargetResourceIdHasBeenSet() const { return m_targetResourceIdHasBeenSet; }
184 inline void SetTargetResourceId(const Aws::String& value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId = value; }
185 inline void SetTargetResourceId(Aws::String&& value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId = std::move(value); }
186 inline void SetTargetResourceId(const char* value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId.assign(value); }
187 inline CisScanResultDetails& WithTargetResourceId(const Aws::String& value) { SetTargetResourceId(value); return *this;}
188 inline CisScanResultDetails& WithTargetResourceId(Aws::String&& value) { SetTargetResourceId(std::move(value)); return *this;}
189 inline CisScanResultDetails& WithTargetResourceId(const char* value) { SetTargetResourceId(value); return *this;}
191
193
196 inline const Aws::String& GetTitle() const{ return m_title; }
197 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
198 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
199 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
200 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
201 inline CisScanResultDetails& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
202 inline CisScanResultDetails& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
203 inline CisScanResultDetails& WithTitle(const char* value) { SetTitle(value); return *this;}
205 private:
206
207 Aws::String m_accountId;
208 bool m_accountIdHasBeenSet = false;
209
210 Aws::String m_checkDescription;
211 bool m_checkDescriptionHasBeenSet = false;
212
213 Aws::String m_checkId;
214 bool m_checkIdHasBeenSet = false;
215
216 Aws::String m_findingArn;
217 bool m_findingArnHasBeenSet = false;
218
219 CisSecurityLevel m_level;
220 bool m_levelHasBeenSet = false;
221
222 Aws::String m_platform;
223 bool m_platformHasBeenSet = false;
224
225 Aws::String m_remediation;
226 bool m_remediationHasBeenSet = false;
227
228 Aws::String m_scanArn;
229 bool m_scanArnHasBeenSet = false;
230
231 CisFindingStatus m_status;
232 bool m_statusHasBeenSet = false;
233
234 Aws::String m_statusReason;
235 bool m_statusReasonHasBeenSet = false;
236
237 Aws::String m_targetResourceId;
238 bool m_targetResourceIdHasBeenSet = false;
239
240 Aws::String m_title;
241 bool m_titleHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Inspector2
246} // namespace Aws
CisScanResultDetails & WithTitle(const char *value)
CisScanResultDetails & WithLevel(const CisSecurityLevel &value)
CisScanResultDetails & WithCheckDescription(const char *value)
void SetStatus(const CisFindingStatus &value)
CisScanResultDetails & WithScanArn(const char *value)
CisScanResultDetails & WithAccountId(const Aws::String &value)
CisScanResultDetails & WithRemediation(Aws::String &&value)
CisScanResultDetails & WithStatusReason(const Aws::String &value)
CisScanResultDetails & WithStatusReason(const char *value)
CisScanResultDetails & WithFindingArn(const Aws::String &value)
CisScanResultDetails & WithFindingArn(Aws::String &&value)
CisScanResultDetails & WithCheckId(const Aws::String &value)
CisScanResultDetails & WithPlatform(Aws::String &&value)
CisScanResultDetails & WithLevel(CisSecurityLevel &&value)
CisScanResultDetails & WithCheckDescription(Aws::String &&value)
CisScanResultDetails & WithScanArn(Aws::String &&value)
AWS_INSPECTOR2_API CisScanResultDetails(Aws::Utils::Json::JsonView jsonValue)
void SetLevel(const CisSecurityLevel &value)
CisScanResultDetails & WithAccountId(const char *value)
AWS_INSPECTOR2_API CisScanResultDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CisScanResultDetails & WithTargetResourceId(Aws::String &&value)
CisScanResultDetails & WithTargetResourceId(const Aws::String &value)
CisScanResultDetails & WithScanArn(const Aws::String &value)
CisScanResultDetails & WithTargetResourceId(const char *value)
void SetCheckDescription(const Aws::String &value)
CisScanResultDetails & WithStatusReason(Aws::String &&value)
CisScanResultDetails & WithStatus(CisFindingStatus &&value)
CisScanResultDetails & WithCheckId(const char *value)
CisScanResultDetails & WithTitle(const Aws::String &value)
CisScanResultDetails & WithRemediation(const Aws::String &value)
CisScanResultDetails & WithAccountId(Aws::String &&value)
void SetTargetResourceId(const Aws::String &value)
CisScanResultDetails & WithCheckDescription(const Aws::String &value)
CisScanResultDetails & WithFindingArn(const char *value)
CisScanResultDetails & WithPlatform(const char *value)
CisScanResultDetails & WithCheckId(Aws::String &&value)
CisScanResultDetails & WithStatus(const CisFindingStatus &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisScanResultDetails & WithPlatform(const Aws::String &value)
CisScanResultDetails & WithTitle(Aws::String &&value)
CisScanResultDetails & WithRemediation(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue