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

commonMain.aws.sdk.kotlin.services.outposts.model.StartConnectionRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.outposts.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartConnectionRequest private constructor(builder: Builder) {
    /**
     * The ID of the Outpost server.
     */
    public val assetId: kotlin.String? = builder.assetId
    /**
     * The public key of the client.
     */
    public val clientPublicKey: kotlin.String? = builder.clientPublicKey
    /**
     * The serial number of the dongle.
     */
    public val deviceSerialNumber: kotlin.String? = builder.deviceSerialNumber
    /**
     * The device index of the network interface on the Outpost server.
     */
    public val networkInterfaceDeviceIndex: kotlin.Int? = builder.networkInterfaceDeviceIndex

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

    override fun toString(): kotlin.String = buildString {
        append("StartConnectionRequest(")
        append("assetId=$assetId,")
        append("clientPublicKey=$clientPublicKey,")
        append("deviceSerialNumber=$deviceSerialNumber,")
        append("networkInterfaceDeviceIndex=$networkInterfaceDeviceIndex")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = assetId?.hashCode() ?: 0
        result = 31 * result + (clientPublicKey?.hashCode() ?: 0)
        result = 31 * result + (deviceSerialNumber?.hashCode() ?: 0)
        result = 31 * result + (networkInterfaceDeviceIndex ?: 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 StartConnectionRequest

        if (assetId != other.assetId) return false
        if (clientPublicKey != other.clientPublicKey) return false
        if (deviceSerialNumber != other.deviceSerialNumber) return false
        if (networkInterfaceDeviceIndex != other.networkInterfaceDeviceIndex) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the Outpost server.
         */
        public var assetId: kotlin.String? = null
        /**
         * The public key of the client.
         */
        public var clientPublicKey: kotlin.String? = null
        /**
         * The serial number of the dongle.
         */
        public var deviceSerialNumber: kotlin.String? = null
        /**
         * The device index of the network interface on the Outpost server.
         */
        public var networkInterfaceDeviceIndex: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.outposts.model.StartConnectionRequest) : this() {
            this.assetId = x.assetId
            this.clientPublicKey = x.clientPublicKey
            this.deviceSerialNumber = x.deviceSerialNumber
            this.networkInterfaceDeviceIndex = x.networkInterfaceDeviceIndex
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy