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

Provides information that defines an Elasticsearch endpoint.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; } /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; } /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(const Aws::String& value) { SetServiceAccessRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(Aws::String&& value) { SetServiceAccessRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) used by service to access the IAM role.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;} /** *

The endpoint for the Elasticsearch cluster.

*/ inline const Aws::String& GetEndpointUri() const{ return m_endpointUri; } /** *

The endpoint for the Elasticsearch cluster.

*/ inline bool EndpointUriHasBeenSet() const { return m_endpointUriHasBeenSet; } /** *

The endpoint for the Elasticsearch cluster.

*/ inline void SetEndpointUri(const Aws::String& value) { m_endpointUriHasBeenSet = true; m_endpointUri = value; } /** *

The endpoint for the Elasticsearch cluster.

*/ inline void SetEndpointUri(Aws::String&& value) { m_endpointUriHasBeenSet = true; m_endpointUri = std::move(value); } /** *

The endpoint for the Elasticsearch cluster.

*/ inline void SetEndpointUri(const char* value) { m_endpointUriHasBeenSet = true; m_endpointUri.assign(value); } /** *

The endpoint for the Elasticsearch cluster.

*/ inline ElasticsearchSettings& WithEndpointUri(const Aws::String& value) { SetEndpointUri(value); return *this;} /** *

The endpoint for the Elasticsearch cluster.

*/ inline ElasticsearchSettings& WithEndpointUri(Aws::String&& value) { SetEndpointUri(std::move(value)); return *this;} /** *

The endpoint for the Elasticsearch cluster.

*/ inline ElasticsearchSettings& WithEndpointUri(const char* value) { SetEndpointUri(value); return *this;} /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

*/ inline int GetFullLoadErrorPercentage() const{ return m_fullLoadErrorPercentage; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

*/ inline bool FullLoadErrorPercentageHasBeenSet() const { return m_fullLoadErrorPercentageHasBeenSet; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

*/ inline void SetFullLoadErrorPercentage(int value) { m_fullLoadErrorPercentageHasBeenSet = true; m_fullLoadErrorPercentage = value; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

*/ inline ElasticsearchSettings& WithFullLoadErrorPercentage(int value) { SetFullLoadErrorPercentage(value); return *this;} /** *

The maximum number of seconds for which DMS retries failed API requests to * the Elasticsearch cluster.

*/ inline int GetErrorRetryDuration() const{ return m_errorRetryDuration; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the Elasticsearch cluster.

*/ inline bool ErrorRetryDurationHasBeenSet() const { return m_errorRetryDurationHasBeenSet; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the Elasticsearch cluster.

*/ inline void SetErrorRetryDuration(int value) { m_errorRetryDurationHasBeenSet = true; m_errorRetryDuration = value; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the Elasticsearch cluster.

*/ inline ElasticsearchSettings& WithErrorRetryDuration(int value) { SetErrorRetryDuration(value); return *this;} private: Aws::String m_serviceAccessRoleArn; bool m_serviceAccessRoleArnHasBeenSet; Aws::String m_endpointUri; bool m_endpointUriHasBeenSet; int m_fullLoadErrorPercentage; bool m_fullLoadErrorPercentageHasBeenSet; int m_errorRetryDuration; bool m_errorRetryDurationHasBeenSet; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws