/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

Information about an OpenSearch Service domain.

See Also:

AWS * API Reference

*/ class DomainInfo { public: AWS_OPENSEARCHSERVICE_API DomainInfo(); AWS_OPENSEARCHSERVICE_API DomainInfo(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API DomainInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Name of the domain.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

Name of the domain.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

Name of the domain.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

Name of the domain.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

Name of the domain.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

Name of the domain.

*/ inline DomainInfo& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

Name of the domain.

*/ inline DomainInfo& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

Name of the domain.

*/ inline DomainInfo& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline const EngineType& GetEngineType() const{ return m_engineType; } /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; } /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; } /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); } /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline DomainInfo& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;} /** *

The type of search engine that the domain is running.OpenSearch * for an OpenSearch engine, or Elasticsearch for a legacy * Elasticsearch OSS engine.

*/ inline DomainInfo& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; EngineType m_engineType; bool m_engineTypeHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws