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

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

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

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



/**
 * Violation detail for Network Firewall for a subnet that's not associated to the expected Firewall Manager managed route table.
 */
public class NetworkFirewallMissingExpectedRtViolation private constructor(builder: Builder) {
    /**
     * The Availability Zone of a violating subnet.
     */
    public val availabilityZone: kotlin.String? = builder.availabilityZone
    /**
     * The resource ID of the current route table that's associated with the subnet, if one is available.
     */
    public val currentRouteTable: kotlin.String? = builder.currentRouteTable
    /**
     * The resource ID of the route table that should be associated with the subnet.
     */
    public val expectedRouteTable: kotlin.String? = builder.expectedRouteTable
    /**
     * The ID of the Network Firewall or VPC resource that's in violation.
     */
    public val violationTarget: kotlin.String? = builder.violationTarget
    /**
     * The resource ID of the VPC associated with a violating subnet.
     */
    public val vpc: kotlin.String? = builder.vpc

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

    override fun toString(): kotlin.String = buildString {
        append("NetworkFirewallMissingExpectedRtViolation(")
        append("availabilityZone=$availabilityZone,")
        append("currentRouteTable=$currentRouteTable,")
        append("expectedRouteTable=$expectedRouteTable,")
        append("violationTarget=$violationTarget,")
        append("vpc=$vpc")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = availabilityZone?.hashCode() ?: 0
        result = 31 * result + (currentRouteTable?.hashCode() ?: 0)
        result = 31 * result + (expectedRouteTable?.hashCode() ?: 0)
        result = 31 * result + (violationTarget?.hashCode() ?: 0)
        result = 31 * result + (vpc?.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 NetworkFirewallMissingExpectedRtViolation

        if (availabilityZone != other.availabilityZone) return false
        if (currentRouteTable != other.currentRouteTable) return false
        if (expectedRouteTable != other.expectedRouteTable) return false
        if (violationTarget != other.violationTarget) return false
        if (vpc != other.vpc) return false

        return true
    }

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

    public class Builder {
        /**
         * The Availability Zone of a violating subnet.
         */
        public var availabilityZone: kotlin.String? = null
        /**
         * The resource ID of the current route table that's associated with the subnet, if one is available.
         */
        public var currentRouteTable: kotlin.String? = null
        /**
         * The resource ID of the route table that should be associated with the subnet.
         */
        public var expectedRouteTable: kotlin.String? = null
        /**
         * The ID of the Network Firewall or VPC resource that's in violation.
         */
        public var violationTarget: kotlin.String? = null
        /**
         * The resource ID of the VPC associated with a violating subnet.
         */
        public var vpc: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingExpectedRtViolation) : this() {
            this.availabilityZone = x.availabilityZone
            this.currentRouteTable = x.currentRouteTable
            this.expectedRouteTable = x.expectedRouteTable
            this.violationTarget = x.violationTarget
            this.vpc = x.vpc
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy