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

Container for the response parameters to the * ListPackagesForDomain operation.

See Also:

AWS * API Reference

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

List of all packages associated with a domain.

*/ inline const Aws::Vector& GetDomainPackageDetailsList() const{ return m_domainPackageDetailsList; } /** *

List of all packages associated with a domain.

*/ inline void SetDomainPackageDetailsList(const Aws::Vector& value) { m_domainPackageDetailsList = value; } /** *

List of all packages associated with a domain.

*/ inline void SetDomainPackageDetailsList(Aws::Vector&& value) { m_domainPackageDetailsList = std::move(value); } /** *

List of all packages associated with a domain.

*/ inline ListPackagesForDomainResult& WithDomainPackageDetailsList(const Aws::Vector& value) { SetDomainPackageDetailsList(value); return *this;} /** *

List of all packages associated with a domain.

*/ inline ListPackagesForDomainResult& WithDomainPackageDetailsList(Aws::Vector&& value) { SetDomainPackageDetailsList(std::move(value)); return *this;} /** *

List of all packages associated with a domain.

*/ inline ListPackagesForDomainResult& AddDomainPackageDetailsList(const DomainPackageDetails& value) { m_domainPackageDetailsList.push_back(value); return *this; } /** *

List of all packages associated with a domain.

*/ inline ListPackagesForDomainResult& AddDomainPackageDetailsList(DomainPackageDetails&& value) { m_domainPackageDetailsList.push_back(std::move(value)); return *this; } /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

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

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline ListPackagesForDomainResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline ListPackagesForDomainResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

When nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. * Make the call again using the returned token to retrieve the next page.

*/ inline ListPackagesForDomainResult& WithNextToken(const char* value) { SetNextToken(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 ListPackagesForDomainResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPackagesForDomainResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPackagesForDomainResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_domainPackageDetailsList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws