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

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

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

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



public class StartBgpFailoverTestResponse private constructor(builder: Builder) {
    /**
     * Information about the virtual interface failover test.
     */
    public val virtualInterfaceTest: aws.sdk.kotlin.services.directconnect.model.VirtualInterfaceTestHistory? = builder.virtualInterfaceTest

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

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

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

        if (virtualInterfaceTest != other.virtualInterfaceTest) return false

        return true
    }

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

    public class Builder {
        /**
         * Information about the virtual interface failover test.
         */
        public var virtualInterfaceTest: aws.sdk.kotlin.services.directconnect.model.VirtualInterfaceTestHistory? = null

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy