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

commonMain.aws.sdk.kotlin.services.firehose.model.KinesisStreamSourceDescription.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Details about a Kinesis data stream used as the source for a Firehose delivery stream.
 */
public class KinesisStreamSourceDescription private constructor(builder: Builder) {
    /**
     * Firehose starts retrieving records from the Kinesis data stream starting with this timestamp.
     */
    public val deliveryStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.deliveryStartTimestamp
    /**
     * The Amazon Resource Name (ARN) of the source Kinesis data stream. For more information, see [Amazon Kinesis Data Streams ARN Format](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams).
     */
    public val kinesisStreamArn: kotlin.String? = builder.kinesisStreamArn
    /**
     * The ARN of the role used by the source Kinesis data stream. For more information, see [Amazon Web Services Identity and Access Management (IAM) ARN Format](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam).
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("KinesisStreamSourceDescription(")
        append("deliveryStartTimestamp=$deliveryStartTimestamp,")
        append("kinesisStreamArn=$kinesisStreamArn,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deliveryStartTimestamp?.hashCode() ?: 0
        result = 31 * result + (kinesisStreamArn?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 KinesisStreamSourceDescription

        if (deliveryStartTimestamp != other.deliveryStartTimestamp) return false
        if (kinesisStreamArn != other.kinesisStreamArn) return false
        if (roleArn != other.roleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Firehose starts retrieving records from the Kinesis data stream starting with this timestamp.
         */
        public var deliveryStartTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the source Kinesis data stream. For more information, see [Amazon Kinesis Data Streams ARN Format](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams).
         */
        public var kinesisStreamArn: kotlin.String? = null
        /**
         * The ARN of the role used by the source Kinesis data stream. For more information, see [Amazon Web Services Identity and Access Management (IAM) ARN Format](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam).
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.firehose.model.KinesisStreamSourceDescription) : this() {
            this.deliveryStartTimestamp = x.deliveryStartTimestamp
            this.kinesisStreamArn = x.kinesisStreamArn
            this.roleArn = x.roleArn
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy