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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ServerShortInfoResponse.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 server in a Fleet Advisor collector inventory.
 */
public class ServerShortInfoResponse private constructor(builder: Builder) {
    /**
     * The IP address of a server in a Fleet Advisor collector inventory.
     */
    public val ipAddress: kotlin.String? = builder.ipAddress
    /**
     * The ID of a server in a Fleet Advisor collector inventory.
     */
    public val serverId: kotlin.String? = builder.serverId
    /**
     * The name address of a server in a Fleet Advisor collector inventory.
     */
    public val serverName: kotlin.String? = builder.serverName

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

    override fun toString(): kotlin.String = buildString {
        append("ServerShortInfoResponse(")
        append("ipAddress=$ipAddress,")
        append("serverId=$serverId,")
        append("serverName=$serverName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = ipAddress?.hashCode() ?: 0
        result = 31 * result + (serverId?.hashCode() ?: 0)
        result = 31 * result + (serverName?.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 ServerShortInfoResponse

        if (ipAddress != other.ipAddress) return false
        if (serverId != other.serverId) return false
        if (serverName != other.serverName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The IP address of a server in a Fleet Advisor collector inventory.
         */
        public var ipAddress: kotlin.String? = null
        /**
         * The ID of a server in a Fleet Advisor collector inventory.
         */
        public var serverId: kotlin.String? = null
        /**
         * The name address of a server in a Fleet Advisor collector inventory.
         */
        public var serverName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ServerShortInfoResponse) : this() {
            this.ipAddress = x.ipAddress
            this.serverId = x.serverId
            this.serverName = x.serverName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy