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

commonMain.aws.sdk.kotlin.services.fms.model.BatchDisassociateResourceResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fms.model



public class BatchDisassociateResourceResponse private constructor(builder: Builder) {
    /**
     * The resources that failed to disassociate from the resource set.
     */
    public val failedItems: List? = builder.failedItems
    /**
     * A unique identifier for the resource set, used in a request to refer to the resource set.
     */
    public val resourceSetIdentifier: kotlin.String? = builder.resourceSetIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("BatchDisassociateResourceResponse(")
        append("failedItems=$failedItems,")
        append("resourceSetIdentifier=$resourceSetIdentifier")
        append(")")
    }

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

        if (failedItems != other.failedItems) return false
        if (resourceSetIdentifier != other.resourceSetIdentifier) return false

        return true
    }

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

    public class Builder {
        /**
         * The resources that failed to disassociate from the resource set.
         */
        public var failedItems: List? = null
        /**
         * A unique identifier for the resource set, used in a request to refer to the resource set.
         */
        public var resourceSetIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.BatchDisassociateResourceResponse) : this() {
            this.failedItems = x.failedItems
            this.resourceSetIdentifier = x.resourceSetIdentifier
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy