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

commonMain.aws.sdk.kotlin.services.fms.model.FirewallSubnetMissingVpcEndpointViolation.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 firewall subnet's VPC endpoint that's deleted or missing.
 */
public class FirewallSubnetMissingVpcEndpointViolation private constructor(builder: Builder) {
    /**
     * The ID of the firewall that this VPC endpoint is associated with.
     */
    public val firewallSubnetId: kotlin.String? = builder.firewallSubnetId
    /**
     * The name of the Availability Zone of the deleted VPC subnet.
     */
    public val subnetAvailabilityZone: kotlin.String? = builder.subnetAvailabilityZone
    /**
     * The ID of the Availability Zone of the deleted VPC subnet.
     */
    public val subnetAvailabilityZoneId: kotlin.String? = builder.subnetAvailabilityZoneId
    /**
     * The resource ID of the VPC associated with the deleted VPC subnet.
     */
    public val vpcId: kotlin.String? = builder.vpcId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.FirewallSubnetMissingVpcEndpointViolation = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("FirewallSubnetMissingVpcEndpointViolation(")
        append("firewallSubnetId=$firewallSubnetId,")
        append("subnetAvailabilityZone=$subnetAvailabilityZone,")
        append("subnetAvailabilityZoneId=$subnetAvailabilityZoneId,")
        append("vpcId=$vpcId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = firewallSubnetId?.hashCode() ?: 0
        result = 31 * result + (subnetAvailabilityZone?.hashCode() ?: 0)
        result = 31 * result + (subnetAvailabilityZoneId?.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 FirewallSubnetMissingVpcEndpointViolation

        if (firewallSubnetId != other.firewallSubnetId) return false
        if (subnetAvailabilityZone != other.subnetAvailabilityZone) return false
        if (subnetAvailabilityZoneId != other.subnetAvailabilityZoneId) return false
        if (vpcId != other.vpcId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.FirewallSubnetMissingVpcEndpointViolation = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The ID of the firewall that this VPC endpoint is associated with.
         */
        public var firewallSubnetId: kotlin.String? = null
        /**
         * The name of the Availability Zone of the deleted VPC subnet.
         */
        public var subnetAvailabilityZone: kotlin.String? = null
        /**
         * The ID of the Availability Zone of the deleted VPC subnet.
         */
        public var subnetAvailabilityZoneId: kotlin.String? = null
        /**
         * The resource ID of the VPC associated with the deleted VPC subnet.
         */
        public var vpcId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.FirewallSubnetMissingVpcEndpointViolation) : this() {
            this.firewallSubnetId = x.firewallSubnetId
            this.subnetAvailabilityZone = x.subnetAvailabilityZone
            this.subnetAvailabilityZoneId = x.subnetAvailabilityZoneId
            this.vpcId = x.vpcId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.fms.model.FirewallSubnetMissingVpcEndpointViolation = FirewallSubnetMissingVpcEndpointViolation(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy