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

commonMain.aws.sdk.kotlin.services.directconnect.model.ConfirmConnectionResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.directconnect.model



public class ConfirmConnectionResponse private constructor(builder: Builder) {
    /**
     * The state of the connection. The following are the possible values:
     * + `ordering`: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
     * + `requested`: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
     * + `pending`: The connection has been approved and is being initialized.
     * + `available`: The network link is up and the connection is ready for use.
     * + `down`: The network link is down.
     * + `deleting`: The connection is being deleted.
     * + `deleted`: The connection has been deleted.
     * + `rejected`: A hosted connection in the `ordering` state enters the `rejected` state if it is deleted by the customer.
     * + `unknown`: The state of the connection is not available.
     */
    public val connectionState: aws.sdk.kotlin.services.directconnect.model.ConnectionState? = builder.connectionState

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

    override fun toString(): kotlin.String = buildString {
        append("ConfirmConnectionResponse(")
        append("connectionState=$connectionState")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionState?.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 ConfirmConnectionResponse

        if (connectionState != other.connectionState) return false

        return true
    }

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

    public class Builder {
        /**
         * The state of the connection. The following are the possible values:
         * + `ordering`: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
         * + `requested`: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
         * + `pending`: The connection has been approved and is being initialized.
         * + `available`: The network link is up and the connection is ready for use.
         * + `down`: The network link is down.
         * + `deleting`: The connection is being deleted.
         * + `deleted`: The connection has been deleted.
         * + `rejected`: A hosted connection in the `ordering` state enters the `rejected` state if it is deleted by the customer.
         * + `unknown`: The state of the connection is not available.
         */
        public var connectionState: aws.sdk.kotlin.services.directconnect.model.ConnectionState? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.directconnect.model.ConfirmConnectionResponse) : this() {
            this.connectionState = x.connectionState
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy