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

commonMain.aws.sdk.kotlin.services.medialive.model.CreatePartnerInputRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model



/**
 * A request to create a partner input
 */
public class CreatePartnerInputRequest private constructor(builder: Builder) {
    /**
     * Unique ID of the input.
     */
    public val inputId: kotlin.String? = requireNotNull(builder.inputId) { "A non-null value must be provided for inputId" }
    /**
     * Unique identifier of the request to ensure the request is handled exactly once in case of retries.
     */
    public val requestId: kotlin.String? = builder.requestId
    /**
     * A collection of key-value pairs.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreatePartnerInputRequest(")
        append("inputId=$inputId,")
        append("requestId=$requestId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputId?.hashCode() ?: 0
        result = 31 * result + (requestId?.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 CreatePartnerInputRequest

        if (inputId != other.inputId) return false
        if (requestId != other.requestId) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * Unique ID of the input.
         */
        public var inputId: kotlin.String? = null
        /**
         * Unique identifier of the request to ensure the request is handled exactly once in case of retries.
         */
        public var requestId: kotlin.String? = null
        /**
         * A collection of key-value pairs.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.CreatePartnerInputRequest) : this() {
            this.inputId = x.inputId
            this.requestId = x.requestId
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.CreatePartnerInputRequest = CreatePartnerInputRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy