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

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

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

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



public class CreateStreamRequest private constructor(builder: Builder) {
    /**
     * A description of the stream.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The files to stream.
     */
    public val files: List? = builder.files
    /**
     * An IAM role that allows the IoT service principal to access your S3 files.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The stream ID.
     */
    public val streamId: kotlin.String? = builder.streamId
    /**
     * Metadata which can be used to manage streams.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateStreamRequest(")
        append("description=$description,")
        append("files=$files,")
        append("roleArn=$roleArn,")
        append("streamId=$streamId,")
        append("tags=$tags")
        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)
        result = 31 * result + (tags?.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 CreateStreamRequest

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

        return true
    }

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

    public class Builder {
        /**
         * A description of the stream.
         */
        public var description: kotlin.String? = null
        /**
         * The files to stream.
         */
        public var files: List? = null
        /**
         * An IAM role that allows the IoT service principal to access your S3 files.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The stream ID.
         */
        public var streamId: kotlin.String? = null
        /**
         * Metadata which can be used to manage streams.
         */
        public var tags: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy