/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudSearch { namespace Model { /** *

The result of a ListDomainNames request. Contains a list of the * domains owned by an account.

See Also:

AWS * API Reference

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

The names of the search domains owned by an account.

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

The names of the search domains owned by an account.

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

The names of the search domains owned by an account.

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

The names of the search domains owned by an account.

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

The names of the search domains owned by an account.

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

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(const Aws::String& key, const Aws::String& value) { m_domainNames.emplace(key, value); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(Aws::String&& key, const Aws::String& value) { m_domainNames.emplace(std::move(key), value); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(const Aws::String& key, Aws::String&& value) { m_domainNames.emplace(key, std::move(value)); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(Aws::String&& key, Aws::String&& value) { m_domainNames.emplace(std::move(key), std::move(value)); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(const char* key, Aws::String&& value) { m_domainNames.emplace(key, std::move(value)); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(Aws::String&& key, const char* value) { m_domainNames.emplace(std::move(key), value); return *this; } /** *

The names of the search domains owned by an account.

*/ inline ListDomainNamesResult& AddDomainNames(const char* key, const char* value) { m_domainNames.emplace(key, value); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ListDomainNamesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ListDomainNamesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Map m_domainNames; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudSearch } // namespace Aws