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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Represents a connector.
 */
public class Connector private constructor(builder: Builder) {
    /**
     * The time the connector was associated.
     */
    public val associatedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.associatedOn
    /**
     * The capabilities of the connector.
     */
    public val capabilityList: List? = builder.capabilityList
    /**
     * The ID of the connector.
     */
    public val connectorId: kotlin.String? = builder.connectorId
    /**
     * The IP address of the connector.
     */
    public val ipAddress: kotlin.String? = builder.ipAddress
    /**
     * The MAC address of the connector.
     */
    public val macAddress: kotlin.String? = builder.macAddress
    /**
     * The status of the connector.
     */
    public val status: aws.sdk.kotlin.services.sms.model.ConnectorStatus? = builder.status
    /**
     * The connector version.
     */
    public val version: kotlin.String? = builder.version
    /**
     * The ID of the VM manager.
     */
    public val vmManagerId: kotlin.String? = builder.vmManagerId
    /**
     * The name of the VM manager.
     */
    public val vmManagerName: kotlin.String? = builder.vmManagerName
    /**
     * The VM management product.
     */
    public val vmManagerType: aws.sdk.kotlin.services.sms.model.VmManagerType? = builder.vmManagerType

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

    override fun toString(): kotlin.String = buildString {
        append("Connector(")
        append("associatedOn=$associatedOn,")
        append("capabilityList=$capabilityList,")
        append("connectorId=$connectorId,")
        append("ipAddress=$ipAddress,")
        append("macAddress=$macAddress,")
        append("status=$status,")
        append("version=$version,")
        append("vmManagerId=$vmManagerId,")
        append("vmManagerName=$vmManagerName,")
        append("vmManagerType=$vmManagerType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associatedOn?.hashCode() ?: 0
        result = 31 * result + (capabilityList?.hashCode() ?: 0)
        result = 31 * result + (connectorId?.hashCode() ?: 0)
        result = 31 * result + (ipAddress?.hashCode() ?: 0)
        result = 31 * result + (macAddress?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (version?.hashCode() ?: 0)
        result = 31 * result + (vmManagerId?.hashCode() ?: 0)
        result = 31 * result + (vmManagerName?.hashCode() ?: 0)
        result = 31 * result + (vmManagerType?.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 Connector

        if (associatedOn != other.associatedOn) return false
        if (capabilityList != other.capabilityList) return false
        if (connectorId != other.connectorId) return false
        if (ipAddress != other.ipAddress) return false
        if (macAddress != other.macAddress) return false
        if (status != other.status) return false
        if (version != other.version) return false
        if (vmManagerId != other.vmManagerId) return false
        if (vmManagerName != other.vmManagerName) return false
        if (vmManagerType != other.vmManagerType) return false

        return true
    }

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

    public class Builder {
        /**
         * The time the connector was associated.
         */
        public var associatedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The capabilities of the connector.
         */
        public var capabilityList: List? = null
        /**
         * The ID of the connector.
         */
        public var connectorId: kotlin.String? = null
        /**
         * The IP address of the connector.
         */
        public var ipAddress: kotlin.String? = null
        /**
         * The MAC address of the connector.
         */
        public var macAddress: kotlin.String? = null
        /**
         * The status of the connector.
         */
        public var status: aws.sdk.kotlin.services.sms.model.ConnectorStatus? = null
        /**
         * The connector version.
         */
        public var version: kotlin.String? = null
        /**
         * The ID of the VM manager.
         */
        public var vmManagerId: kotlin.String? = null
        /**
         * The name of the VM manager.
         */
        public var vmManagerName: kotlin.String? = null
        /**
         * The VM management product.
         */
        public var vmManagerType: aws.sdk.kotlin.services.sms.model.VmManagerType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sms.model.Connector) : this() {
            this.associatedOn = x.associatedOn
            this.capabilityList = x.capabilityList
            this.connectorId = x.connectorId
            this.ipAddress = x.ipAddress
            this.macAddress = x.macAddress
            this.status = x.status
            this.version = x.version
            this.vmManagerId = x.vmManagerId
            this.vmManagerName = x.vmManagerName
            this.vmManagerType = x.vmManagerType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy