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