/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a package installed on an Image Builder image.See
* Also:
AWS
* API Reference
The name of the package as reported to the operating system package * manager.
*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *The name of the package as reported to the operating system package * manager.
*/ inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; } /** *The name of the package as reported to the operating system package * manager.
*/ inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; } /** *The name of the package as reported to the operating system package * manager.
*/ inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); } /** *The name of the package as reported to the operating system package * manager.
*/ inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); } /** *The name of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *The name of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *The name of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *The version of the package as reported to the operating system package * manager.
*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *The version of the package as reported to the operating system package * manager.
*/ inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *The version of the package as reported to the operating system package * manager.
*/ inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } /** *The version of the package as reported to the operating system package * manager.
*/ inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } /** *The version of the package as reported to the operating system package * manager.
*/ inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } /** *The version of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *The version of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *The version of the package as reported to the operating system package * manager.
*/ inline ImagePackage& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} private: Aws::String m_packageName; bool m_packageNameHasBeenSet = false; Aws::String m_packageVersion; bool m_packageVersionHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws