commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallUnexpectedFirewallRoutesViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Violation detail for an unexpected route that's present in a route table.
*/
public class NetworkFirewallUnexpectedFirewallRoutesViolation private constructor(builder: Builder) {
/**
* The endpoint of the firewall.
*/
public val firewallEndpoint: kotlin.String? = builder.firewallEndpoint
/**
* The subnet ID for the firewall.
*/
public val firewallSubnetId: kotlin.String? = builder.firewallSubnetId
/**
* The ID of the route table.
*/
public val routeTableId: kotlin.String? = builder.routeTableId
/**
* The routes that are in violation.
*/
public val violatingRoutes: List? = builder.violatingRoutes
/**
* 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.NetworkFirewallUnexpectedFirewallRoutesViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallUnexpectedFirewallRoutesViolation(")
append("firewallEndpoint=$firewallEndpoint,")
append("firewallSubnetId=$firewallSubnetId,")
append("routeTableId=$routeTableId,")
append("violatingRoutes=$violatingRoutes,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = firewallEndpoint?.hashCode() ?: 0
result = 31 * result + (firewallSubnetId?.hashCode() ?: 0)
result = 31 * result + (routeTableId?.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 NetworkFirewallUnexpectedFirewallRoutesViolation
if (firewallEndpoint != other.firewallEndpoint) return false
if (firewallSubnetId != other.firewallSubnetId) return false
if (routeTableId != other.routeTableId) 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.NetworkFirewallUnexpectedFirewallRoutesViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The endpoint of the firewall.
*/
public var firewallEndpoint: kotlin.String? = null
/**
* The subnet ID for the firewall.
*/
public var firewallSubnetId: kotlin.String? = null
/**
* The ID of the route table.
*/
public var routeTableId: kotlin.String? = null
/**
* The routes that are in violation.
*/
public var violatingRoutes: List? = 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.NetworkFirewallUnexpectedFirewallRoutesViolation) : this() {
this.firewallEndpoint = x.firewallEndpoint
this.firewallSubnetId = x.firewallSubnetId
this.routeTableId = x.routeTableId
this.violatingRoutes = x.violatingRoutes
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallUnexpectedFirewallRoutesViolation = NetworkFirewallUnexpectedFirewallRoutesViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy