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

commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallBlackHoleRouteDetectedViolation.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fms.model



/**
 * Violation detail for an internet gateway route with an inactive state in the customer subnet route table or Network Firewall subnet route table.
 */
public class NetworkFirewallBlackHoleRouteDetectedViolation private constructor(builder: Builder) {
    /**
     * Information about the route table ID.
     */
    public val routeTableId: kotlin.String? = builder.routeTableId
    /**
     * Information about the route or routes that are in violation.
     */
    public val violatingRoutes: List? = builder.violatingRoutes
    /**
     * The subnet that has an inactive state.
     */
    public val violationTarget: kotlin.String? = builder.violationTarget
    /**
     * Information about the VPC ID.
     */
    public val vpcId: kotlin.String? = builder.vpcId

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

    override fun toString(): kotlin.String = buildString {
        append("NetworkFirewallBlackHoleRouteDetectedViolation(")
        append("routeTableId=$routeTableId,")
        append("violatingRoutes=$violatingRoutes,")
        append("violationTarget=$violationTarget,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = routeTableId?.hashCode() ?: 0
        result = 31 * result + (violatingRoutes?.hashCode() ?: 0)
        result = 31 * result + (violationTarget?.hashCode() ?: 0)
        result = 31 * result + (vpcId?.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 NetworkFirewallBlackHoleRouteDetectedViolation

        if (routeTableId != other.routeTableId) return false
        if (violatingRoutes != other.violatingRoutes) return false
        if (violationTarget != other.violationTarget) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    public class Builder {
        /**
         * Information about the route table ID.
         */
        public var routeTableId: kotlin.String? = null
        /**
         * Information about the route or routes that are in violation.
         */
        public var violatingRoutes: List? = null
        /**
         * The subnet that has an inactive state.
         */
        public var violationTarget: kotlin.String? = null
        /**
         * Information about the VPC ID.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.NetworkFirewallBlackHoleRouteDetectedViolation) : this() {
            this.routeTableId = x.routeTableId
            this.violatingRoutes = x.violatingRoutes
            this.violationTarget = x.violationTarget
            this.vpcId = x.vpcId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallBlackHoleRouteDetectedViolation = NetworkFirewallBlackHoleRouteDetectedViolation(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy