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

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

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

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



/**
 * Details from a failed operation
 */
public class BatchFailedResultModel private constructor(builder: Builder) {
    /**
     * ARN of the resource
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Error code for the failed operation
     */
    public val code: kotlin.String? = builder.code
    /**
     * ID of the resource
     */
    public val id: kotlin.String? = builder.id
    /**
     * Error message for the failed operation
     */
    public val message: kotlin.String? = builder.message

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

    override fun toString(): kotlin.String = buildString {
        append("BatchFailedResultModel(")
        append("arn=$arn,")
        append("code=$code,")
        append("id=$id,")
        append("message=$message")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (code?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (message?.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 BatchFailedResultModel

        if (arn != other.arn) return false
        if (code != other.code) return false
        if (id != other.id) return false
        if (message != other.message) return false

        return true
    }

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

    public class Builder {
        /**
         * ARN of the resource
         */
        public var arn: kotlin.String? = null
        /**
         * Error code for the failed operation
         */
        public var code: kotlin.String? = null
        /**
         * ID of the resource
         */
        public var id: kotlin.String? = null
        /**
         * Error message for the failed operation
         */
        public var message: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.BatchFailedResultModel) : this() {
            this.arn = x.arn
            this.code = x.code
            this.id = x.id
            this.message = x.message
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy