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

commonMain.aws.sdk.kotlin.services.ssm.model.DeleteInventoryResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model



public class DeleteInventoryResponse private constructor(builder: Builder) {
    /**
     * Every `DeleteInventory` operation is assigned a unique ID. This option returns a unique ID. You can use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation has completed before you begin other operations.
     */
    public val deletionId: kotlin.String? = builder.deletionId
    /**
     * A summary of the delete operation. For more information about this summary, see [Understanding the delete inventory summary](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary) in the *Amazon Web Services Systems Manager User Guide*.
     */
    public val deletionSummary: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary? = builder.deletionSummary
    /**
     * The name of the inventory data type specified in the request.
     */
    public val typeName: kotlin.String? = builder.typeName

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteInventoryResponse(")
        append("deletionId=$deletionId,")
        append("deletionSummary=$deletionSummary,")
        append("typeName=$typeName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deletionId?.hashCode() ?: 0
        result = 31 * result + (deletionSummary?.hashCode() ?: 0)
        result = 31 * result + (typeName?.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 DeleteInventoryResponse

        if (deletionId != other.deletionId) return false
        if (deletionSummary != other.deletionSummary) return false
        if (typeName != other.typeName) return false

        return true
    }

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

    public class Builder {
        /**
         * Every `DeleteInventory` operation is assigned a unique ID. This option returns a unique ID. You can use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation has completed before you begin other operations.
         */
        public var deletionId: kotlin.String? = null
        /**
         * A summary of the delete operation. For more information about this summary, see [Understanding the delete inventory summary](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete-summary) in the *Amazon Web Services Systems Manager User Guide*.
         */
        public var deletionSummary: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary? = null
        /**
         * The name of the inventory data type specified in the request.
         */
        public var typeName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DeleteInventoryResponse) : this() {
            this.deletionId = x.deletionId
            this.deletionSummary = x.deletionSummary
            this.typeName = x.typeName
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary] inside the given [block]
         */
        public fun deletionSummary(block: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary.Builder.() -> kotlin.Unit) {
            this.deletionSummary = aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy