/** * 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 Panorama { namespace Model { /** *

A package object.

See Also:

AWS * API Reference

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's name.

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

The object's package version.

*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *

The object's package version.

*/ inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *

The object's package version.

*/ inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } /** *

The object's package version.

*/ inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } /** *

The object's package version.

*/ inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } /** *

The object's package version.

*/ inline PackageObject& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *

The object's package version.

*/ inline PackageObject& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *

The object's package version.

*/ inline PackageObject& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} /** *

The object's patch version.

*/ inline const Aws::String& GetPatchVersion() const{ return m_patchVersion; } /** *

The object's patch version.

*/ inline bool PatchVersionHasBeenSet() const { return m_patchVersionHasBeenSet; } /** *

The object's patch version.

*/ inline void SetPatchVersion(const Aws::String& value) { m_patchVersionHasBeenSet = true; m_patchVersion = value; } /** *

The object's patch version.

*/ inline void SetPatchVersion(Aws::String&& value) { m_patchVersionHasBeenSet = true; m_patchVersion = std::move(value); } /** *

The object's patch version.

*/ inline void SetPatchVersion(const char* value) { m_patchVersionHasBeenSet = true; m_patchVersion.assign(value); } /** *

The object's patch version.

*/ inline PackageObject& WithPatchVersion(const Aws::String& value) { SetPatchVersion(value); return *this;} /** *

The object's patch version.

*/ inline PackageObject& WithPatchVersion(Aws::String&& value) { SetPatchVersion(std::move(value)); return *this;} /** *

The object's patch version.

*/ inline PackageObject& WithPatchVersion(const char* value) { SetPatchVersion(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_packageVersion; bool m_packageVersionHasBeenSet = false; Aws::String m_patchVersion; bool m_patchVersionHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws