All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessDestinationDescription.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// 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 the Serverless offering for Amazon OpenSearch Service.
 */
public class AmazonOpenSearchServerlessDestinationDescription private constructor(builder: Builder) {
    /**
     * The buffering options.
     */
    public val bufferingHints: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessBufferingHints? = builder.bufferingHints
    /**
     * Describes the Amazon CloudWatch logging options for your delivery stream.
     */
    public val cloudWatchLoggingOptions: aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions? = builder.cloudWatchLoggingOptions
    /**
     * The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
     */
    public val collectionEndpoint: kotlin.String? = builder.collectionEndpoint
    /**
     * The Serverless offering for Amazon OpenSearch Service index name.
     */
    public val indexName: kotlin.String? = builder.indexName
    /**
     * Describes a data processing configuration.
     */
    public val processingConfiguration: aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration? = builder.processingConfiguration
    /**
     * The Serverless offering for Amazon OpenSearch Service retry options.
     */
    public val retryOptions: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessRetryOptions? = builder.retryOptions
    /**
     * The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The Amazon S3 backup mode.
     */
    public val s3BackupMode: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessS3BackupMode? = builder.s3BackupMode
    /**
     * Describes a destination in Amazon S3.
     */
    public val s3DestinationDescription: aws.sdk.kotlin.services.firehose.model.S3DestinationDescription? = builder.s3DestinationDescription
    /**
     * The details of the VPC of the Amazon ES 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.AmazonOpenSearchServerlessDestinationDescription = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AmazonOpenSearchServerlessDestinationDescription(")
        append("bufferingHints=$bufferingHints,")
        append("cloudWatchLoggingOptions=$cloudWatchLoggingOptions,")
        append("collectionEndpoint=$collectionEndpoint,")
        append("indexName=$indexName,")
        append("processingConfiguration=$processingConfiguration,")
        append("retryOptions=$retryOptions,")
        append("roleArn=$roleArn,")
        append("s3BackupMode=$s3BackupMode,")
        append("s3DestinationDescription=$s3DestinationDescription,")
        append("vpcConfigurationDescription=$vpcConfigurationDescription")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bufferingHints?.hashCode() ?: 0
        result = 31 * result + (cloudWatchLoggingOptions?.hashCode() ?: 0)
        result = 31 * result + (collectionEndpoint?.hashCode() ?: 0)
        result = 31 * result + (indexName?.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 + (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 AmazonOpenSearchServerlessDestinationDescription

        if (bufferingHints != other.bufferingHints) return false
        if (cloudWatchLoggingOptions != other.cloudWatchLoggingOptions) return false
        if (collectionEndpoint != other.collectionEndpoint) return false
        if (indexName != other.indexName) 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 (vpcConfigurationDescription != other.vpcConfigurationDescription) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessDestinationDescription = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The buffering options.
         */
        public var bufferingHints: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessBufferingHints? = null
        /**
         * Describes the Amazon CloudWatch logging options for your delivery stream.
         */
        public var cloudWatchLoggingOptions: aws.sdk.kotlin.services.firehose.model.CloudWatchLoggingOptions? = null
        /**
         * The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
         */
        public var collectionEndpoint: kotlin.String? = null
        /**
         * The Serverless offering for Amazon OpenSearch Service index name.
         */
        public var indexName: kotlin.String? = null
        /**
         * Describes a data processing configuration.
         */
        public var processingConfiguration: aws.sdk.kotlin.services.firehose.model.ProcessingConfiguration? = null
        /**
         * The Serverless offering for Amazon OpenSearch Service retry options.
         */
        public var retryOptions: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessRetryOptions? = null
        /**
         * The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The Amazon S3 backup mode.
         */
        public var s3BackupMode: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessS3BackupMode? = null
        /**
         * Describes a destination in Amazon S3.
         */
        public var s3DestinationDescription: aws.sdk.kotlin.services.firehose.model.S3DestinationDescription? = null
        /**
         * The details of the VPC of the Amazon ES 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.AmazonOpenSearchServerlessDestinationDescription) : this() {
            this.bufferingHints = x.bufferingHints
            this.cloudWatchLoggingOptions = x.cloudWatchLoggingOptions
            this.collectionEndpoint = x.collectionEndpoint
            this.indexName = x.indexName
            this.processingConfiguration = x.processingConfiguration
            this.retryOptions = x.retryOptions
            this.roleArn = x.roleArn
            this.s3BackupMode = x.s3BackupMode
            this.s3DestinationDescription = x.s3DestinationDescription
            this.vpcConfigurationDescription = x.vpcConfigurationDescription
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessDestinationDescription = AmazonOpenSearchServerlessDestinationDescription(this)

        /**
         * construct an [aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessBufferingHints] inside the given [block]
         */
        public fun bufferingHints(block: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessBufferingHints.Builder.() -> kotlin.Unit) {
            this.bufferingHints = aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessBufferingHints.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.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.AmazonOpenSearchServerlessRetryOptions] inside the given [block]
         */
        public fun retryOptions(block: aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessRetryOptions.Builder.() -> kotlin.Unit) {
            this.retryOptions = aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessRetryOptions.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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy