commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingSubnetViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Violation detail for Network Firewall for an Availability Zone that's missing the expected Firewall Manager managed subnet.
*/
public class NetworkFirewallMissingSubnetViolation private constructor(builder: Builder) {
/**
* The Availability Zone of a violating subnet.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The reason the resource has this violation, if one is available.
*/
public val targetViolationReason: kotlin.String? = builder.targetViolationReason
/**
* The ID of the Network Firewall or VPC resource that's in violation.
*/
public val violationTarget: kotlin.String? = builder.violationTarget
/**
* The resource ID of the VPC associated with a violating subnet.
*/
public val vpc: kotlin.String? = builder.vpc
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingSubnetViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallMissingSubnetViolation(")
append("availabilityZone=$availabilityZone,")
append("targetViolationReason=$targetViolationReason,")
append("violationTarget=$violationTarget,")
append("vpc=$vpc")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZone?.hashCode() ?: 0
result = 31 * result + (targetViolationReason?.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 NetworkFirewallMissingSubnetViolation
if (availabilityZone != other.availabilityZone) return false
if (targetViolationReason != other.targetViolationReason) 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.NetworkFirewallMissingSubnetViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The Availability Zone of a violating subnet.
*/
public var availabilityZone: kotlin.String? = null
/**
* The reason the resource has this violation, if one is available.
*/
public var targetViolationReason: kotlin.String? = null
/**
* The ID of the Network Firewall or VPC resource that's in violation.
*/
public var violationTarget: kotlin.String? = null
/**
* The resource ID of the VPC associated with a violating subnet.
*/
public var vpc: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingSubnetViolation) : this() {
this.availabilityZone = x.availabilityZone
this.targetViolationReason = x.targetViolationReason
this.violationTarget = x.violationTarget
this.vpc = x.vpc
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallMissingSubnetViolation = NetworkFirewallMissingSubnetViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy