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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.DeleteEntityResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iottwinmaker.model



public class DeleteEntityResponse private constructor(builder: Builder) {
    /**
     * The current state of the deleted entity.
     */
    public val state: aws.sdk.kotlin.services.iottwinmaker.model.State = requireNotNull(builder.state) { "A non-null value must be provided for state" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteEntityResponse(")
        append("state=$state")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = state.hashCode()
        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 DeleteEntityResponse

        if (state != other.state) return false

        return true
    }

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

    public class Builder {
        /**
         * The current state of the deleted entity.
         */
        public var state: aws.sdk.kotlin.services.iottwinmaker.model.State? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.DeleteEntityResponse) : this() {
            this.state = x.state
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.DeleteEntityResponse = DeleteEntityResponse(this)

        internal fun correctErrors(): Builder {
            if (state == null) state = State.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy