/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECR { namespace Model { /** *

Contains information about an image scan finding.

See Also:

* AWS * API Reference

*/ class ImageScanFinding { public: AWS_ECR_API ImageScanFinding(); AWS_ECR_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API ImageScanFinding& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name associated with the finding, usually a CVE number.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name associated with the finding, usually a CVE number.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name associated with the finding, usually a CVE number.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name associated with the finding, usually a CVE number.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name associated with the finding, usually a CVE number.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name associated with the finding, usually a CVE number.

*/ inline ImageScanFinding& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name associated with the finding, usually a CVE number.

*/ inline ImageScanFinding& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name associated with the finding, usually a CVE number.

*/ inline ImageScanFinding& WithName(const char* value) { SetName(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 ImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the finding.

*/ inline ImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the finding.

*/ inline ImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A link containing additional details about the security vulnerability.

*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *

A link containing additional details about the security vulnerability.

*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *

A link containing additional details about the security vulnerability.

*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *

A link containing additional details about the security vulnerability.

*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *

A link containing additional details about the security vulnerability.

*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *

A link containing additional details about the security vulnerability.

*/ inline ImageScanFinding& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *

A link containing additional details about the security vulnerability.

*/ inline ImageScanFinding& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *

A link containing additional details about the security vulnerability.

*/ inline ImageScanFinding& WithUri(const char* value) { SetUri(value); return *this;} /** *

The finding severity.

*/ inline const FindingSeverity& GetSeverity() const{ return m_severity; } /** *

The finding severity.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

The finding severity.

*/ inline void SetSeverity(const FindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

The finding severity.

*/ inline void SetSeverity(FindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

The finding severity.

*/ inline ImageScanFinding& WithSeverity(const FindingSeverity& value) { SetSeverity(value); return *this;} /** *

The finding severity.

*/ inline ImageScanFinding& WithSeverity(FindingSeverity&& value) { SetSeverity(std::move(value)); return *this;} /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline ImageScanFinding& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline ImageScanFinding& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline ImageScanFinding& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

A collection of attributes of the host from which the finding is * generated.

*/ inline ImageScanFinding& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_uri; bool m_uriHasBeenSet = false; FindingSeverity m_severity; bool m_severityHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws