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

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

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

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



/**
 * Information about the delete operation.
 */
public class InventoryDeletionSummary private constructor(builder: Builder) {
    /**
     * Remaining number of items to delete.
     */
    public val remainingCount: kotlin.Int = builder.remainingCount
    /**
     * A list of counts and versions for deleted items.
     */
    public val summaryItems: List? = builder.summaryItems
    /**
     * The total number of items to delete. This count doesn't change during the delete operation.
     */
    public val totalCount: kotlin.Int = builder.totalCount

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

    override fun toString(): kotlin.String = buildString {
        append("InventoryDeletionSummary(")
        append("remainingCount=$remainingCount,")
        append("summaryItems=$summaryItems,")
        append("totalCount=$totalCount")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = remainingCount
        result = 31 * result + (summaryItems?.hashCode() ?: 0)
        result = 31 * result + (totalCount)
        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 InventoryDeletionSummary

        if (remainingCount != other.remainingCount) return false
        if (summaryItems != other.summaryItems) return false
        if (totalCount != other.totalCount) return false

        return true
    }

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

    public class Builder {
        /**
         * Remaining number of items to delete.
         */
        public var remainingCount: kotlin.Int = 0
        /**
         * A list of counts and versions for deleted items.
         */
        public var summaryItems: List? = null
        /**
         * The total number of items to delete. This count doesn't change during the delete operation.
         */
        public var totalCount: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummary) : this() {
            this.remainingCount = x.remainingCount
            this.summaryItems = x.summaryItems
            this.totalCount = x.totalCount
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy