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

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

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

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

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

/**
 * Information about the virtual interface failover test.
 */
public class VirtualInterfaceTestHistory private constructor(builder: Builder) {
    /**
     * The BGP peers that were put in the DOWN state as part of the virtual interface failover test.
     */
    public val bgpPeers: List? = builder.bgpPeers
    /**
     * The time that the virtual interface moves out of the DOWN state.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The owner ID of the tested virtual interface.
     */
    public val ownerAccount: kotlin.String? = builder.ownerAccount
    /**
     * The time that the virtual interface moves to the DOWN state.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The status of the virtual interface failover test.
     */
    public val status: kotlin.String? = builder.status
    /**
     * The time that the virtual interface failover test ran in minutes.
     */
    public val testDurationInMinutes: kotlin.Int? = builder.testDurationInMinutes
    /**
     * The ID of the virtual interface failover test.
     */
    public val testId: kotlin.String? = builder.testId
    /**
     * The ID of the tested virtual interface.
     */
    public val virtualInterfaceId: kotlin.String? = builder.virtualInterfaceId

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

    override fun toString(): kotlin.String = buildString {
        append("VirtualInterfaceTestHistory(")
        append("bgpPeers=$bgpPeers,")
        append("endTime=$endTime,")
        append("ownerAccount=$ownerAccount,")
        append("startTime=$startTime,")
        append("status=$status,")
        append("testDurationInMinutes=$testDurationInMinutes,")
        append("testId=$testId,")
        append("virtualInterfaceId=$virtualInterfaceId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bgpPeers?.hashCode() ?: 0
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (ownerAccount?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (testDurationInMinutes ?: 0)
        result = 31 * result + (testId?.hashCode() ?: 0)
        result = 31 * result + (virtualInterfaceId?.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 VirtualInterfaceTestHistory

        if (bgpPeers != other.bgpPeers) return false
        if (endTime != other.endTime) return false
        if (ownerAccount != other.ownerAccount) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false
        if (testDurationInMinutes != other.testDurationInMinutes) return false
        if (testId != other.testId) return false
        if (virtualInterfaceId != other.virtualInterfaceId) return false

        return true
    }

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

    public class Builder {
        /**
         * The BGP peers that were put in the DOWN state as part of the virtual interface failover test.
         */
        public var bgpPeers: List? = null
        /**
         * The time that the virtual interface moves out of the DOWN state.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The owner ID of the tested virtual interface.
         */
        public var ownerAccount: kotlin.String? = null
        /**
         * The time that the virtual interface moves to the DOWN state.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the virtual interface failover test.
         */
        public var status: kotlin.String? = null
        /**
         * The time that the virtual interface failover test ran in minutes.
         */
        public var testDurationInMinutes: kotlin.Int? = null
        /**
         * The ID of the virtual interface failover test.
         */
        public var testId: kotlin.String? = null
        /**
         * The ID of the tested virtual interface.
         */
        public var virtualInterfaceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.directconnect.model.VirtualInterfaceTestHistory) : this() {
            this.bgpPeers = x.bgpPeers
            this.endTime = x.endTime
            this.ownerAccount = x.ownerAccount
            this.startTime = x.startTime
            this.status = x.status
            this.testDurationInMinutes = x.testDurationInMinutes
            this.testId = x.testId
            this.virtualInterfaceId = x.virtualInterfaceId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy