commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingExpectedRoutesViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Violation detail for an expected route missing in Network Firewall.
*/
public class NetworkFirewallMissingExpectedRoutesViolation private constructor(builder: Builder) {
/**
* The expected routes.
*/
public val expectedRoutes: List? = builder.expectedRoutes
/**
* The target of the violation.
*/
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.NetworkFirewallMissingExpectedRoutesViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallMissingExpectedRoutesViolation(")
append("expectedRoutes=$expectedRoutes,")
append("violationTarget=$violationTarget,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = expectedRoutes?.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 NetworkFirewallMissingExpectedRoutesViolation
if (expectedRoutes != other.expectedRoutes) 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.NetworkFirewallMissingExpectedRoutesViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The expected routes.
*/
public var expectedRoutes: List? = null
/**
* The target of the violation.
*/
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.NetworkFirewallMissingExpectedRoutesViolation) : this() {
this.expectedRoutes = x.expectedRoutes
this.violationTarget = x.violationTarget
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingExpectedRoutesViolation = NetworkFirewallMissingExpectedRoutesViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy