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

commonMain.aws.sdk.kotlin.services.kinesis.model.DescribeStreamConsumerRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kinesis.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeStreamConsumerRequest private constructor(builder: Builder) {
    /**
     * The ARN returned by Kinesis Data Streams when you registered the consumer.
     */
    public val consumerArn: kotlin.String? = builder.consumerArn
    /**
     * The name that you gave to the consumer.
     */
    public val consumerName: kotlin.String? = builder.consumerName
    /**
     * The ARN of the Kinesis data stream that the consumer is registered with. 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#arn-syntax-kinesis-streams).
     */
    public val streamArn: kotlin.String? = builder.streamArn

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeStreamConsumerRequest(")
        append("consumerArn=$consumerArn,")
        append("consumerName=$consumerName,")
        append("streamArn=$streamArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = consumerArn?.hashCode() ?: 0
        result = 31 * result + (consumerName?.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 DescribeStreamConsumerRequest

        if (consumerArn != other.consumerArn) return false
        if (consumerName != other.consumerName) return false
        if (streamArn != other.streamArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN returned by Kinesis Data Streams when you registered the consumer.
         */
        public var consumerArn: kotlin.String? = null
        /**
         * The name that you gave to the consumer.
         */
        public var consumerName: kotlin.String? = null
        /**
         * The ARN of the Kinesis data stream that the consumer is registered with. 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#arn-syntax-kinesis-streams).
         */
        public var streamArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kinesis.model.DescribeStreamConsumerRequest) : this() {
            this.consumerArn = x.consumerArn
            this.consumerName = x.consumerName
            this.streamArn = x.streamArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy