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

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

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

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



public class ConfirmTransitVirtualInterfaceResponse private constructor(builder: Builder) {
    /**
     * The state of the virtual interface. The following are the possible values:
     * + `confirming`: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
     * + `verifying`: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
     * + `pending`: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
     * + `available`: A virtual interface that is able to forward traffic.
     * + `down`: A virtual interface that is BGP down.
     * + `deleting`: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
     * + `deleted`: A virtual interface that cannot forward traffic.
     * + `rejected`: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the `Confirming` state is deleted by the virtual interface owner, the virtual interface enters the `Rejected` state.
     * + `unknown`: The state of the virtual interface is not available.
     */
    public val virtualInterfaceState: aws.sdk.kotlin.services.directconnect.model.VirtualInterfaceState? = builder.virtualInterfaceState

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

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

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

        if (virtualInterfaceState != other.virtualInterfaceState) return false

        return true
    }

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

    public class Builder {
        /**
         * The state of the virtual interface. The following are the possible values:
         * + `confirming`: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
         * + `verifying`: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
         * + `pending`: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
         * + `available`: A virtual interface that is able to forward traffic.
         * + `down`: A virtual interface that is BGP down.
         * + `deleting`: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
         * + `deleted`: A virtual interface that cannot forward traffic.
         * + `rejected`: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the `Confirming` state is deleted by the virtual interface owner, the virtual interface enters the `Rejected` state.
         * + `unknown`: The state of the virtual interface is not available.
         */
        public var virtualInterfaceState: aws.sdk.kotlin.services.directconnect.model.VirtualInterfaceState? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy