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

Describes an Elasticsearch data source configuration.

See * Also:

AWS * API Reference

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

The endpoint.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

The endpoint.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

The endpoint.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

The endpoint.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

The endpoint.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

The endpoint.

*/ inline ElasticsearchDataSourceConfig& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The endpoint.

*/ inline ElasticsearchDataSourceConfig& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The endpoint.

*/ inline ElasticsearchDataSourceConfig& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The AWS Region.

*/ inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; } /** *

The AWS Region.

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The AWS Region.

*/ inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The AWS Region.

*/ inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The AWS Region.

*/ inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); } /** *

The AWS Region.

*/ inline ElasticsearchDataSourceConfig& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;} /** *

The AWS Region.

*/ inline ElasticsearchDataSourceConfig& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

The AWS Region.

*/ inline ElasticsearchDataSourceConfig& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet; Aws::String m_awsRegion; bool m_awsRegionHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws