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

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

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

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



/**
 * Contains details about the route endpoint that violates the policy scope.
 */
public class RouteHasOutOfScopeEndpointViolation private constructor(builder: Builder) {
    /**
     * The route table associated with the current firewall subnet.
     */
    public val currentFirewallSubnetRouteTable: kotlin.String? = builder.currentFirewallSubnetRouteTable
    /**
     * The current route table associated with the Internet Gateway.
     */
    public val currentInternetGatewayRouteTable: kotlin.String? = builder.currentInternetGatewayRouteTable
    /**
     * The ID of the firewall subnet.
     */
    public val firewallSubnetId: kotlin.String? = builder.firewallSubnetId
    /**
     * The list of firewall subnet routes.
     */
    public val firewallSubnetRoutes: List? = builder.firewallSubnetRoutes
    /**
     * The ID of the Internet Gateway.
     */
    public val internetGatewayId: kotlin.String? = builder.internetGatewayId
    /**
     * The routes in the route table associated with the Internet Gateway.
     */
    public val internetGatewayRoutes: List? = builder.internetGatewayRoutes
    /**
     * The ID of the route table.
     */
    public val routeTableId: kotlin.String? = builder.routeTableId
    /**
     * The subnet's Availability Zone.
     */
    public val subnetAvailabilityZone: kotlin.String? = builder.subnetAvailabilityZone
    /**
     * The ID of the subnet's Availability Zone.
     */
    public val subnetAvailabilityZoneId: kotlin.String? = builder.subnetAvailabilityZoneId
    /**
     * The ID of the subnet associated with the route that violates the policy scope.
     */
    public val subnetId: kotlin.String? = builder.subnetId
    /**
     * The list of routes that violate the route table.
     */
    public val violatingRoutes: List? = builder.violatingRoutes
    /**
     * The VPC ID of the route that violates the policy scope.
     */
    public val vpcId: kotlin.String? = builder.vpcId

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

    override fun toString(): kotlin.String = buildString {
        append("RouteHasOutOfScopeEndpointViolation(")
        append("currentFirewallSubnetRouteTable=$currentFirewallSubnetRouteTable,")
        append("currentInternetGatewayRouteTable=$currentInternetGatewayRouteTable,")
        append("firewallSubnetId=$firewallSubnetId,")
        append("firewallSubnetRoutes=$firewallSubnetRoutes,")
        append("internetGatewayId=$internetGatewayId,")
        append("internetGatewayRoutes=$internetGatewayRoutes,")
        append("routeTableId=$routeTableId,")
        append("subnetAvailabilityZone=$subnetAvailabilityZone,")
        append("subnetAvailabilityZoneId=$subnetAvailabilityZoneId,")
        append("subnetId=$subnetId,")
        append("violatingRoutes=$violatingRoutes,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = currentFirewallSubnetRouteTable?.hashCode() ?: 0
        result = 31 * result + (currentInternetGatewayRouteTable?.hashCode() ?: 0)
        result = 31 * result + (firewallSubnetId?.hashCode() ?: 0)
        result = 31 * result + (firewallSubnetRoutes?.hashCode() ?: 0)
        result = 31 * result + (internetGatewayId?.hashCode() ?: 0)
        result = 31 * result + (internetGatewayRoutes?.hashCode() ?: 0)
        result = 31 * result + (routeTableId?.hashCode() ?: 0)
        result = 31 * result + (subnetAvailabilityZone?.hashCode() ?: 0)
        result = 31 * result + (subnetAvailabilityZoneId?.hashCode() ?: 0)
        result = 31 * result + (subnetId?.hashCode() ?: 0)
        result = 31 * result + (violatingRoutes?.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 RouteHasOutOfScopeEndpointViolation

        if (currentFirewallSubnetRouteTable != other.currentFirewallSubnetRouteTable) return false
        if (currentInternetGatewayRouteTable != other.currentInternetGatewayRouteTable) return false
        if (firewallSubnetId != other.firewallSubnetId) return false
        if (firewallSubnetRoutes != other.firewallSubnetRoutes) return false
        if (internetGatewayId != other.internetGatewayId) return false
        if (internetGatewayRoutes != other.internetGatewayRoutes) return false
        if (routeTableId != other.routeTableId) return false
        if (subnetAvailabilityZone != other.subnetAvailabilityZone) return false
        if (subnetAvailabilityZoneId != other.subnetAvailabilityZoneId) return false
        if (subnetId != other.subnetId) return false
        if (violatingRoutes != other.violatingRoutes) return false
        if (vpcId != other.vpcId) return false

        return true
    }

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

    public class Builder {
        /**
         * The route table associated with the current firewall subnet.
         */
        public var currentFirewallSubnetRouteTable: kotlin.String? = null
        /**
         * The current route table associated with the Internet Gateway.
         */
        public var currentInternetGatewayRouteTable: kotlin.String? = null
        /**
         * The ID of the firewall subnet.
         */
        public var firewallSubnetId: kotlin.String? = null
        /**
         * The list of firewall subnet routes.
         */
        public var firewallSubnetRoutes: List? = null
        /**
         * The ID of the Internet Gateway.
         */
        public var internetGatewayId: kotlin.String? = null
        /**
         * The routes in the route table associated with the Internet Gateway.
         */
        public var internetGatewayRoutes: List? = null
        /**
         * The ID of the route table.
         */
        public var routeTableId: kotlin.String? = null
        /**
         * The subnet's Availability Zone.
         */
        public var subnetAvailabilityZone: kotlin.String? = null
        /**
         * The ID of the subnet's Availability Zone.
         */
        public var subnetAvailabilityZoneId: kotlin.String? = null
        /**
         * The ID of the subnet associated with the route that violates the policy scope.
         */
        public var subnetId: kotlin.String? = null
        /**
         * The list of routes that violate the route table.
         */
        public var violatingRoutes: List? = null
        /**
         * The VPC ID of the route that violates the policy scope.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.RouteHasOutOfScopeEndpointViolation) : this() {
            this.currentFirewallSubnetRouteTable = x.currentFirewallSubnetRouteTable
            this.currentInternetGatewayRouteTable = x.currentInternetGatewayRouteTable
            this.firewallSubnetId = x.firewallSubnetId
            this.firewallSubnetRoutes = x.firewallSubnetRoutes
            this.internetGatewayId = x.internetGatewayId
            this.internetGatewayRoutes = x.internetGatewayRoutes
            this.routeTableId = x.routeTableId
            this.subnetAvailabilityZone = x.subnetAvailabilityZone
            this.subnetAvailabilityZoneId = x.subnetAvailabilityZoneId
            this.subnetId = x.subnetId
            this.violatingRoutes = x.violatingRoutes
            this.vpcId = x.vpcId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy