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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.InventoryData.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes a Fleet Advisor collector inventory.
 */
public class InventoryData private constructor(builder: Builder) {
    /**
     * The number of databases in the Fleet Advisor collector inventory.
     */
    public val numberOfDatabases: kotlin.Int? = builder.numberOfDatabases
    /**
     * The number of schemas in the Fleet Advisor collector inventory.
     */
    public val numberOfSchemas: kotlin.Int? = builder.numberOfSchemas

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

    override fun toString(): kotlin.String = buildString {
        append("InventoryData(")
        append("numberOfDatabases=$numberOfDatabases,")
        append("numberOfSchemas=$numberOfSchemas")
        append(")")
    }

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

        if (numberOfDatabases != other.numberOfDatabases) return false
        if (numberOfSchemas != other.numberOfSchemas) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of databases in the Fleet Advisor collector inventory.
         */
        public var numberOfDatabases: kotlin.Int? = null
        /**
         * The number of schemas in the Fleet Advisor collector inventory.
         */
        public var numberOfSchemas: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.InventoryData) : this() {
            this.numberOfDatabases = x.numberOfDatabases
            this.numberOfSchemas = x.numberOfSchemas
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy