|
| 1 | +/** |
| 2 | + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * SPDX-License-Identifier: Apache-2.0. |
| 4 | + */ |
| 5 | + |
| 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/StatusCounts.h> |
| 11 | +#include <utility> |
| 12 | + |
| 13 | +namespace Aws |
| 14 | +{ |
| 15 | +namespace Utils |
| 16 | +{ |
| 17 | +namespace Json |
| 18 | +{ |
| 19 | + class JsonValue; |
| 20 | + class JsonView; |
| 21 | +} // namespace Json |
| 22 | +} // namespace Utils |
| 23 | +namespace Inspector2 |
| 24 | +{ |
| 25 | +namespace Model |
| 26 | +{ |
| 27 | + |
| 28 | + /** |
| 29 | + * <p>A CIS check.</p><p><h3>See Also:</h3> <a |
| 30 | + * href="http://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/CisCheckAggregation">AWS |
| 31 | + * API Reference</a></p> |
| 32 | + */ |
| 33 | + class CisCheckAggregation |
| 34 | + { |
| 35 | + public: |
| 36 | + AWS_INSPECTOR2_API CisCheckAggregation(); |
| 37 | + AWS_INSPECTOR2_API CisCheckAggregation(Aws::Utils::Json::JsonView jsonValue); |
| 38 | + AWS_INSPECTOR2_API CisCheckAggregation& operator=(Aws::Utils::Json::JsonView jsonValue); |
| 39 | + AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const; |
| 40 | + |
| 41 | + |
| 42 | + /** |
| 43 | + * <p>The account ID for the CIS check.</p> |
| 44 | + */ |
| 45 | + inline const Aws::String& GetAccountId() const{ return m_accountId; } |
| 46 | + |
| 47 | + /** |
| 48 | + * <p>The account ID for the CIS check.</p> |
| 49 | + */ |
| 50 | + inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } |
| 51 | + |
| 52 | + /** |
| 53 | + * <p>The account ID for the CIS check.</p> |
| 54 | + */ |
| 55 | + inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } |
| 56 | + |
| 57 | + /** |
| 58 | + * <p>The account ID for the CIS check.</p> |
| 59 | + */ |
| 60 | + inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } |
| 61 | + |
| 62 | + /** |
| 63 | + * <p>The account ID for the CIS check.</p> |
| 64 | + */ |
| 65 | + inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } |
| 66 | + |
| 67 | + /** |
| 68 | + * <p>The account ID for the CIS check.</p> |
| 69 | + */ |
| 70 | + inline CisCheckAggregation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} |
| 71 | + |
| 72 | + /** |
| 73 | + * <p>The account ID for the CIS check.</p> |
| 74 | + */ |
| 75 | + inline CisCheckAggregation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} |
| 76 | + |
| 77 | + /** |
| 78 | + * <p>The account ID for the CIS check.</p> |
| 79 | + */ |
| 80 | + inline CisCheckAggregation& WithAccountId(const char* value) { SetAccountId(value); return *this;} |
| 81 | + |
| 82 | + |
| 83 | + /** |
| 84 | + * <p>The description for the CIS check.</p> |
| 85 | + */ |
| 86 | + inline const Aws::String& GetCheckDescription() const{ return m_checkDescription; } |
| 87 | + |
| 88 | + /** |
| 89 | + * <p>The description for the CIS check.</p> |
| 90 | + */ |
| 91 | + inline bool CheckDescriptionHasBeenSet() const { return m_checkDescriptionHasBeenSet; } |
| 92 | + |
| 93 | + /** |
| 94 | + * <p>The description for the CIS check.</p> |
| 95 | + */ |
| 96 | + inline void SetCheckDescription(const Aws::String& value) { m_checkDescriptionHasBeenSet = true; m_checkDescription = value; } |
| 97 | + |
| 98 | + /** |
| 99 | + * <p>The description for the CIS check.</p> |
| 100 | + */ |
| 101 | + inline void SetCheckDescription(Aws::String&& value) { m_checkDescriptionHasBeenSet = true; m_checkDescription = std::move(value); } |
| 102 | + |
| 103 | + /** |
| 104 | + * <p>The description for the CIS check.</p> |
| 105 | + */ |
| 106 | + inline void SetCheckDescription(const char* value) { m_checkDescriptionHasBeenSet = true; m_checkDescription.assign(value); } |
| 107 | + |
| 108 | + /** |
| 109 | + * <p>The description for the CIS check.</p> |
| 110 | + */ |
| 111 | + inline CisCheckAggregation& WithCheckDescription(const Aws::String& value) { SetCheckDescription(value); return *this;} |
| 112 | + |
| 113 | + /** |
| 114 | + * <p>The description for the CIS check.</p> |
| 115 | + */ |
| 116 | + inline CisCheckAggregation& WithCheckDescription(Aws::String&& value) { SetCheckDescription(std::move(value)); return *this;} |
| 117 | + |
| 118 | + /** |
| 119 | + * <p>The description for the CIS check.</p> |
| 120 | + */ |
| 121 | + inline CisCheckAggregation& WithCheckDescription(const char* value) { SetCheckDescription(value); return *this;} |
| 122 | + |
| 123 | + |
| 124 | + /** |
| 125 | + * <p>The check ID for the CIS check.</p> |
| 126 | + */ |
| 127 | + inline const Aws::String& GetCheckId() const{ return m_checkId; } |
| 128 | + |
| 129 | + /** |
| 130 | + * <p>The check ID for the CIS check.</p> |
| 131 | + */ |
| 132 | + inline bool CheckIdHasBeenSet() const { return m_checkIdHasBeenSet; } |
| 133 | + |
| 134 | + /** |
| 135 | + * <p>The check ID for the CIS check.</p> |
| 136 | + */ |
| 137 | + inline void SetCheckId(const Aws::String& value) { m_checkIdHasBeenSet = true; m_checkId = value; } |
| 138 | + |
| 139 | + /** |
| 140 | + * <p>The check ID for the CIS check.</p> |
| 141 | + */ |
| 142 | + inline void SetCheckId(Aws::String&& value) { m_checkIdHasBeenSet = true; m_checkId = std::move(value); } |
| 143 | + |
| 144 | + /** |
| 145 | + * <p>The check ID for the CIS check.</p> |
| 146 | + */ |
| 147 | + inline void SetCheckId(const char* value) { m_checkIdHasBeenSet = true; m_checkId.assign(value); } |
| 148 | + |
| 149 | + /** |
| 150 | + * <p>The check ID for the CIS check.</p> |
| 151 | + */ |
| 152 | + inline CisCheckAggregation& WithCheckId(const Aws::String& value) { SetCheckId(value); return *this;} |
| 153 | + |
| 154 | + /** |
| 155 | + * <p>The check ID for the CIS check.</p> |
| 156 | + */ |
| 157 | + inline CisCheckAggregation& WithCheckId(Aws::String&& value) { SetCheckId(std::move(value)); return *this;} |
| 158 | + |
| 159 | + /** |
| 160 | + * <p>The check ID for the CIS check.</p> |
| 161 | + */ |
| 162 | + inline CisCheckAggregation& WithCheckId(const char* value) { SetCheckId(value); return *this;} |
| 163 | + |
| 164 | + |
| 165 | + /** |
| 166 | + * <p>The CIS check level.</p> |
| 167 | + */ |
| 168 | + inline const CisSecurityLevel& GetLevel() const{ return m_level; } |
| 169 | + |
| 170 | + /** |
| 171 | + * <p>The CIS check level.</p> |
| 172 | + */ |
| 173 | + inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; } |
| 174 | + |
| 175 | + /** |
| 176 | + * <p>The CIS check level.</p> |
| 177 | + */ |
| 178 | + inline void SetLevel(const CisSecurityLevel& value) { m_levelHasBeenSet = true; m_level = value; } |
| 179 | + |
| 180 | + /** |
| 181 | + * <p>The CIS check level.</p> |
| 182 | + */ |
| 183 | + inline void SetLevel(CisSecurityLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); } |
| 184 | + |
| 185 | + /** |
| 186 | + * <p>The CIS check level.</p> |
| 187 | + */ |
| 188 | + inline CisCheckAggregation& WithLevel(const CisSecurityLevel& value) { SetLevel(value); return *this;} |
| 189 | + |
| 190 | + /** |
| 191 | + * <p>The CIS check level.</p> |
| 192 | + */ |
| 193 | + inline CisCheckAggregation& WithLevel(CisSecurityLevel&& value) { SetLevel(std::move(value)); return *this;} |
| 194 | + |
| 195 | + |
| 196 | + /** |
| 197 | + * <p>The CIS check platform.</p> |
| 198 | + */ |
| 199 | + inline const Aws::String& GetPlatform() const{ return m_platform; } |
| 200 | + |
| 201 | + /** |
| 202 | + * <p>The CIS check platform.</p> |
| 203 | + */ |
| 204 | + inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } |
| 205 | + |
| 206 | + /** |
| 207 | + * <p>The CIS check platform.</p> |
| 208 | + */ |
| 209 | + inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; } |
| 210 | + |
| 211 | + /** |
| 212 | + * <p>The CIS check platform.</p> |
| 213 | + */ |
| 214 | + inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } |
| 215 | + |
| 216 | + /** |
| 217 | + * <p>The CIS check platform.</p> |
| 218 | + */ |
| 219 | + inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); } |
| 220 | + |
| 221 | + /** |
| 222 | + * <p>The CIS check platform.</p> |
| 223 | + */ |
| 224 | + inline CisCheckAggregation& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} |
| 225 | + |
| 226 | + /** |
| 227 | + * <p>The CIS check platform.</p> |
| 228 | + */ |
| 229 | + inline CisCheckAggregation& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} |
| 230 | + |
| 231 | + /** |
| 232 | + * <p>The CIS check platform.</p> |
| 233 | + */ |
| 234 | + inline CisCheckAggregation& WithPlatform(const char* value) { SetPlatform(value); return *this;} |
| 235 | + |
| 236 | + |
| 237 | + /** |
| 238 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 239 | + */ |
| 240 | + inline const Aws::String& GetScanArn() const{ return m_scanArn; } |
| 241 | + |
| 242 | + /** |
| 243 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 244 | + */ |
| 245 | + inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; } |
| 246 | + |
| 247 | + /** |
| 248 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 249 | + */ |
| 250 | + inline void SetScanArn(const Aws::String& value) { m_scanArnHasBeenSet = true; m_scanArn = value; } |
| 251 | + |
| 252 | + /** |
| 253 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 254 | + */ |
| 255 | + inline void SetScanArn(Aws::String&& value) { m_scanArnHasBeenSet = true; m_scanArn = std::move(value); } |
| 256 | + |
| 257 | + /** |
| 258 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 259 | + */ |
| 260 | + inline void SetScanArn(const char* value) { m_scanArnHasBeenSet = true; m_scanArn.assign(value); } |
| 261 | + |
| 262 | + /** |
| 263 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 264 | + */ |
| 265 | + inline CisCheckAggregation& WithScanArn(const Aws::String& value) { SetScanArn(value); return *this;} |
| 266 | + |
| 267 | + /** |
| 268 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 269 | + */ |
| 270 | + inline CisCheckAggregation& WithScanArn(Aws::String&& value) { SetScanArn(std::move(value)); return *this;} |
| 271 | + |
| 272 | + /** |
| 273 | + * <p>The scan ARN for the CIS check scan ARN.</p> |
| 274 | + */ |
| 275 | + inline CisCheckAggregation& WithScanArn(const char* value) { SetScanArn(value); return *this;} |
| 276 | + |
| 277 | + |
| 278 | + /** |
| 279 | + * <p>The CIS check status counts.</p> |
| 280 | + */ |
| 281 | + inline const StatusCounts& GetStatusCounts() const{ return m_statusCounts; } |
| 282 | + |
| 283 | + /** |
| 284 | + * <p>The CIS check status counts.</p> |
| 285 | + */ |
| 286 | + inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; } |
| 287 | + |
| 288 | + /** |
| 289 | + * <p>The CIS check status counts.</p> |
| 290 | + */ |
| 291 | + inline void SetStatusCounts(const StatusCounts& value) { m_statusCountsHasBeenSet = true; m_statusCounts = value; } |
| 292 | + |
| 293 | + /** |
| 294 | + * <p>The CIS check status counts.</p> |
| 295 | + */ |
| 296 | + inline void SetStatusCounts(StatusCounts&& value) { m_statusCountsHasBeenSet = true; m_statusCounts = std::move(value); } |
| 297 | + |
| 298 | + /** |
| 299 | + * <p>The CIS check status counts.</p> |
| 300 | + */ |
| 301 | + inline CisCheckAggregation& WithStatusCounts(const StatusCounts& value) { SetStatusCounts(value); return *this;} |
| 302 | + |
| 303 | + /** |
| 304 | + * <p>The CIS check status counts.</p> |
| 305 | + */ |
| 306 | + inline CisCheckAggregation& WithStatusCounts(StatusCounts&& value) { SetStatusCounts(std::move(value)); return *this;} |
| 307 | + |
| 308 | + |
| 309 | + /** |
| 310 | + * <p>The CIS check title.</p> |
| 311 | + */ |
| 312 | + inline const Aws::String& GetTitle() const{ return m_title; } |
| 313 | + |
| 314 | + /** |
| 315 | + * <p>The CIS check title.</p> |
| 316 | + */ |
| 317 | + inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } |
| 318 | + |
| 319 | + /** |
| 320 | + * <p>The CIS check title.</p> |
| 321 | + */ |
| 322 | + inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } |
| 323 | + |
| 324 | + /** |
| 325 | + * <p>The CIS check title.</p> |
| 326 | + */ |
| 327 | + inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } |
| 328 | + |
| 329 | + /** |
| 330 | + * <p>The CIS check title.</p> |
| 331 | + */ |
| 332 | + inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } |
| 333 | + |
| 334 | + /** |
| 335 | + * <p>The CIS check title.</p> |
| 336 | + */ |
| 337 | + inline CisCheckAggregation& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} |
| 338 | + |
| 339 | + /** |
| 340 | + * <p>The CIS check title.</p> |
| 341 | + */ |
| 342 | + inline CisCheckAggregation& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} |
| 343 | + |
| 344 | + /** |
| 345 | + * <p>The CIS check title.</p> |
| 346 | + */ |
| 347 | + inline CisCheckAggregation& WithTitle(const char* value) { SetTitle(value); return *this;} |
| 348 | + |
| 349 | + private: |
| 350 | + |
| 351 | + Aws::String m_accountId; |
| 352 | + bool m_accountIdHasBeenSet = false; |
| 353 | + |
| 354 | + Aws::String m_checkDescription; |
| 355 | + bool m_checkDescriptionHasBeenSet = false; |
| 356 | + |
| 357 | + Aws::String m_checkId; |
| 358 | + bool m_checkIdHasBeenSet = false; |
| 359 | + |
| 360 | + CisSecurityLevel m_level; |
| 361 | + bool m_levelHasBeenSet = false; |
| 362 | + |
| 363 | + Aws::String m_platform; |
| 364 | + bool m_platformHasBeenSet = false; |
| 365 | + |
| 366 | + Aws::String m_scanArn; |
| 367 | + bool m_scanArnHasBeenSet = false; |
| 368 | + |
| 369 | + StatusCounts m_statusCounts; |
| 370 | + bool m_statusCountsHasBeenSet = false; |
| 371 | + |
| 372 | + Aws::String m_title; |
| 373 | + bool m_titleHasBeenSet = false; |
| 374 | + }; |
| 375 | + |
| 376 | +} // namespace Model |
| 377 | +} // namespace Inspector2 |
| 378 | +} // namespace Aws |
0 commit comments