commonMain.aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallMissingExpectedRouteTableViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* The violation details for a third-party firewall that's not associated with an Firewall Manager managed route table.
*/
public class ThirdPartyFirewallMissingExpectedRouteTableViolation private constructor(builder: Builder) {
/**
* The Availability Zone of the firewall subnet that's causing the violation.
*/
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 third-party firewall or VPC resource that's causing the violation.
*/
public val violationTarget: kotlin.String? = builder.violationTarget
/**
* The resource ID of the VPC associated with a fireawll subnet that's causing the violation.
*/
public val vpc: kotlin.String? = builder.vpc
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallMissingExpectedRouteTableViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ThirdPartyFirewallMissingExpectedRouteTableViolation(")
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 ThirdPartyFirewallMissingExpectedRouteTableViolation
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.ThirdPartyFirewallMissingExpectedRouteTableViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The Availability Zone of the firewall subnet that's causing the violation.
*/
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 third-party firewall or VPC resource that's causing the violation.
*/
public var violationTarget: kotlin.String? = null
/**
* The resource ID of the VPC associated with a fireawll subnet that's causing the violation.
*/
public var vpc: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallMissingExpectedRouteTableViolation) : 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.ThirdPartyFirewallMissingExpectedRouteTableViolation = ThirdPartyFirewallMissingExpectedRouteTableViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy