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

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

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

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



/**
 * Either a count, remaining count, or a version number in a delete inventory summary.
 */
public class InventoryDeletionSummaryItem private constructor(builder: Builder) {
    /**
     * A count of the number of deleted items.
     */
    public val count: kotlin.Int = builder.count
    /**
     * The remaining number of items to delete.
     */
    public val remainingCount: kotlin.Int = builder.remainingCount
    /**
     * The inventory type version.
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("InventoryDeletionSummaryItem(")
        append("count=$count,")
        append("remainingCount=$remainingCount,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = count
        result = 31 * result + (remainingCount)
        result = 31 * result + (version?.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 InventoryDeletionSummaryItem

        if (count != other.count) return false
        if (remainingCount != other.remainingCount) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * A count of the number of deleted items.
         */
        public var count: kotlin.Int = 0
        /**
         * The remaining number of items to delete.
         */
        public var remainingCount: kotlin.Int = 0
        /**
         * The inventory type version.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.InventoryDeletionSummaryItem) : this() {
            this.count = x.count
            this.remainingCount = x.remainingCount
            this.version = x.version
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy