commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallUnexpectedGatewayRoutesViolation.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 gateway route that’s present in a route table.
*/
public class NetworkFirewallUnexpectedGatewayRoutesViolation private constructor(builder: Builder) {
/**
* Information about the gateway ID.
*/
public val gatewayId: kotlin.String? = builder.gatewayId
/**
* Information about 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.NetworkFirewallUnexpectedGatewayRoutesViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallUnexpectedGatewayRoutesViolation(")
append("gatewayId=$gatewayId,")
append("routeTableId=$routeTableId,")
append("violatingRoutes=$violatingRoutes,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gatewayId?.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 NetworkFirewallUnexpectedGatewayRoutesViolation
if (gatewayId != other.gatewayId) 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.NetworkFirewallUnexpectedGatewayRoutesViolation = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the gateway ID.
*/
public var gatewayId: kotlin.String? = null
/**
* Information about 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.NetworkFirewallUnexpectedGatewayRoutesViolation) : this() {
this.gatewayId = x.gatewayId
this.routeTableId = x.routeTableId
this.violatingRoutes = x.violatingRoutes
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallUnexpectedGatewayRoutesViolation = NetworkFirewallUnexpectedGatewayRoutesViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy