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

The result of a ListDomainNames operation. Contains the names of * all domains owned by this account and their respective engine * types.

See Also:

AWS * API Reference

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

List of domain names and respective engine types.

*/ inline const Aws::Vector& GetDomainNames() const{ return m_domainNames; } /** *

List of domain names and respective engine types.

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

List of domain names and respective engine types.

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

List of domain names and respective engine types.

*/ inline ListDomainNamesResult& WithDomainNames(const Aws::Vector& value) { SetDomainNames(value); return *this;} /** *

List of domain names and respective engine types.

*/ inline ListDomainNamesResult& WithDomainNames(Aws::Vector&& value) { SetDomainNames(std::move(value)); return *this;} /** *

List of domain names and respective engine types.

*/ inline ListDomainNamesResult& AddDomainNames(const DomainInfo& value) { m_domainNames.push_back(value); return *this; } /** *

List of domain names and respective engine types.

*/ inline ListDomainNamesResult& AddDomainNames(DomainInfo&& value) { m_domainNames.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 ListDomainNamesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListDomainNamesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListDomainNamesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_domainNames; Aws::String m_requestId; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws