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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaLiveConnectorPipelineRequest.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 CreateMediaLiveConnectorPipelineRequest private constructor(builder: Builder) {
    /**
     * The token assigned to the client making the request.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The media live connector pipeline's data sinks.
     */
    public val sinks: List? = builder.sinks
    /**
     * The media live connector pipeline's data sources.
     */
    public val sources: List? = builder.sources
    /**
     * The tags associated with the media live connector pipeline.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMediaLiveConnectorPipelineRequest(")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("sinks=$sinks,")
        append("sources=$sources,")
        append("tags=$tags")
        append(")")
    }

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

        if (clientRequestToken != other.clientRequestToken) return false
        if (sinks != other.sinks) return false
        if (sources != other.sources) return false
        if (tags != other.tags) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaLiveConnectorPipelineRequest = 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 media live connector pipeline's data sinks.
         */
        public var sinks: List? = null
        /**
         * The media live connector pipeline's data sources.
         */
        public var sources: List? = null
        /**
         * The tags associated with the media live connector pipeline.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaLiveConnectorPipelineRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.sinks = x.sinks
            this.sources = x.sources
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy