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

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

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

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



/**
 * A request to delete resources
 */
public class BatchDeleteRequest private constructor(builder: Builder) {
    /**
     * List of channel IDs
     */
    public val channelIds: List? = builder.channelIds
    /**
     * List of input IDs
     */
    public val inputIds: List? = builder.inputIds
    /**
     * List of input security group IDs
     */
    public val inputSecurityGroupIds: List? = builder.inputSecurityGroupIds
    /**
     * List of multiplex IDs
     */
    public val multiplexIds: List? = builder.multiplexIds

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

    override fun toString(): kotlin.String = buildString {
        append("BatchDeleteRequest(")
        append("channelIds=$channelIds,")
        append("inputIds=$inputIds,")
        append("inputSecurityGroupIds=$inputSecurityGroupIds,")
        append("multiplexIds=$multiplexIds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = channelIds?.hashCode() ?: 0
        result = 31 * result + (inputIds?.hashCode() ?: 0)
        result = 31 * result + (inputSecurityGroupIds?.hashCode() ?: 0)
        result = 31 * result + (multiplexIds?.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 BatchDeleteRequest

        if (channelIds != other.channelIds) return false
        if (inputIds != other.inputIds) return false
        if (inputSecurityGroupIds != other.inputSecurityGroupIds) return false
        if (multiplexIds != other.multiplexIds) return false

        return true
    }

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

    public class Builder {
        /**
         * List of channel IDs
         */
        public var channelIds: List? = null
        /**
         * List of input IDs
         */
        public var inputIds: List? = null
        /**
         * List of input security group IDs
         */
        public var inputSecurityGroupIds: List? = null
        /**
         * List of multiplex IDs
         */
        public var multiplexIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.BatchDeleteRequest) : this() {
            this.channelIds = x.channelIds
            this.inputIds = x.inputIds
            this.inputSecurityGroupIds = x.inputSecurityGroupIds
            this.multiplexIds = x.multiplexIds
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy