/** * 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 { /** *

Contains the status of the specified domains or all domains owned by the * account.

See Also:

AWS * API Reference

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

The status of the requested domains.

*/ inline const Aws::Vector& GetDomainStatusList() const{ return m_domainStatusList; } /** *

The status of the requested domains.

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

The status of the requested domains.

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

The status of the requested domains.

*/ inline DescribeDomainsResult& WithDomainStatusList(const Aws::Vector& value) { SetDomainStatusList(value); return *this;} /** *

The status of the requested domains.

*/ inline DescribeDomainsResult& WithDomainStatusList(Aws::Vector&& value) { SetDomainStatusList(std::move(value)); return *this;} /** *

The status of the requested domains.

*/ inline DescribeDomainsResult& AddDomainStatusList(const DomainStatus& value) { m_domainStatusList.push_back(value); return *this; } /** *

The status of the requested domains.

*/ inline DescribeDomainsResult& AddDomainStatusList(DomainStatus&& value) { m_domainStatusList.push_back(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 DescribeDomainsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeDomainsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeDomainsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_domainStatusList; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws