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

Information about a security vulnerability that Amazon CodeGuru Security * detected.

See Also:

AWS * API Reference

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

An object that describes the location of the detected security vulnerability * in your code.

*/ inline const FilePath& GetFilePath() const{ return m_filePath; } /** *

An object that describes the location of the detected security vulnerability * in your code.

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

An object that describes the location of the detected security vulnerability * in your code.

*/ inline void SetFilePath(const FilePath& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

An object that describes the location of the detected security vulnerability * in your code.

*/ inline void SetFilePath(FilePath&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

An object that describes the location of the detected security vulnerability * in your code.

*/ inline Vulnerability& WithFilePath(const FilePath& value) { SetFilePath(value); return *this;} /** *

An object that describes the location of the detected security vulnerability * in your code.

*/ inline Vulnerability& WithFilePath(FilePath&& value) { SetFilePath(std::move(value)); return *this;} /** *

The identifier for the vulnerability.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the vulnerability.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the vulnerability.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the vulnerability.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the vulnerability.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the vulnerability.

*/ inline Vulnerability& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the vulnerability.

*/ inline Vulnerability& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the vulnerability.

*/ inline Vulnerability& WithId(const char* value) { SetId(value); return *this;} /** *

The number of times the vulnerability appears in your code.

*/ inline int GetItemCount() const{ return m_itemCount; } /** *

The number of times the vulnerability appears in your code.

*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *

The number of times the vulnerability appears in your code.

*/ inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *

The number of times the vulnerability appears in your code.

*/ inline Vulnerability& WithItemCount(int value) { SetItemCount(value); return *this;} /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline const Aws::Vector& GetReferenceUrls() const{ return m_referenceUrls; } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline void SetReferenceUrls(const Aws::Vector& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline void SetReferenceUrls(Aws::Vector&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline Vulnerability& WithReferenceUrls(const Aws::Vector& value) { SetReferenceUrls(value); return *this;} /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline Vulnerability& WithReferenceUrls(Aws::Vector&& value) { SetReferenceUrls(std::move(value)); return *this;} /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline Vulnerability& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline Vulnerability& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; } /** *

One or more URL addresses that contain details about a vulnerability.

*/ inline Vulnerability& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline const Aws::Vector& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline void SetRelatedVulnerabilities(const Aws::Vector& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline void SetRelatedVulnerabilities(Aws::Vector&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline Vulnerability& WithRelatedVulnerabilities(const Aws::Vector& value) { SetRelatedVulnerabilities(value); return *this;} /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline Vulnerability& WithRelatedVulnerabilities(Aws::Vector&& value) { SetRelatedVulnerabilities(std::move(value)); return *this;} /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline Vulnerability& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline Vulnerability& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; } /** *

One or more vulnerabilities that are related to the vulnerability being * described.

*/ inline Vulnerability& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; } private: FilePath m_filePath; bool m_filePathHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; Aws::Vector m_referenceUrls; bool m_referenceUrlsHasBeenSet = false; Aws::Vector m_relatedVulnerabilities; bool m_relatedVulnerabilitiesHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws