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

Container for the parameters to the DescribeDomains * operation.

See Also:

AWS * API Reference

*/ class DescribeDomainsRequest : public OpenSearchServiceRequest { public: AWS_OPENSEARCHSERVICE_API DescribeDomainsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeDomains"; } AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

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

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

*/ inline bool DomainNamesHasBeenSet() const { return m_domainNamesHasBeenSet; } /** *

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

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

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

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

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

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

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

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

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

*/ inline DescribeDomainsRequest& AddDomainNames(const Aws::String& value) { m_domainNamesHasBeenSet = true; m_domainNames.push_back(value); return *this; } /** *

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

*/ inline DescribeDomainsRequest& AddDomainNames(Aws::String&& value) { m_domainNamesHasBeenSet = true; m_domainNames.push_back(std::move(value)); return *this; } /** *

Array of OpenSearch Service domain names that you want information about. If * you don't specify any domains, OpenSearch Service returns information about all * domains owned by the account.

*/ inline DescribeDomainsRequest& AddDomainNames(const char* value) { m_domainNamesHasBeenSet = true; m_domainNames.push_back(value); return *this; } private: Aws::Vector m_domainNames; bool m_domainNamesHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws