/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Panorama { namespace Model { class DescribePackageVersionResult { public: AWS_PANORAMA_API DescribePackageVersionResult(); AWS_PANORAMA_API DescribePackageVersionResult(const Aws::AmazonWebServiceResult& result); AWS_PANORAMA_API DescribePackageVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Whether the version is the latest available.

*/ inline bool GetIsLatestPatch() const{ return m_isLatestPatch; } /** *

Whether the version is the latest available.

*/ inline void SetIsLatestPatch(bool value) { m_isLatestPatch = value; } /** *

Whether the version is the latest available.

*/ inline DescribePackageVersionResult& WithIsLatestPatch(bool value) { SetIsLatestPatch(value); return *this;} /** *

The account ID of the version's owner.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The account ID of the version's owner.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccount = value; } /** *

The account ID of the version's owner.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccount = std::move(value); } /** *

The account ID of the version's owner.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccount.assign(value); } /** *

The account ID of the version's owner.

*/ inline DescribePackageVersionResult& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The account ID of the version's owner.

*/ inline DescribePackageVersionResult& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The account ID of the version's owner.

*/ inline DescribePackageVersionResult& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

The ARN of the package.

*/ inline const Aws::String& GetPackageArn() const{ return m_packageArn; } /** *

The ARN of the package.

*/ inline void SetPackageArn(const Aws::String& value) { m_packageArn = value; } /** *

The ARN of the package.

*/ inline void SetPackageArn(Aws::String&& value) { m_packageArn = std::move(value); } /** *

The ARN of the package.

*/ inline void SetPackageArn(const char* value) { m_packageArn.assign(value); } /** *

The ARN of the package.

*/ inline DescribePackageVersionResult& WithPackageArn(const Aws::String& value) { SetPackageArn(value); return *this;} /** *

The ARN of the package.

*/ inline DescribePackageVersionResult& WithPackageArn(Aws::String&& value) { SetPackageArn(std::move(value)); return *this;} /** *

The ARN of the package.

*/ inline DescribePackageVersionResult& WithPackageArn(const char* value) { SetPackageArn(value); return *this;} /** *

The version's ID.

*/ inline const Aws::String& GetPackageId() const{ return m_packageId; } /** *

The version's ID.

*/ inline void SetPackageId(const Aws::String& value) { m_packageId = value; } /** *

The version's ID.

*/ inline void SetPackageId(Aws::String&& value) { m_packageId = std::move(value); } /** *

The version's ID.

*/ inline void SetPackageId(const char* value) { m_packageId.assign(value); } /** *

The version's ID.

*/ inline DescribePackageVersionResult& WithPackageId(const Aws::String& value) { SetPackageId(value); return *this;} /** *

The version's ID.

*/ inline DescribePackageVersionResult& WithPackageId(Aws::String&& value) { SetPackageId(std::move(value)); return *this;} /** *

The version's ID.

*/ inline DescribePackageVersionResult& WithPackageId(const char* value) { SetPackageId(value); return *this;} /** *

The version's name.

*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *

The version's name.

*/ inline void SetPackageName(const Aws::String& value) { m_packageName = value; } /** *

The version's name.

*/ inline void SetPackageName(Aws::String&& value) { m_packageName = std::move(value); } /** *

The version's name.

*/ inline void SetPackageName(const char* value) { m_packageName.assign(value); } /** *

The version's name.

*/ inline DescribePackageVersionResult& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *

The version's name.

*/ inline DescribePackageVersionResult& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *

The version's name.

*/ inline DescribePackageVersionResult& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *

The version's version.

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

The version's version.

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

The version's version.

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

The version's version.

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

The version's version.

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

The version's version.

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

The version's version.

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

The version's patch version.

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

The version's patch version.

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

The version's patch version.

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

The version's patch version.

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

The version's patch version.

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

The version's patch version.

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

The version's patch version.

*/ inline DescribePackageVersionResult& WithPatchVersion(const char* value) { SetPatchVersion(value); return *this;} /** *

The version's registered time.

*/ inline const Aws::Utils::DateTime& GetRegisteredTime() const{ return m_registeredTime; } /** *

The version's registered time.

*/ inline void SetRegisteredTime(const Aws::Utils::DateTime& value) { m_registeredTime = value; } /** *

The version's registered time.

*/ inline void SetRegisteredTime(Aws::Utils::DateTime&& value) { m_registeredTime = std::move(value); } /** *

The version's registered time.

*/ inline DescribePackageVersionResult& WithRegisteredTime(const Aws::Utils::DateTime& value) { SetRegisteredTime(value); return *this;} /** *

The version's registered time.

*/ inline DescribePackageVersionResult& WithRegisteredTime(Aws::Utils::DateTime&& value) { SetRegisteredTime(std::move(value)); return *this;} /** *

The version's status.

*/ inline const PackageVersionStatus& GetStatus() const{ return m_status; } /** *

The version's status.

*/ inline void SetStatus(const PackageVersionStatus& value) { m_status = value; } /** *

The version's status.

*/ inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); } /** *

The version's status.

*/ inline DescribePackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;} /** *

The version's status.

*/ inline DescribePackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The version's status description.

*/ inline const Aws::String& GetStatusDescription() const{ return m_statusDescription; } /** *

The version's status description.

*/ inline void SetStatusDescription(const Aws::String& value) { m_statusDescription = value; } /** *

The version's status description.

*/ inline void SetStatusDescription(Aws::String&& value) { m_statusDescription = std::move(value); } /** *

The version's status description.

*/ inline void SetStatusDescription(const char* value) { m_statusDescription.assign(value); } /** *

The version's status description.

*/ inline DescribePackageVersionResult& WithStatusDescription(const Aws::String& value) { SetStatusDescription(value); return *this;} /** *

The version's status description.

*/ inline DescribePackageVersionResult& WithStatusDescription(Aws::String&& value) { SetStatusDescription(std::move(value)); return *this;} /** *

The version's status description.

*/ inline DescribePackageVersionResult& WithStatusDescription(const char* value) { SetStatusDescription(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribePackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_isLatestPatch; Aws::String m_ownerAccount; Aws::String m_packageArn; Aws::String m_packageId; Aws::String m_packageName; Aws::String m_packageVersion; Aws::String m_patchVersion; Aws::Utils::DateTime m_registeredTime; PackageVersionStatus m_status; Aws::String m_statusDescription; Aws::String m_requestId; }; } // namespace Model } // namespace Panorama } // namespace Aws