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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DatabaseShortInfoResponse.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 database in a Fleet Advisor collector inventory.
 */
public class DatabaseShortInfoResponse private constructor(builder: Builder) {
    /**
     * The database engine of a database in a Fleet Advisor collector inventory, for example `PostgreSQL`.
     */
    public val databaseEngine: kotlin.String? = builder.databaseEngine
    /**
     * The ID of a database in a Fleet Advisor collector inventory.
     */
    public val databaseId: kotlin.String? = builder.databaseId
    /**
     * The IP address of a database in a Fleet Advisor collector inventory.
     */
    public val databaseIpAddress: kotlin.String? = builder.databaseIpAddress
    /**
     * The name of a database in a Fleet Advisor collector inventory.
     */
    public val databaseName: kotlin.String? = builder.databaseName

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

    override fun toString(): kotlin.String = buildString {
        append("DatabaseShortInfoResponse(")
        append("databaseEngine=$databaseEngine,")
        append("databaseId=$databaseId,")
        append("databaseIpAddress=$databaseIpAddress,")
        append("databaseName=$databaseName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = databaseEngine?.hashCode() ?: 0
        result = 31 * result + (databaseId?.hashCode() ?: 0)
        result = 31 * result + (databaseIpAddress?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.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 DatabaseShortInfoResponse

        if (databaseEngine != other.databaseEngine) return false
        if (databaseId != other.databaseId) return false
        if (databaseIpAddress != other.databaseIpAddress) return false
        if (databaseName != other.databaseName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The database engine of a database in a Fleet Advisor collector inventory, for example `PostgreSQL`.
         */
        public var databaseEngine: kotlin.String? = null
        /**
         * The ID of a database in a Fleet Advisor collector inventory.
         */
        public var databaseId: kotlin.String? = null
        /**
         * The IP address of a database in a Fleet Advisor collector inventory.
         */
        public var databaseIpAddress: kotlin.String? = null
        /**
         * The name of a database in a Fleet Advisor collector inventory.
         */
        public var databaseName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.DatabaseShortInfoResponse) : this() {
            this.databaseEngine = x.databaseEngine
            this.databaseId = x.databaseId
            this.databaseIpAddress = x.databaseIpAddress
            this.databaseName = x.databaseName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy