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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaPipelineKinesisVideoStreamPoolRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmediapipelines.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateMediaPipelineKinesisVideoStreamPoolRequest private constructor(builder: Builder) {
    /**
     * The token assigned to the client making the request.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The name of the pool.
     */
    public val poolName: kotlin.String? = builder.poolName
    /**
     * The configuration settings for the stream.
     */
    public val streamConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration? = builder.streamConfiguration
    /**
     * The tags assigned to the stream pool.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMediaPipelineKinesisVideoStreamPoolRequest(")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("poolName=$poolName,")
        append("streamConfiguration=$streamConfiguration,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (poolName?.hashCode() ?: 0)
        result = 31 * result + (streamConfiguration?.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 CreateMediaPipelineKinesisVideoStreamPoolRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (poolName != other.poolName) return false
        if (streamConfiguration != other.streamConfiguration) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The token assigned to the client making the request.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The name of the pool.
         */
        public var poolName: kotlin.String? = null
        /**
         * The configuration settings for the stream.
         */
        public var streamConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration? = null
        /**
         * The tags assigned to the stream pool.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaPipelineKinesisVideoStreamPoolRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.poolName = x.poolName
            this.streamConfiguration = x.streamConfiguration
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration] inside the given [block]
         */
        public fun streamConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration.Builder.() -> kotlin.Unit) {
            this.streamConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy