190 lines
6.5 KiB
C++
190 lines
6.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/dms/DatabaseMigrationService_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 DatabaseMigrationService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides information that defines an Elasticsearch endpoint.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ElasticsearchSettings">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithServiceAccessRoleArn(const Aws::String& value) { SetServiceAccessRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithServiceAccessRoleArn(Aws::String&& value) { SetServiceAccessRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetEndpointUri() const{ return m_endpointUri; }
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline bool EndpointUriHasBeenSet() const { return m_endpointUriHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline void SetEndpointUri(const Aws::String& value) { m_endpointUriHasBeenSet = true; m_endpointUri = value; }
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline void SetEndpointUri(Aws::String&& value) { m_endpointUriHasBeenSet = true; m_endpointUri = std::move(value); }
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline void SetEndpointUri(const char* value) { m_endpointUriHasBeenSet = true; m_endpointUri.assign(value); }
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithEndpointUri(const Aws::String& value) { SetEndpointUri(value); return *this;}
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithEndpointUri(Aws::String&& value) { SetEndpointUri(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The endpoint for the Elasticsearch cluster.</p>
|
|
*/
|
|
inline ElasticsearchSettings& WithEndpointUri(const char* value) { SetEndpointUri(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum percentage of records that can fail to be written before a full
|
|
* load operation stops. </p>
|
|
*/
|
|
inline int GetFullLoadErrorPercentage() const{ return m_fullLoadErrorPercentage; }
|
|
|
|
/**
|
|
* <p>The maximum percentage of records that can fail to be written before a full
|
|
* load operation stops. </p>
|
|
*/
|
|
inline bool FullLoadErrorPercentageHasBeenSet() const { return m_fullLoadErrorPercentageHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum percentage of records that can fail to be written before a full
|
|
* load operation stops. </p>
|
|
*/
|
|
inline void SetFullLoadErrorPercentage(int value) { m_fullLoadErrorPercentageHasBeenSet = true; m_fullLoadErrorPercentage = value; }
|
|
|
|
/**
|
|
* <p>The maximum percentage of records that can fail to be written before a full
|
|
* load operation stops. </p>
|
|
*/
|
|
inline ElasticsearchSettings& WithFullLoadErrorPercentage(int value) { SetFullLoadErrorPercentage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum number of seconds for which DMS retries failed API requests to
|
|
* the Elasticsearch cluster.</p>
|
|
*/
|
|
inline int GetErrorRetryDuration() const{ return m_errorRetryDuration; }
|
|
|
|
/**
|
|
* <p>The maximum number of seconds for which DMS retries failed API requests to
|
|
* the Elasticsearch cluster.</p>
|
|
*/
|
|
inline bool ErrorRetryDurationHasBeenSet() const { return m_errorRetryDurationHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum number of seconds for which DMS retries failed API requests to
|
|
* the Elasticsearch cluster.</p>
|
|
*/
|
|
inline void SetErrorRetryDuration(int value) { m_errorRetryDurationHasBeenSet = true; m_errorRetryDuration = value; }
|
|
|
|
/**
|
|
* <p>The maximum number of seconds for which DMS retries failed API requests to
|
|
* the Elasticsearch cluster.</p>
|
|
*/
|
|
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
|