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

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

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

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



public class UpdateStreamRequest private constructor(builder: Builder) {
    /**
     * The description of the stream.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The files associated with the stream.
     */
    public val files: List? = builder.files
    /**
     * An IAM role that allows the IoT service principal assumes to access your S3 files.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The stream ID.
     */
    public val streamId: kotlin.String? = builder.streamId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateStreamRequest(")
        append("description=$description,")
        append("files=$files,")
        append("roleArn=$roleArn,")
        append("streamId=$streamId")
        append(")")
    }

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

        if (description != other.description) return false
        if (files != other.files) return false
        if (roleArn != other.roleArn) return false
        if (streamId != other.streamId) return false

        return true
    }

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

    public class Builder {
        /**
         * The description of the stream.
         */
        public var description: kotlin.String? = null
        /**
         * The files associated with the stream.
         */
        public var files: List? = null
        /**
         * An IAM role that allows the IoT service principal assumes to access your S3 files.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The stream ID.
         */
        public var streamId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateStreamRequest) : this() {
            this.description = x.description
            this.files = x.files
            this.roleArn = x.roleArn
            this.streamId = x.streamId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy