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

The destination description in Amazon ES.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline ElasticsearchDestinationDescription& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline ElasticsearchDestinationDescription& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS credentials. For more information, * see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline ElasticsearchDestinationDescription& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline const Aws::String& GetDomainARN() const{ return m_domainARN; } /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline bool DomainARNHasBeenSet() const { return m_domainARNHasBeenSet; } /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline void SetDomainARN(const Aws::String& value) { m_domainARNHasBeenSet = true; m_domainARN = value; } /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline void SetDomainARN(Aws::String&& value) { m_domainARNHasBeenSet = true; m_domainARN = std::move(value); } /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline void SetDomainARN(const char* value) { m_domainARNHasBeenSet = true; m_domainARN.assign(value); } /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithDomainARN(const Aws::String& value) { SetDomainARN(value); return *this;} /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithDomainARN(Aws::String&& value) { SetDomainARN(std::move(value)); return *this;} /** *

The ARN of the Amazon ES domain. For more information, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

Kinesis Data * Firehose uses either ClusterEndpoint or DomainARN to * send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithDomainARN(const char* value) { SetDomainARN(value); return *this;} /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline const Aws::String& GetClusterEndpoint() const{ return m_clusterEndpoint; } /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline bool ClusterEndpointHasBeenSet() const { return m_clusterEndpointHasBeenSet; } /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline void SetClusterEndpoint(const Aws::String& value) { m_clusterEndpointHasBeenSet = true; m_clusterEndpoint = value; } /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline void SetClusterEndpoint(Aws::String&& value) { m_clusterEndpointHasBeenSet = true; m_clusterEndpoint = std::move(value); } /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline void SetClusterEndpoint(const char* value) { m_clusterEndpointHasBeenSet = true; m_clusterEndpoint.assign(value); } /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithClusterEndpoint(const Aws::String& value) { SetClusterEndpoint(value); return *this;} /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithClusterEndpoint(Aws::String&& value) { SetClusterEndpoint(std::move(value)); return *this;} /** *

The endpoint to use when communicating with the cluster. Kinesis Data * Firehose uses either this ClusterEndpoint or the * DomainARN field to send data to Amazon ES.

*/ inline ElasticsearchDestinationDescription& WithClusterEndpoint(const char* value) { SetClusterEndpoint(value); return *this;} /** *

The Elasticsearch index name.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The Elasticsearch index name.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The Elasticsearch index name.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The Elasticsearch index name.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The Elasticsearch index name.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The Elasticsearch index name.

*/ inline ElasticsearchDestinationDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The Elasticsearch index name.

*/ inline ElasticsearchDestinationDescription& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The Elasticsearch index name.

*/ inline ElasticsearchDestinationDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline const Aws::String& GetTypeName() const{ return m_typeName; } /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline ElasticsearchDestinationDescription& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline ElasticsearchDestinationDescription& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} /** *

The Elasticsearch type name. This applies to Elasticsearch 6.x and lower * versions. For Elasticsearch 7.x, there's no value for TypeName.

*/ inline ElasticsearchDestinationDescription& WithTypeName(const char* value) { SetTypeName(value); return *this;} /** *

The Elasticsearch index rotation period

*/ inline const ElasticsearchIndexRotationPeriod& GetIndexRotationPeriod() const{ return m_indexRotationPeriod; } /** *

The Elasticsearch index rotation period

*/ inline bool IndexRotationPeriodHasBeenSet() const { return m_indexRotationPeriodHasBeenSet; } /** *

The Elasticsearch index rotation period

*/ inline void SetIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; } /** *

The Elasticsearch index rotation period

*/ inline void SetIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = std::move(value); } /** *

The Elasticsearch index rotation period

*/ inline ElasticsearchDestinationDescription& WithIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { SetIndexRotationPeriod(value); return *this;} /** *

The Elasticsearch index rotation period

*/ inline ElasticsearchDestinationDescription& WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { SetIndexRotationPeriod(std::move(value)); return *this;} /** *

The buffering options.

*/ inline const ElasticsearchBufferingHints& GetBufferingHints() const{ return m_bufferingHints; } /** *

The buffering options.

*/ inline bool BufferingHintsHasBeenSet() const { return m_bufferingHintsHasBeenSet; } /** *

The buffering options.

*/ inline void SetBufferingHints(const ElasticsearchBufferingHints& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; } /** *

The buffering options.

*/ inline void SetBufferingHints(ElasticsearchBufferingHints&& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = std::move(value); } /** *

The buffering options.

*/ inline ElasticsearchDestinationDescription& WithBufferingHints(const ElasticsearchBufferingHints& value) { SetBufferingHints(value); return *this;} /** *

The buffering options.

*/ inline ElasticsearchDestinationDescription& WithBufferingHints(ElasticsearchBufferingHints&& value) { SetBufferingHints(std::move(value)); return *this;} /** *

The Amazon ES retry options.

*/ inline const ElasticsearchRetryOptions& GetRetryOptions() const{ return m_retryOptions; } /** *

The Amazon ES retry options.

*/ inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; } /** *

The Amazon ES retry options.

*/ inline void SetRetryOptions(const ElasticsearchRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; } /** *

The Amazon ES retry options.

*/ inline void SetRetryOptions(ElasticsearchRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = std::move(value); } /** *

The Amazon ES retry options.

*/ inline ElasticsearchDestinationDescription& WithRetryOptions(const ElasticsearchRetryOptions& value) { SetRetryOptions(value); return *this;} /** *

The Amazon ES retry options.

*/ inline ElasticsearchDestinationDescription& WithRetryOptions(ElasticsearchRetryOptions&& value) { SetRetryOptions(std::move(value)); return *this;} /** *

The Amazon S3 backup mode.

*/ inline const ElasticsearchS3BackupMode& GetS3BackupMode() const{ return m_s3BackupMode; } /** *

The Amazon S3 backup mode.

*/ inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; } /** *

The Amazon S3 backup mode.

*/ inline void SetS3BackupMode(const ElasticsearchS3BackupMode& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; } /** *

The Amazon S3 backup mode.

*/ inline void SetS3BackupMode(ElasticsearchS3BackupMode&& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = std::move(value); } /** *

The Amazon S3 backup mode.

*/ inline ElasticsearchDestinationDescription& WithS3BackupMode(const ElasticsearchS3BackupMode& value) { SetS3BackupMode(value); return *this;} /** *

The Amazon S3 backup mode.

*/ inline ElasticsearchDestinationDescription& WithS3BackupMode(ElasticsearchS3BackupMode&& value) { SetS3BackupMode(std::move(value)); return *this;} /** *

The Amazon S3 destination.

*/ inline const S3DestinationDescription& GetS3DestinationDescription() const{ return m_s3DestinationDescription; } /** *

The Amazon S3 destination.

*/ inline bool S3DestinationDescriptionHasBeenSet() const { return m_s3DestinationDescriptionHasBeenSet; } /** *

The Amazon S3 destination.

*/ inline void SetS3DestinationDescription(const S3DestinationDescription& value) { m_s3DestinationDescriptionHasBeenSet = true; m_s3DestinationDescription = value; } /** *

The Amazon S3 destination.

*/ inline void SetS3DestinationDescription(S3DestinationDescription&& value) { m_s3DestinationDescriptionHasBeenSet = true; m_s3DestinationDescription = std::move(value); } /** *

The Amazon S3 destination.

*/ inline ElasticsearchDestinationDescription& WithS3DestinationDescription(const S3DestinationDescription& value) { SetS3DestinationDescription(value); return *this;} /** *

The Amazon S3 destination.

*/ inline ElasticsearchDestinationDescription& WithS3DestinationDescription(S3DestinationDescription&& value) { SetS3DestinationDescription(std::move(value)); return *this;} /** *

The data processing configuration.

*/ inline const ProcessingConfiguration& GetProcessingConfiguration() const{ return m_processingConfiguration; } /** *

The data processing configuration.

*/ inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; } /** *

The data processing configuration.

*/ inline void SetProcessingConfiguration(const ProcessingConfiguration& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = value; } /** *

The data processing configuration.

*/ inline void SetProcessingConfiguration(ProcessingConfiguration&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::move(value); } /** *

The data processing configuration.

*/ inline ElasticsearchDestinationDescription& WithProcessingConfiguration(const ProcessingConfiguration& value) { SetProcessingConfiguration(value); return *this;} /** *

The data processing configuration.

*/ inline ElasticsearchDestinationDescription& WithProcessingConfiguration(ProcessingConfiguration&& value) { SetProcessingConfiguration(std::move(value)); return *this;} /** *

The Amazon CloudWatch logging options.

*/ inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; } /** *

The Amazon CloudWatch logging options.

*/ inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; } /** *

The Amazon CloudWatch logging options.

*/ inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; } /** *

The Amazon CloudWatch logging options.

*/ inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); } /** *

The Amazon CloudWatch logging options.

*/ inline ElasticsearchDestinationDescription& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;} /** *

The Amazon CloudWatch logging options.

*/ inline ElasticsearchDestinationDescription& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(std::move(value)); return *this;} /** *

The details of the VPC of the Amazon ES destination.

*/ inline const VpcConfigurationDescription& GetVpcConfigurationDescription() const{ return m_vpcConfigurationDescription; } /** *

The details of the VPC of the Amazon ES destination.

*/ inline bool VpcConfigurationDescriptionHasBeenSet() const { return m_vpcConfigurationDescriptionHasBeenSet; } /** *

The details of the VPC of the Amazon ES destination.

*/ inline void SetVpcConfigurationDescription(const VpcConfigurationDescription& value) { m_vpcConfigurationDescriptionHasBeenSet = true; m_vpcConfigurationDescription = value; } /** *

The details of the VPC of the Amazon ES destination.

*/ inline void SetVpcConfigurationDescription(VpcConfigurationDescription&& value) { m_vpcConfigurationDescriptionHasBeenSet = true; m_vpcConfigurationDescription = std::move(value); } /** *

The details of the VPC of the Amazon ES destination.

*/ inline ElasticsearchDestinationDescription& WithVpcConfigurationDescription(const VpcConfigurationDescription& value) { SetVpcConfigurationDescription(value); return *this;} /** *

The details of the VPC of the Amazon ES destination.

*/ inline ElasticsearchDestinationDescription& WithVpcConfigurationDescription(VpcConfigurationDescription&& value) { SetVpcConfigurationDescription(std::move(value)); return *this;} private: Aws::String m_roleARN; bool m_roleARNHasBeenSet; Aws::String m_domainARN; bool m_domainARNHasBeenSet; Aws::String m_clusterEndpoint; bool m_clusterEndpointHasBeenSet; Aws::String m_indexName; bool m_indexNameHasBeenSet; Aws::String m_typeName; bool m_typeNameHasBeenSet; ElasticsearchIndexRotationPeriod m_indexRotationPeriod; bool m_indexRotationPeriodHasBeenSet; ElasticsearchBufferingHints m_bufferingHints; bool m_bufferingHintsHasBeenSet; ElasticsearchRetryOptions m_retryOptions; bool m_retryOptionsHasBeenSet; ElasticsearchS3BackupMode m_s3BackupMode; bool m_s3BackupModeHasBeenSet; S3DestinationDescription m_s3DestinationDescription; bool m_s3DestinationDescriptionHasBeenSet; ProcessingConfiguration m_processingConfiguration; bool m_processingConfigurationHasBeenSet; CloudWatchLoggingOptions m_cloudWatchLoggingOptions; bool m_cloudWatchLoggingOptionsHasBeenSet; VpcConfigurationDescription m_vpcConfigurationDescription; bool m_vpcConfigurationDescriptionHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws