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

commonMain.aws.sdk.kotlin.services.dynamodb.model.KinesisDataStreamDestination.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.dynamodb.model



/**
 * Describes a Kinesis data stream destination.
 */
public class KinesisDataStreamDestination private constructor(builder: Builder) {
    /**
     * The precision of the Kinesis data stream timestamp. The values are either `MILLISECOND` or `MICROSECOND`.
     */
    public val approximateCreationDateTimePrecision: aws.sdk.kotlin.services.dynamodb.model.ApproximateCreationDateTimePrecision? = builder.approximateCreationDateTimePrecision
    /**
     * The current status of replication.
     */
    public val destinationStatus: aws.sdk.kotlin.services.dynamodb.model.DestinationStatus? = builder.destinationStatus
    /**
     * The human-readable string that corresponds to the replica status.
     */
    public val destinationStatusDescription: kotlin.String? = builder.destinationStatusDescription
    /**
     * The ARN for a specific Kinesis data stream.
     */
    public val streamArn: kotlin.String? = builder.streamArn

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

    override fun toString(): kotlin.String = buildString {
        append("KinesisDataStreamDestination(")
        append("approximateCreationDateTimePrecision=$approximateCreationDateTimePrecision,")
        append("destinationStatus=$destinationStatus,")
        append("destinationStatusDescription=$destinationStatusDescription,")
        append("streamArn=$streamArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = approximateCreationDateTimePrecision?.hashCode() ?: 0
        result = 31 * result + (destinationStatus?.hashCode() ?: 0)
        result = 31 * result + (destinationStatusDescription?.hashCode() ?: 0)
        result = 31 * result + (streamArn?.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 KinesisDataStreamDestination

        if (approximateCreationDateTimePrecision != other.approximateCreationDateTimePrecision) return false
        if (destinationStatus != other.destinationStatus) return false
        if (destinationStatusDescription != other.destinationStatusDescription) return false
        if (streamArn != other.streamArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The precision of the Kinesis data stream timestamp. The values are either `MILLISECOND` or `MICROSECOND`.
         */
        public var approximateCreationDateTimePrecision: aws.sdk.kotlin.services.dynamodb.model.ApproximateCreationDateTimePrecision? = null
        /**
         * The current status of replication.
         */
        public var destinationStatus: aws.sdk.kotlin.services.dynamodb.model.DestinationStatus? = null
        /**
         * The human-readable string that corresponds to the replica status.
         */
        public var destinationStatusDescription: kotlin.String? = null
        /**
         * The ARN for a specific Kinesis data stream.
         */
        public var streamArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.KinesisDataStreamDestination) : this() {
            this.approximateCreationDateTimePrecision = x.approximateCreationDateTimePrecision
            this.destinationStatus = x.destinationStatus
            this.destinationStatusDescription = x.destinationStatusDescription
            this.streamArn = x.streamArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy