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

commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaConcatenationPipelineRequest.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 CreateMediaConcatenationPipelineRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the client request. The token makes the API request idempotent. Use a unique token for each media concatenation pipeline request.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * An object that specifies the data sinks for the media concatenation pipeline.
     */
    public val sinks: List? = builder.sinks
    /**
     * An object that specifies the sources for the media concatenation pipeline.
     */
    public val sources: List? = builder.sources
    /**
     * The tags associated with the media concatenation pipeline.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMediaConcatenationPipelineRequest(")
        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 CreateMediaConcatenationPipelineRequest

        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.CreateMediaConcatenationPipelineRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier for the client request. The token makes the API request idempotent. Use a unique token for each media concatenation pipeline request.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * An object that specifies the data sinks for the media concatenation pipeline.
         */
        public var sinks: List? = null
        /**
         * An object that specifies the sources for the media concatenation pipeline.
         */
        public var sources: List? = null
        /**
         * The tags associated with the media concatenation pipeline.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaConcatenationPipelineRequest) : 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.CreateMediaConcatenationPipelineRequest = CreateMediaConcatenationPipelineRequest(this)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy