/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details of an enhanced image scan. This is returned when enhanced
* scanning is enabled for your private registry.See Also:
AWS
* API Reference
The Amazon Web Services account ID associated with the image.
*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *The Amazon Web Services account ID associated with the image.
*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *The Amazon Web Services account ID associated with the image.
*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *The Amazon Web Services account ID associated with the image.
*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *The Amazon Web Services account ID associated with the image.
*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *The Amazon Web Services account ID associated with the image.
*/ inline EnhancedImageScanFinding& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *The Amazon Web Services account ID associated with the image.
*/ inline EnhancedImageScanFinding& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *The Amazon Web Services account ID associated with the image.
*/ inline EnhancedImageScanFinding& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *The description of the finding.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the finding.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the finding.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the finding.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the finding.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the finding.
*/ inline EnhancedImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the finding.
*/ inline EnhancedImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the finding.
*/ inline EnhancedImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The Amazon Resource Number (ARN) of the finding.
*/ inline const Aws::String& GetFindingArn() const{ return m_findingArn; } /** *The Amazon Resource Number (ARN) of the finding.
*/ inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; } /** *The Amazon Resource Number (ARN) of the finding.
*/ inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; } /** *The Amazon Resource Number (ARN) of the finding.
*/ inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); } /** *The Amazon Resource Number (ARN) of the finding.
*/ inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); } /** *The Amazon Resource Number (ARN) of the finding.
*/ inline EnhancedImageScanFinding& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;} /** *The Amazon Resource Number (ARN) of the finding.
*/ inline EnhancedImageScanFinding& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;} /** *The Amazon Resource Number (ARN) of the finding.
*/ inline EnhancedImageScanFinding& WithFindingArn(const char* value) { SetFindingArn(value); return *this;} /** *The date and time that the finding was first observed.
*/ inline const Aws::Utils::DateTime& GetFirstObservedAt() const{ return m_firstObservedAt; } /** *The date and time that the finding was first observed.
*/ inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; } /** *The date and time that the finding was first observed.
*/ inline void SetFirstObservedAt(const Aws::Utils::DateTime& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = value; } /** *The date and time that the finding was first observed.
*/ inline void SetFirstObservedAt(Aws::Utils::DateTime&& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = std::move(value); } /** *The date and time that the finding was first observed.
*/ inline EnhancedImageScanFinding& WithFirstObservedAt(const Aws::Utils::DateTime& value) { SetFirstObservedAt(value); return *this;} /** *The date and time that the finding was first observed.
*/ inline EnhancedImageScanFinding& WithFirstObservedAt(Aws::Utils::DateTime&& value) { SetFirstObservedAt(std::move(value)); return *this;} /** *The date and time that the finding was last observed.
*/ inline const Aws::Utils::DateTime& GetLastObservedAt() const{ return m_lastObservedAt; } /** *The date and time that the finding was last observed.
*/ inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; } /** *The date and time that the finding was last observed.
*/ inline void SetLastObservedAt(const Aws::Utils::DateTime& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; } /** *The date and time that the finding was last observed.
*/ inline void SetLastObservedAt(Aws::Utils::DateTime&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); } /** *The date and time that the finding was last observed.
*/ inline EnhancedImageScanFinding& WithLastObservedAt(const Aws::Utils::DateTime& value) { SetLastObservedAt(value); return *this;} /** *The date and time that the finding was last observed.
*/ inline EnhancedImageScanFinding& WithLastObservedAt(Aws::Utils::DateTime&& value) { SetLastObservedAt(std::move(value)); return *this;} /** *An object that contains the details of a package vulnerability finding.
*/ inline const PackageVulnerabilityDetails& GetPackageVulnerabilityDetails() const{ return m_packageVulnerabilityDetails; } /** *An object that contains the details of a package vulnerability finding.
*/ inline bool PackageVulnerabilityDetailsHasBeenSet() const { return m_packageVulnerabilityDetailsHasBeenSet; } /** *An object that contains the details of a package vulnerability finding.
*/ inline void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = value; } /** *An object that contains the details of a package vulnerability finding.
*/ inline void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = std::move(value); } /** *An object that contains the details of a package vulnerability finding.
*/ inline EnhancedImageScanFinding& WithPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { SetPackageVulnerabilityDetails(value); return *this;} /** *An object that contains the details of a package vulnerability finding.
*/ inline EnhancedImageScanFinding& WithPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { SetPackageVulnerabilityDetails(std::move(value)); return *this;} /** *An object that contains the details about how to remediate a finding.
*/ inline const Remediation& GetRemediation() const{ return m_remediation; } /** *An object that contains the details about how to remediate a finding.
*/ inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; } /** *An object that contains the details about how to remediate a finding.
*/ inline void SetRemediation(const Remediation& value) { m_remediationHasBeenSet = true; m_remediation = value; } /** *An object that contains the details about how to remediate a finding.
*/ inline void SetRemediation(Remediation&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); } /** *An object that contains the details about how to remediate a finding.
*/ inline EnhancedImageScanFinding& WithRemediation(const Remediation& value) { SetRemediation(value); return *this;} /** *An object that contains the details about how to remediate a finding.
*/ inline EnhancedImageScanFinding& WithRemediation(Remediation&& value) { SetRemediation(std::move(value)); return *this;} /** *Contains information on the resources involved in a finding.
*/ inline const Aws::VectorContains information on the resources involved in a finding.
*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *Contains information on the resources involved in a finding.
*/ inline void SetResources(const Aws::VectorContains information on the resources involved in a finding.
*/ inline void SetResources(Aws::VectorContains information on the resources involved in a finding.
*/ inline EnhancedImageScanFinding& WithResources(const Aws::VectorContains information on the resources involved in a finding.
*/ inline EnhancedImageScanFinding& WithResources(Aws::VectorContains information on the resources involved in a finding.
*/ inline EnhancedImageScanFinding& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *Contains information on the resources involved in a finding.
*/ inline EnhancedImageScanFinding& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *The Amazon Inspector score given to the finding.
*/ inline double GetScore() const{ return m_score; } /** *The Amazon Inspector score given to the finding.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The Amazon Inspector score given to the finding.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The Amazon Inspector score given to the finding.
*/ inline EnhancedImageScanFinding& WithScore(double value) { SetScore(value); return *this;} /** *An object that contains details of the Amazon Inspector score.
*/ inline const ScoreDetails& GetScoreDetails() const{ return m_scoreDetails; } /** *An object that contains details of the Amazon Inspector score.
*/ inline bool ScoreDetailsHasBeenSet() const { return m_scoreDetailsHasBeenSet; } /** *An object that contains details of the Amazon Inspector score.
*/ inline void SetScoreDetails(const ScoreDetails& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = value; } /** *An object that contains details of the Amazon Inspector score.
*/ inline void SetScoreDetails(ScoreDetails&& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = std::move(value); } /** *An object that contains details of the Amazon Inspector score.
*/ inline EnhancedImageScanFinding& WithScoreDetails(const ScoreDetails& value) { SetScoreDetails(value); return *this;} /** *An object that contains details of the Amazon Inspector score.
*/ inline EnhancedImageScanFinding& WithScoreDetails(ScoreDetails&& value) { SetScoreDetails(std::move(value)); return *this;} /** *The severity of the finding.
*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *The severity of the finding.
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the finding.
*/ inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the finding.
*/ inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the finding.
*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *The severity of the finding.
*/ inline EnhancedImageScanFinding& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *The severity of the finding.
*/ inline EnhancedImageScanFinding& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *The severity of the finding.
*/ inline EnhancedImageScanFinding& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *The status of the finding.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the finding.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the finding.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the finding.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the finding.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The status of the finding.
*/ inline EnhancedImageScanFinding& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the finding.
*/ inline EnhancedImageScanFinding& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the finding.
*/ inline EnhancedImageScanFinding& WithStatus(const char* value) { SetStatus(value); return *this;} /** *The title of the finding.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The title of the finding.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The title of the finding.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The title of the finding.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The title of the finding.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The title of the finding.
*/ inline EnhancedImageScanFinding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The title of the finding.
*/ inline EnhancedImageScanFinding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The title of the finding.
*/ inline EnhancedImageScanFinding& WithTitle(const char* value) { SetTitle(value); return *this;} /** *The type of the finding.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The type of the finding.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of the finding.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of the finding.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of the finding.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The type of the finding.
*/ inline EnhancedImageScanFinding& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The type of the finding.
*/ inline EnhancedImageScanFinding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The type of the finding.
*/ inline EnhancedImageScanFinding& WithType(const char* value) { SetType(value); return *this;} /** *The date and time the finding was last updated at.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The date and time the finding was last updated at.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The date and time the finding was last updated at.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The date and time the finding was last updated at.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The date and time the finding was last updated at.
*/ inline EnhancedImageScanFinding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time the finding was last updated at.
*/ inline EnhancedImageScanFinding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_findingArn; bool m_findingArnHasBeenSet = false; Aws::Utils::DateTime m_firstObservedAt; bool m_firstObservedAtHasBeenSet = false; Aws::Utils::DateTime m_lastObservedAt; bool m_lastObservedAtHasBeenSet = false; PackageVulnerabilityDetails m_packageVulnerabilityDetails; bool m_packageVulnerabilityDetailsHasBeenSet = false; Remediation m_remediation; bool m_remediationHasBeenSet = false; Aws::Vector