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

commonMain.aws.sdk.kotlin.services.iot.model.CreateStreamResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model



public class CreateStreamResponse private constructor(builder: Builder) {
    /**
     * A description of the stream.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The stream ARN.
     */
    public val streamArn: kotlin.String? = builder.streamArn
    /**
     * The stream ID.
     */
    public val streamId: kotlin.String? = builder.streamId
    /**
     * The version of the stream.
     */
    public val streamVersion: kotlin.Int? = builder.streamVersion

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

    override fun toString(): kotlin.String = buildString {
        append("CreateStreamResponse(")
        append("description=$description,")
        append("streamArn=$streamArn,")
        append("streamId=$streamId,")
        append("streamVersion=$streamVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (streamArn?.hashCode() ?: 0)
        result = 31 * result + (streamId?.hashCode() ?: 0)
        result = 31 * result + (streamVersion ?: 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 CreateStreamResponse

        if (description != other.description) return false
        if (streamArn != other.streamArn) return false
        if (streamId != other.streamId) return false
        if (streamVersion != other.streamVersion) return false

        return true
    }

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

    public class Builder {
        /**
         * A description of the stream.
         */
        public var description: kotlin.String? = null
        /**
         * The stream ARN.
         */
        public var streamArn: kotlin.String? = null
        /**
         * The stream ID.
         */
        public var streamId: kotlin.String? = null
        /**
         * The version of the stream.
         */
        public var streamVersion: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateStreamResponse) : this() {
            this.description = x.description
            this.streamArn = x.streamArn
            this.streamId = x.streamId
            this.streamVersion = x.streamVersion
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy