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

Information on the vulnerable package identified by a finding.

See * Also:

AWS * API Reference

*/ class VulnerablePackage { public: AWS_INSPECTOR2_API VulnerablePackage(); AWS_INSPECTOR2_API VulnerablePackage(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API VulnerablePackage& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_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 version of the package that contains the vulnerability fix.

*/ inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; } /** *

The version of the package that contains the vulnerability fix.

*/ inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; } /** *

The version of the package that contains the vulnerability fix.

*/ inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; } /** *

The version of the package that contains the vulnerability fix.

*/ inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); } /** *

The version of the package that contains the vulnerability fix.

*/ inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); } /** *

The version of the package that contains the vulnerability fix.

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

The version of the package that contains the vulnerability fix.

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

The version of the package that contains the vulnerability fix.

*/ inline VulnerablePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(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 PackageManager& 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 PackageManager& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; } /** *

The package manager of the vulnerable package.

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

The package manager of the vulnerable package.

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

The package manager of the vulnerable package.

*/ inline VulnerablePackage& WithPackageManager(PackageManager&& value) { SetPackageManager(std::move(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 code to run in your environment to update packages with a fix * available.

*/ inline const Aws::String& GetRemediation() const{ return m_remediation; } /** *

The code to run in your environment to update packages with a fix * available.

*/ inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; } /** *

The code to run in your environment to update packages with a fix * available.

*/ inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; } /** *

The code to run in your environment to update packages with a fix * available.

*/ inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); } /** *

The code to run in your environment to update packages with a fix * available.

*/ inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); } /** *

The code to run in your environment to update packages with a fix * available.

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

The code to run in your environment to update packages with a fix * available.

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

The code to run in your environment to update packages with a fix * available.

*/ inline VulnerablePackage& WithRemediation(const char* value) { SetRemediation(value); return *this;} /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline const Aws::String& GetSourceLambdaLayerArn() const{ return m_sourceLambdaLayerArn; } /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline void SetSourceLambdaLayerArn(const Aws::String& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = value; } /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline void SetSourceLambdaLayerArn(Aws::String&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline void SetSourceLambdaLayerArn(const char* value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

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

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

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

The Amazon Resource Number (ARN) of the AWS Lambda function affected by a * finding.

*/ inline VulnerablePackage& WithSourceLambdaLayerArn(const char* value) { SetSourceLambdaLayerArn(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_fixedInVersion; bool m_fixedInVersionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; PackageManager m_packageManager; bool m_packageManagerHasBeenSet = false; Aws::String m_release; bool m_releaseHasBeenSet = false; Aws::String m_remediation; bool m_remediationHasBeenSet = false; Aws::String m_sourceLambdaLayerArn; bool m_sourceLambdaLayerArnHasBeenSet = false; Aws::String m_sourceLayerHash; bool m_sourceLayerHashHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws