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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.SchemaResponse.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 schema in a Fleet Advisor collector inventory.
 */
public class SchemaResponse private constructor(builder: Builder) {
    /**
     * The number of lines of code in a schema in a Fleet Advisor collector inventory.
     */
    public val codeLineCount: kotlin.Long? = builder.codeLineCount
    /**
     * The size level of the code in a schema in a Fleet Advisor collector inventory.
     */
    public val codeSize: kotlin.Long? = builder.codeSize
    /**
     * The complexity level of the code in a schema in a Fleet Advisor collector inventory.
     */
    public val complexity: kotlin.String? = builder.complexity
    /**
     * The database for a schema in a Fleet Advisor collector inventory.
     */
    public val databaseInstance: aws.sdk.kotlin.services.databasemigrationservice.model.DatabaseShortInfoResponse? = builder.databaseInstance
    /**
     * Describes a schema in a Fleet Advisor collector inventory.
     */
    public val originalSchema: aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse? = builder.originalSchema
    /**
     * The ID of a schema in a Fleet Advisor collector inventory.
     */
    public val schemaId: kotlin.String? = builder.schemaId
    /**
     * The name of a schema in a Fleet Advisor collector inventory.
     */
    public val schemaName: kotlin.String? = builder.schemaName
    /**
     * The database server for a schema in a Fleet Advisor collector inventory.
     */
    public val server: aws.sdk.kotlin.services.databasemigrationservice.model.ServerShortInfoResponse? = builder.server
    /**
     * The similarity value for a schema in a Fleet Advisor collector inventory. A higher similarity value indicates that a schema is likely to be a duplicate.
     */
    public val similarity: kotlin.Double? = builder.similarity

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

    override fun toString(): kotlin.String = buildString {
        append("SchemaResponse(")
        append("codeLineCount=$codeLineCount,")
        append("codeSize=$codeSize,")
        append("complexity=$complexity,")
        append("databaseInstance=$databaseInstance,")
        append("originalSchema=$originalSchema,")
        append("schemaId=$schemaId,")
        append("schemaName=$schemaName,")
        append("server=$server,")
        append("similarity=$similarity")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = codeLineCount?.hashCode() ?: 0
        result = 31 * result + (codeSize?.hashCode() ?: 0)
        result = 31 * result + (complexity?.hashCode() ?: 0)
        result = 31 * result + (databaseInstance?.hashCode() ?: 0)
        result = 31 * result + (originalSchema?.hashCode() ?: 0)
        result = 31 * result + (schemaId?.hashCode() ?: 0)
        result = 31 * result + (schemaName?.hashCode() ?: 0)
        result = 31 * result + (server?.hashCode() ?: 0)
        result = 31 * result + (similarity?.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 SchemaResponse

        if (codeLineCount != other.codeLineCount) return false
        if (codeSize != other.codeSize) return false
        if (complexity != other.complexity) return false
        if (databaseInstance != other.databaseInstance) return false
        if (originalSchema != other.originalSchema) return false
        if (schemaId != other.schemaId) return false
        if (schemaName != other.schemaName) return false
        if (server != other.server) return false
        if (!(similarity?.equals(other.similarity) ?: (other.similarity == null))) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of lines of code in a schema in a Fleet Advisor collector inventory.
         */
        public var codeLineCount: kotlin.Long? = null
        /**
         * The size level of the code in a schema in a Fleet Advisor collector inventory.
         */
        public var codeSize: kotlin.Long? = null
        /**
         * The complexity level of the code in a schema in a Fleet Advisor collector inventory.
         */
        public var complexity: kotlin.String? = null
        /**
         * The database for a schema in a Fleet Advisor collector inventory.
         */
        public var databaseInstance: aws.sdk.kotlin.services.databasemigrationservice.model.DatabaseShortInfoResponse? = null
        /**
         * Describes a schema in a Fleet Advisor collector inventory.
         */
        public var originalSchema: aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse? = null
        /**
         * The ID of a schema in a Fleet Advisor collector inventory.
         */
        public var schemaId: kotlin.String? = null
        /**
         * The name of a schema in a Fleet Advisor collector inventory.
         */
        public var schemaName: kotlin.String? = null
        /**
         * The database server for a schema in a Fleet Advisor collector inventory.
         */
        public var server: aws.sdk.kotlin.services.databasemigrationservice.model.ServerShortInfoResponse? = null
        /**
         * The similarity value for a schema in a Fleet Advisor collector inventory. A higher similarity value indicates that a schema is likely to be a duplicate.
         */
        public var similarity: kotlin.Double? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.SchemaResponse) : this() {
            this.codeLineCount = x.codeLineCount
            this.codeSize = x.codeSize
            this.complexity = x.complexity
            this.databaseInstance = x.databaseInstance
            this.originalSchema = x.originalSchema
            this.schemaId = x.schemaId
            this.schemaName = x.schemaName
            this.server = x.server
            this.similarity = x.similarity
        }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy