All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.fms.model.ThirdPartyFirewallMissingSubnetViolation.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 for an Availability Zone that's missing the Firewall Manager managed subnet.
 */
public class ThirdPartyFirewallMissingSubnetViolation private constructor(builder: Builder) {
    /**
     * The Availability Zone of a subnet that's causing the violation.
     */
    public val availabilityZone: kotlin.String? = builder.availabilityZone
    /**
     * The reason the resource is causing the violation, if a reason is available.
     */
    public val targetViolationReason: kotlin.String? = builder.targetViolationReason
    /**
     * 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 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.ThirdPartyFirewallMissingSubnetViolation = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ThirdPartyFirewallMissingSubnetViolation(")
        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 ThirdPartyFirewallMissingSubnetViolation

        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.ThirdPartyFirewallMissingSubnetViolation = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Availability Zone of a subnet that's causing the violation.
         */
        public var availabilityZone: kotlin.String? = null
        /**
         * The reason the resource is causing the violation, if a reason is available.
         */
        public var targetViolationReason: 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 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.ThirdPartyFirewallMissingSubnetViolation) : 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.ThirdPartyFirewallMissingSubnetViolation = ThirdPartyFirewallMissingSubnetViolation(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy