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

commonMain.aws.sdk.kotlin.services.pipes.model.FirehoseLogDestinationParameters.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pipes.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The Amazon Kinesis Data Firehose logging configuration settings for the pipe.
 */
public class FirehoseLogDestinationParameters private constructor(builder: Builder) {
    /**
     * Specifies the Amazon Resource Name (ARN) of the Kinesis Data Firehose delivery stream to which EventBridge delivers the pipe log records.
     */
    public val deliveryStreamArn: kotlin.String = requireNotNull(builder.deliveryStreamArn) { "A non-null value must be provided for deliveryStreamArn" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.FirehoseLogDestinationParameters = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("FirehoseLogDestinationParameters(")
        append("deliveryStreamArn=$deliveryStreamArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deliveryStreamArn.hashCode()
        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 FirehoseLogDestinationParameters

        if (deliveryStreamArn != other.deliveryStreamArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the Amazon Resource Name (ARN) of the Kinesis Data Firehose delivery stream to which EventBridge delivers the pipe log records.
         */
        public var deliveryStreamArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pipes.model.FirehoseLogDestinationParameters) : this() {
            this.deliveryStreamArn = x.deliveryStreamArn
        }

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

        internal fun correctErrors(): Builder {
            if (deliveryStreamArn == null) deliveryStreamArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy