/** * 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 DescribePackageResult { public: AWS_CODEARTIFACT_API DescribePackageResult(); AWS_CODEARTIFACT_API DescribePackageResult(const Aws::AmazonWebServiceResult& result); AWS_CODEARTIFACT_API DescribePackageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A PackageDescription * object that contains information about the requested package.

*/ inline const PackageDescription& GetPackage() const{ return m_package; } /** *

A PackageDescription * object that contains information about the requested package.

*/ inline void SetPackage(const PackageDescription& value) { m_package = value; } /** *

A PackageDescription * object that contains information about the requested package.

*/ inline void SetPackage(PackageDescription&& value) { m_package = std::move(value); } /** *

A PackageDescription * object that contains information about the requested package.

*/ inline DescribePackageResult& WithPackage(const PackageDescription& value) { SetPackage(value); return *this;} /** *

A PackageDescription * object that contains information about the requested package.

*/ inline DescribePackageResult& WithPackage(PackageDescription&& value) { SetPackage(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 DescribePackageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePackageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePackageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageDescription m_package; Aws::String m_requestId; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws