commonMain.aws.sdk.kotlin.services.firehose.model.ElasticsearchDestinationDescription.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The destination description in Amazon ES.
*/
public class ElasticsearchDestinationDescription private constructor(builder: Builder) {
/**
* The buffering options.
*/
public val bufferingHints: aws.sdk.kotlin.services.firehose.model.ElasticsearchBufferingHints? = builder.bufferingHints
/**
* The Amazon CloudWatch logging options.
*/
public val cloudWatchLoggingOptions: aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions? = builder.cloudWatchLoggingOptions
/**
* The endpoint to use when communicating with the cluster. Firehose uses either this `ClusterEndpoint` or the `DomainARN` field to send data to Amazon ES.
*/
public val clusterEndpoint: kotlin.String? = builder.clusterEndpoint
/**
* Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
*/
public val documentIdOptions: aws.sdk.kotlin.services.firehose.model.DocumentIdOptions? = builder.documentIdOptions
/**
* The ARN of the Amazon ES domain. For more information, see [Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
*
* Firehose uses either `ClusterEndpoint` or `DomainARN` to send data to Amazon ES.
*/
public val domainArn: kotlin.String? = builder.domainArn
/**
* The Elasticsearch index name.
*/
public val indexName: kotlin.String? = builder.indexName
/**
* The Elasticsearch index rotation period
*/
public val indexRotationPeriod: aws.sdk.kotlin.services.firehose.model.ElasticsearchIndexRotationPeriod? = builder.indexRotationPeriod
/**
* The data processing configuration.
*/
public val processingConfiguration: aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration? = builder.processingConfiguration
/**
* The Amazon ES retry options.
*/
public val retryOptions: aws.sdk.kotlin.services.firehose.model.ElasticsearchRetryOptions? = builder.retryOptions
/**
* The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see [Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The Amazon S3 backup mode.
*/
public val s3BackupMode: aws.sdk.kotlin.services.firehose.model.ElasticsearchS3BackupMode? = builder.s3BackupMode
/**
* The Amazon S3 destination.
*/
public val s3DestinationDescription: aws.sdk.kotlin.services.firehose.model.S3DestinationDescription? = builder.s3DestinationDescription
/**
* The Elasticsearch type name. This applies to Elasticsearch 6.x and lower versions. For Elasticsearch 7.x and OpenSearch Service 1.x, there's no value for `TypeName`.
*/
public val typeName: kotlin.String? = builder.typeName
/**
* The details of the VPC of the Amazon OpenSearch or the Amazon OpenSearch Serverless destination.
*/
public val vpcConfigurationDescription: aws.sdk.kotlin.services.firehose.model.VpcConfigurationDescription? = builder.vpcConfigurationDescription
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.ElasticsearchDestinationDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ElasticsearchDestinationDescription(")
append("bufferingHints=$bufferingHints,")
append("cloudWatchLoggingOptions=$cloudWatchLoggingOptions,")
append("clusterEndpoint=$clusterEndpoint,")
append("documentIdOptions=$documentIdOptions,")
append("domainArn=$domainArn,")
append("indexName=$indexName,")
append("indexRotationPeriod=$indexRotationPeriod,")
append("processingConfiguration=$processingConfiguration,")
append("retryOptions=$retryOptions,")
append("roleArn=$roleArn,")
append("s3BackupMode=$s3BackupMode,")
append("s3DestinationDescription=$s3DestinationDescription,")
append("typeName=$typeName,")
append("vpcConfigurationDescription=$vpcConfigurationDescription")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bufferingHints?.hashCode() ?: 0
result = 31 * result + (cloudWatchLoggingOptions?.hashCode() ?: 0)
result = 31 * result + (clusterEndpoint?.hashCode() ?: 0)
result = 31 * result + (documentIdOptions?.hashCode() ?: 0)
result = 31 * result + (domainArn?.hashCode() ?: 0)
result = 31 * result + (indexName?.hashCode() ?: 0)
result = 31 * result + (indexRotationPeriod?.hashCode() ?: 0)
result = 31 * result + (processingConfiguration?.hashCode() ?: 0)
result = 31 * result + (retryOptions?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (s3BackupMode?.hashCode() ?: 0)
result = 31 * result + (s3DestinationDescription?.hashCode() ?: 0)
result = 31 * result + (typeName?.hashCode() ?: 0)
result = 31 * result + (vpcConfigurationDescription?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as ElasticsearchDestinationDescription
if (bufferingHints != other.bufferingHints) return false
if (cloudWatchLoggingOptions != other.cloudWatchLoggingOptions) return false
if (clusterEndpoint != other.clusterEndpoint) return false
if (documentIdOptions != other.documentIdOptions) return false
if (domainArn != other.domainArn) return false
if (indexName != other.indexName) return false
if (indexRotationPeriod != other.indexRotationPeriod) return false
if (processingConfiguration != other.processingConfiguration) return false
if (retryOptions != other.retryOptions) return false
if (roleArn != other.roleArn) return false
if (s3BackupMode != other.s3BackupMode) return false
if (s3DestinationDescription != other.s3DestinationDescription) return false
if (typeName != other.typeName) return false
if (vpcConfigurationDescription != other.vpcConfigurationDescription) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.ElasticsearchDestinationDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The buffering options.
*/
public var bufferingHints: aws.sdk.kotlin.services.firehose.model.ElasticsearchBufferingHints? = null
/**
* The Amazon CloudWatch logging options.
*/
public var cloudWatchLoggingOptions: aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions? = null
/**
* The endpoint to use when communicating with the cluster. Firehose uses either this `ClusterEndpoint` or the `DomainARN` field to send data to Amazon ES.
*/
public var clusterEndpoint: kotlin.String? = null
/**
* Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
*/
public var documentIdOptions: aws.sdk.kotlin.services.firehose.model.DocumentIdOptions? = null
/**
* The ARN of the Amazon ES domain. For more information, see [Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
*
* Firehose uses either `ClusterEndpoint` or `DomainARN` to send data to Amazon ES.
*/
public var domainArn: kotlin.String? = null
/**
* The Elasticsearch index name.
*/
public var indexName: kotlin.String? = null
/**
* The Elasticsearch index rotation period
*/
public var indexRotationPeriod: aws.sdk.kotlin.services.firehose.model.ElasticsearchIndexRotationPeriod? = null
/**
* The data processing configuration.
*/
public var processingConfiguration: aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration? = null
/**
* The Amazon ES retry options.
*/
public var retryOptions: aws.sdk.kotlin.services.firehose.model.ElasticsearchRetryOptions? = null
/**
* The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see [Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
*/
public var roleArn: kotlin.String? = null
/**
* The Amazon S3 backup mode.
*/
public var s3BackupMode: aws.sdk.kotlin.services.firehose.model.ElasticsearchS3BackupMode? = null
/**
* The Amazon S3 destination.
*/
public var s3DestinationDescription: aws.sdk.kotlin.services.firehose.model.S3DestinationDescription? = null
/**
* The Elasticsearch type name. This applies to Elasticsearch 6.x and lower versions. For Elasticsearch 7.x and OpenSearch Service 1.x, there's no value for `TypeName`.
*/
public var typeName: kotlin.String? = null
/**
* The details of the VPC of the Amazon OpenSearch or the Amazon OpenSearch Serverless destination.
*/
public var vpcConfigurationDescription: aws.sdk.kotlin.services.firehose.model.VpcConfigurationDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.ElasticsearchDestinationDescription) : this() {
this.bufferingHints = x.bufferingHints
this.cloudWatchLoggingOptions = x.cloudWatchLoggingOptions
this.clusterEndpoint = x.clusterEndpoint
this.documentIdOptions = x.documentIdOptions
this.domainArn = x.domainArn
this.indexName = x.indexName
this.indexRotationPeriod = x.indexRotationPeriod
this.processingConfiguration = x.processingConfiguration
this.retryOptions = x.retryOptions
this.roleArn = x.roleArn
this.s3BackupMode = x.s3BackupMode
this.s3DestinationDescription = x.s3DestinationDescription
this.typeName = x.typeName
this.vpcConfigurationDescription = x.vpcConfigurationDescription
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.ElasticsearchDestinationDescription = ElasticsearchDestinationDescription(this)
/**
* construct an [aws.sdk.kotlin.services.firehose.model.ElasticsearchBufferingHints] inside the given [block]
*/
public fun bufferingHints(block: aws.sdk.kotlin.services.firehose.model.ElasticsearchBufferingHints.Builder.() -> kotlin.Unit) {
this.bufferingHints = aws.sdk.kotlin.services.firehose.model.ElasticsearchBufferingHints.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions] inside the given [block]
*/
public fun cloudWatchLoggingOptions(block: aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions.Builder.() -> kotlin.Unit) {
this.cloudWatchLoggingOptions = aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DocumentIdOptions] inside the given [block]
*/
public fun documentIdOptions(block: aws.sdk.kotlin.services.firehose.model.DocumentIdOptions.Builder.() -> kotlin.Unit) {
this.documentIdOptions = aws.sdk.kotlin.services.firehose.model.DocumentIdOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration] inside the given [block]
*/
public fun processingConfiguration(block: aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration.Builder.() -> kotlin.Unit) {
this.processingConfiguration = aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.ElasticsearchRetryOptions] inside the given [block]
*/
public fun retryOptions(block: aws.sdk.kotlin.services.firehose.model.ElasticsearchRetryOptions.Builder.() -> kotlin.Unit) {
this.retryOptions = aws.sdk.kotlin.services.firehose.model.ElasticsearchRetryOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.S3DestinationDescription] inside the given [block]
*/
public fun s3DestinationDescription(block: aws.sdk.kotlin.services.firehose.model.S3DestinationDescription.Builder.() -> kotlin.Unit) {
this.s3DestinationDescription = aws.sdk.kotlin.services.firehose.model.S3DestinationDescription.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.VpcConfigurationDescription] inside the given [block]
*/
public fun vpcConfigurationDescription(block: aws.sdk.kotlin.services.firehose.model.VpcConfigurationDescription.Builder.() -> kotlin.Unit) {
this.vpcConfigurationDescription = aws.sdk.kotlin.services.firehose.model.VpcConfigurationDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}