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

commonMain.aws.sdk.kotlin.services.mgn.model.IdentificationHints.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mgn.model



/**
 * Identification hints.
 */
class IdentificationHints private constructor(builder: Builder) {
    /**
     * AWS Instance ID identification hint.
     */
    val awsInstanceId: kotlin.String? = builder.awsInstanceId
    /**
     * FQDN address identification hint.
     */
    val fqdn: kotlin.String? = builder.fqdn
    /**
     * Hostname identification hint.
     */
    val hostname: kotlin.String? = builder.hostname
    /**
     * vCenter VM path identification hint.
     */
    val vmPath: kotlin.String? = builder.vmPath
    /**
     * vmWare UUID identification hint.
     */
    val vmWareUuid: kotlin.String? = builder.vmWareUuid

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

    override fun toString(): kotlin.String = buildString {
        append("IdentificationHints(")
        append("awsInstanceId=$awsInstanceId,")
        append("fqdn=$fqdn,")
        append("hostname=$hostname,")
        append("vmPath=$vmPath,")
        append("vmWareUuid=$vmWareUuid)")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsInstanceId?.hashCode() ?: 0
        result = 31 * result + (fqdn?.hashCode() ?: 0)
        result = 31 * result + (hostname?.hashCode() ?: 0)
        result = 31 * result + (vmPath?.hashCode() ?: 0)
        result = 31 * result + (vmWareUuid?.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 IdentificationHints

        if (awsInstanceId != other.awsInstanceId) return false
        if (fqdn != other.fqdn) return false
        if (hostname != other.hostname) return false
        if (vmPath != other.vmPath) return false
        if (vmWareUuid != other.vmWareUuid) return false

        return true
    }

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

    class Builder {
        /**
         * AWS Instance ID identification hint.
         */
        var awsInstanceId: kotlin.String? = null
        /**
         * FQDN address identification hint.
         */
        var fqdn: kotlin.String? = null
        /**
         * Hostname identification hint.
         */
        var hostname: kotlin.String? = null
        /**
         * vCenter VM path identification hint.
         */
        var vmPath: kotlin.String? = null
        /**
         * vmWare UUID identification hint.
         */
        var vmWareUuid: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mgn.model.IdentificationHints) : this() {
            this.awsInstanceId = x.awsInstanceId
            this.fqdn = x.fqdn
            this.hostname = x.hostname
            this.vmPath = x.vmPath
            this.vmWareUuid = x.vmWareUuid
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mgn.model.IdentificationHints = IdentificationHints(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy