134 lines
3.5 KiB
C++
134 lines
3.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/appsync/AppSync_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace AppSync
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes an Elasticsearch data source configuration.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ElasticsearchDataSourceConfig">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline ElasticsearchDataSourceConfig& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline ElasticsearchDataSourceConfig& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The endpoint.</p>
|
|
*/
|
|
inline ElasticsearchDataSourceConfig& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline ElasticsearchDataSourceConfig& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
inline ElasticsearchDataSourceConfig& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The AWS Region.</p>
|
|
*/
|
|
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
|