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

Container for the response returned by the CreatePackage * operation.

See Also:

AWS * API Reference

*/ class CreatePackageResult { public: AWS_OPENSEARCHSERVICE_API CreatePackageResult(); AWS_OPENSEARCHSERVICE_API CreatePackageResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVICE_API CreatePackageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Basic information about an OpenSearch Service package.

*/ inline const PackageDetails& GetPackageDetails() const{ return m_packageDetails; } /** *

Basic information about an OpenSearch Service package.

*/ inline void SetPackageDetails(const PackageDetails& value) { m_packageDetails = value; } /** *

Basic information about an OpenSearch Service package.

*/ inline void SetPackageDetails(PackageDetails&& value) { m_packageDetails = std::move(value); } /** *

Basic information about an OpenSearch Service package.

*/ inline CreatePackageResult& WithPackageDetails(const PackageDetails& value) { SetPackageDetails(value); return *this;} /** *

Basic information about an OpenSearch Service package.

*/ inline CreatePackageResult& WithPackageDetails(PackageDetails&& value) { SetPackageDetails(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 CreatePackageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePackageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePackageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageDetails m_packageDetails; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws