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

commonMain.aws.sdk.kotlin.services.sms.model.VmServer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sms.model



/**
 * Represents a VM server.
 */
public class VmServer private constructor(builder: Builder) {
    /**
     * The name of the VM manager.
     */
    public val vmManagerName: kotlin.String? = builder.vmManagerName
    /**
     * The type of VM management product.
     */
    public val vmManagerType: aws.sdk.kotlin.services.sms.model.VmManagerType? = builder.vmManagerType
    /**
     * The name of the VM.
     */
    public val vmName: kotlin.String? = builder.vmName
    /**
     * The VM folder path in the vCenter Server virtual machine inventory tree.
     */
    public val vmPath: kotlin.String? = builder.vmPath
    /**
     * The VM server location.
     */
    public val vmServerAddress: aws.sdk.kotlin.services.sms.model.VmServerAddress? = builder.vmServerAddress

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

    override fun toString(): kotlin.String = buildString {
        append("VmServer(")
        append("vmManagerName=$vmManagerName,")
        append("vmManagerType=$vmManagerType,")
        append("vmName=$vmName,")
        append("vmPath=$vmPath,")
        append("vmServerAddress=$vmServerAddress")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = vmManagerName?.hashCode() ?: 0
        result = 31 * result + (vmManagerType?.hashCode() ?: 0)
        result = 31 * result + (vmName?.hashCode() ?: 0)
        result = 31 * result + (vmPath?.hashCode() ?: 0)
        result = 31 * result + (vmServerAddress?.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 VmServer

        if (vmManagerName != other.vmManagerName) return false
        if (vmManagerType != other.vmManagerType) return false
        if (vmName != other.vmName) return false
        if (vmPath != other.vmPath) return false
        if (vmServerAddress != other.vmServerAddress) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the VM manager.
         */
        public var vmManagerName: kotlin.String? = null
        /**
         * The type of VM management product.
         */
        public var vmManagerType: aws.sdk.kotlin.services.sms.model.VmManagerType? = null
        /**
         * The name of the VM.
         */
        public var vmName: kotlin.String? = null
        /**
         * The VM folder path in the vCenter Server virtual machine inventory tree.
         */
        public var vmPath: kotlin.String? = null
        /**
         * The VM server location.
         */
        public var vmServerAddress: aws.sdk.kotlin.services.sms.model.VmServerAddress? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sms.model.VmServer) : this() {
            this.vmManagerName = x.vmManagerName
            this.vmManagerType = x.vmManagerType
            this.vmName = x.vmName
            this.vmPath = x.vmPath
            this.vmServerAddress = x.vmServerAddress
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy