/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a software package.See Also:
AWS
* API Reference
The name of the software package.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the software package.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the software package.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the software package.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the software package.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the software package.
*/ inline SoftwarePackage& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the software package.
*/ inline SoftwarePackage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the software package.
*/ inline SoftwarePackage& WithName(const char* value) { SetName(value); return *this;} /** *The version of the software package.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of the software package.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version of the software package.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version of the software package.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version of the software package.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version of the software package.
*/ inline SoftwarePackage& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of the software package.
*/ inline SoftwarePackage& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of the software package.
*/ inline SoftwarePackage& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The epoch of the software package.
*/ inline const Aws::String& GetEpoch() const{ return m_epoch; } /** *The epoch of the software package.
*/ inline bool EpochHasBeenSet() const { return m_epochHasBeenSet; } /** *The epoch of the software package.
*/ inline void SetEpoch(const Aws::String& value) { m_epochHasBeenSet = true; m_epoch = value; } /** *The epoch of the software package.
*/ inline void SetEpoch(Aws::String&& value) { m_epochHasBeenSet = true; m_epoch = std::move(value); } /** *The epoch of the software package.
*/ inline void SetEpoch(const char* value) { m_epochHasBeenSet = true; m_epoch.assign(value); } /** *The epoch of the software package.
*/ inline SoftwarePackage& WithEpoch(const Aws::String& value) { SetEpoch(value); return *this;} /** *The epoch of the software package.
*/ inline SoftwarePackage& WithEpoch(Aws::String&& value) { SetEpoch(std::move(value)); return *this;} /** *The epoch of the software package.
*/ inline SoftwarePackage& WithEpoch(const char* value) { SetEpoch(value); return *this;} /** *The release of the software package.
*/ inline const Aws::String& GetRelease() const{ return m_release; } /** *The release of the software package.
*/ inline bool ReleaseHasBeenSet() const { return m_releaseHasBeenSet; } /** *The release of the software package.
*/ inline void SetRelease(const Aws::String& value) { m_releaseHasBeenSet = true; m_release = value; } /** *The release of the software package.
*/ inline void SetRelease(Aws::String&& value) { m_releaseHasBeenSet = true; m_release = std::move(value); } /** *The release of the software package.
*/ inline void SetRelease(const char* value) { m_releaseHasBeenSet = true; m_release.assign(value); } /** *The release of the software package.
*/ inline SoftwarePackage& WithRelease(const Aws::String& value) { SetRelease(value); return *this;} /** *The release of the software package.
*/ inline SoftwarePackage& WithRelease(Aws::String&& value) { SetRelease(std::move(value)); return *this;} /** *The release of the software package.
*/ inline SoftwarePackage& WithRelease(const char* value) { SetRelease(value); return *this;} /** *The architecture used for the software package.
*/ inline const Aws::String& GetArchitecture() const{ return m_architecture; } /** *The architecture used for the software package.
*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *The architecture used for the software package.
*/ inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *The architecture used for the software package.
*/ inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *The architecture used for the software package.
*/ inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); } /** *The architecture used for the software package.
*/ inline SoftwarePackage& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;} /** *The architecture used for the software package.
*/ inline SoftwarePackage& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;} /** *The architecture used for the software package.
*/ inline SoftwarePackage& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} /** *The source of the package.
*/ inline const Aws::String& GetPackageManager() const{ return m_packageManager; } /** *The source of the package.
*/ inline bool PackageManagerHasBeenSet() const { return m_packageManagerHasBeenSet; } /** *The source of the package.
*/ inline void SetPackageManager(const Aws::String& value) { m_packageManagerHasBeenSet = true; m_packageManager = value; } /** *The source of the package.
*/ inline void SetPackageManager(Aws::String&& value) { m_packageManagerHasBeenSet = true; m_packageManager = std::move(value); } /** *The source of the package.
*/ inline void SetPackageManager(const char* value) { m_packageManagerHasBeenSet = true; m_packageManager.assign(value); } /** *The source of the package.
*/ inline SoftwarePackage& WithPackageManager(const Aws::String& value) { SetPackageManager(value); return *this;} /** *The source of the package.
*/ inline SoftwarePackage& WithPackageManager(Aws::String&& value) { SetPackageManager(std::move(value)); return *this;} /** *The source of the package.
*/ inline SoftwarePackage& WithPackageManager(const char* value) { SetPackageManager(value); return *this;} /** *The file system path to the package manager inventory file.
*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *The file system path to the package manager inventory file.
*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *The file system path to the package manager inventory file.
*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *The file system path to the package manager inventory file.
*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *The file system path to the package manager inventory file.
*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *The file system path to the package manager inventory file.
*/ inline SoftwarePackage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *The file system path to the package manager inventory file.
*/ inline SoftwarePackage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *The file system path to the package manager inventory file.
*/ inline SoftwarePackage& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline const Aws::String& GetFixedInVersion() const{ return m_fixedInVersion; } /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline bool FixedInVersionHasBeenSet() const { return m_fixedInVersionHasBeenSet; } /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline void SetFixedInVersion(const Aws::String& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = value; } /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline void SetFixedInVersion(Aws::String&& value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion = std::move(value); } /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline void SetFixedInVersion(const char* value) { m_fixedInVersionHasBeenSet = true; m_fixedInVersion.assign(value); } /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline SoftwarePackage& WithFixedInVersion(const Aws::String& value) { SetFixedInVersion(value); return *this;} /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline SoftwarePackage& WithFixedInVersion(Aws::String&& value) { SetFixedInVersion(std::move(value)); return *this;} /** *The version of the software package in which the vulnerability has been * resolved.
*/ inline SoftwarePackage& WithFixedInVersion(const char* value) { SetFixedInVersion(value); return *this;} /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline const Aws::String& GetRemediation() const{ return m_remediation; } /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; } /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline void SetRemediation(const Aws::String& value) { m_remediationHasBeenSet = true; m_remediation = value; } /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline void SetRemediation(Aws::String&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); } /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline void SetRemediation(const char* value) { m_remediationHasBeenSet = true; m_remediation.assign(value); } /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline SoftwarePackage& WithRemediation(const Aws::String& value) { SetRemediation(value); return *this;} /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline SoftwarePackage& WithRemediation(Aws::String&& value) { SetRemediation(std::move(value)); return *this;} /** *Describes the actions a customer can take to resolve the vulnerability in the * software package.
*/ inline SoftwarePackage& WithRemediation(const char* value) { SetRemediation(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 SoftwarePackage& WithSourceLayerHash(const Aws::String& value) { SetSourceLayerHash(value); return *this;} /** *The source layer hash of the vulnerable package.
*/ inline SoftwarePackage& WithSourceLayerHash(Aws::String&& value) { SetSourceLayerHash(std::move(value)); return *this;} /** *The source layer hash of the vulnerable package.
*/ inline SoftwarePackage& WithSourceLayerHash(const char* value) { SetSourceLayerHash(value); return *this;} /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline const Aws::String& GetSourceLayerArn() const{ return m_sourceLayerArn; } /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline bool SourceLayerArnHasBeenSet() const { return m_sourceLayerArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline void SetSourceLayerArn(const Aws::String& value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn = value; } /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline void SetSourceLayerArn(Aws::String&& value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline void SetSourceLayerArn(const char* value) { m_sourceLayerArnHasBeenSet = true; m_sourceLayerArn.assign(value); } /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline SoftwarePackage& WithSourceLayerArn(const Aws::String& value) { SetSourceLayerArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline SoftwarePackage& WithSourceLayerArn(Aws::String&& value) { SetSourceLayerArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the source layer.
*/ inline SoftwarePackage& WithSourceLayerArn(const char* value) { SetSourceLayerArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_epoch; bool m_epochHasBeenSet = false; Aws::String m_release; bool m_releaseHasBeenSet = false; Aws::String m_architecture; bool m_architectureHasBeenSet = false; Aws::String m_packageManager; bool m_packageManagerHasBeenSet = false; Aws::String m_filePath; bool m_filePathHasBeenSet = false; Aws::String m_fixedInVersion; bool m_fixedInVersionHasBeenSet = false; Aws::String m_remediation; bool m_remediationHasBeenSet = false; Aws::String m_sourceLayerHash; bool m_sourceLayerHashHasBeenSet = false; Aws::String m_sourceLayerArn; bool m_sourceLayerArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws