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

A PackageVersionDescription * object that contains information about the requested package version.

*/ inline const PackageVersionDescription& GetPackageVersion() const{ return m_packageVersion; } /** *

A PackageVersionDescription * object that contains information about the requested package version.

*/ inline void SetPackageVersion(const PackageVersionDescription& value) { m_packageVersion = value; } /** *

A PackageVersionDescription * object that contains information about the requested package version.

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

A PackageVersionDescription * object that contains information about the requested package version.

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

A PackageVersionDescription * object that contains information about the requested package version.

*/ inline DescribePackageVersionResult& WithPackageVersion(PackageVersionDescription&& value) { SetPackageVersion(std::move(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: PackageVersionDescription m_packageVersion; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws