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

Information on the vulnerable package identified by a finding.

See * Also:

AWS * API Reference

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

The architecture of the vulnerable package.

*/ inline const Aws::String& GetArch() const{ return m_arch; } /** *

The architecture of the vulnerable package.

*/ inline bool ArchHasBeenSet() const { return m_archHasBeenSet; } /** *

The architecture of the vulnerable package.

*/ inline void SetArch(const Aws::String& value) { m_archHasBeenSet = true; m_arch = value; } /** *

The architecture of the vulnerable package.

*/ inline void SetArch(Aws::String&& value) { m_archHasBeenSet = true; m_arch = std::move(value); } /** *

The architecture of the vulnerable package.

*/ inline void SetArch(const char* value) { m_archHasBeenSet = true; m_arch.assign(value); } /** *

The architecture of the vulnerable package.

*/ inline VulnerablePackage& WithArch(const Aws::String& value) { SetArch(value); return *this;} /** *

The architecture of the vulnerable package.

*/ inline VulnerablePackage& WithArch(Aws::String&& value) { SetArch(std::move(value)); return *this;} /** *

The architecture of the vulnerable package.

*/ inline VulnerablePackage& WithArch(const char* value) { SetArch(value); return *this;} /** *

The epoch of the vulnerable package.

*/ inline int GetEpoch() const{ return m_epoch; } /** *

The epoch of the vulnerable package.

*/ inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; } /** *

The epoch of the vulnerable package.

*/ inline void SetEpoch(int value) { m_epochHasBeenSet = true; m_epoch = value; } /** *

The epoch of the vulnerable package.

*/ inline VulnerablePackage& WithEpoch(int value) { SetEpoch(value); return *this;} /** *

The file path of the vulnerable package.

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

The file path of the vulnerable package.

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

The file path of the vulnerable package.

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

The file path of the vulnerable package.

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

The file path of the vulnerable package.

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

The file path of the vulnerable package.

*/ inline VulnerablePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

The file path of the vulnerable package.

*/ inline VulnerablePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

The file path of the vulnerable package.

*/ inline VulnerablePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

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

The name of the vulnerable package.

*/ inline VulnerablePackage& WithName(const char* value) { SetName(value); return *this;} /** *

The package manager of the vulnerable package.

*/ inline const Aws::String& GetPackageManager() const{ return m_packageManager; } /** *

The package manager of the vulnerable package.

*/ inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; } /** *

The package manager of the vulnerable package.

*/ inline void SetPackageManager(const Aws::String& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; } /** *

The package manager of the vulnerable package.

*/ inline void SetPackageManager(Aws::String&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); } /** *

The package manager of the vulnerable package.

*/ inline void SetPackageManager(const char* value) { m_packageManagerHasBeenSet = true; m_packageManager.assign(value); } /** *

The package manager of the vulnerable package.

*/ inline VulnerablePackage& WithPackageManager(const Aws::String& value) { SetPackageManager(value); return *this;} /** *

The package manager of the vulnerable package.

*/ inline VulnerablePackage& WithPackageManager(Aws::String&& value) { SetPackageManager(std::move(value)); return *this;} /** *

The package manager of the vulnerable package.

*/ inline VulnerablePackage& WithPackageManager(const char* value) { SetPackageManager(value); return *this;} /** *

The release of the vulnerable package.

*/ inline const Aws::String& GetRelease() const{ return m_release; } /** *

The release of the vulnerable package.

*/ inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; } /** *

The release of the vulnerable package.

*/ inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; } /** *

The release of the vulnerable package.

*/ inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); } /** *

The release of the vulnerable package.

*/ inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); } /** *

The release of the vulnerable package.

*/ inline VulnerablePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;} /** *

The release of the vulnerable package.

*/ inline VulnerablePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;} /** *

The release of the vulnerable package.

*/ inline VulnerablePackage& WithRelease(const char* value) { SetRelease(value); return *this;} /** *

The source layer hash of the vulnerable package.

*/ inline const Aws::String& GetSourceLayerHash() const{ return m_sourceLayerHash; } /** *

The source layer hash of the vulnerable package.

*/ inline bool SourceLayerHashHasBeenSet() const { return m_sourceLayerHashHasBeenSet; } /** *

The source layer hash of the vulnerable package.

*/ inline void SetSourceLayerHash(const Aws::String& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = value; } /** *

The source layer hash of the vulnerable package.

*/ inline void SetSourceLayerHash(Aws::String&& value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash = std::move(value); } /** *

The source layer hash of the vulnerable package.

*/ inline void SetSourceLayerHash(const char* value) { m_sourceLayerHashHasBeenSet = true; m_sourceLayerHash.assign(value); } /** *

The source layer hash of the vulnerable package.

*/ inline VulnerablePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;} /** *

The source layer hash of the vulnerable package.

*/ inline VulnerablePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;} /** *

The source layer hash of the vulnerable package.

*/ inline VulnerablePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;} /** *

The version of the vulnerable package.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the vulnerable package.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the vulnerable package.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the vulnerable package.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version of the vulnerable package.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version of the vulnerable package.

*/ inline VulnerablePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the vulnerable package.

*/ inline VulnerablePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the vulnerable package.

*/ inline VulnerablePackage& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_arch; bool m_archHasBeenSet = false; int m_epoch; bool m_epochHasBeenSet = false; Aws::String m_filePath; bool m_filePathHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_packageManager; bool m_packageManagerHasBeenSet = false; Aws::String m_release; bool m_releaseHasBeenSet = false; Aws::String m_sourceLayerHash; bool m_sourceLayerHashHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws