commonMain.aws.sdk.kotlin.services.fms.model.FirewallSubnetIsOutOfScopeViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Contains details about the firewall subnet that violates the policy scope.
*/
public class FirewallSubnetIsOutOfScopeViolation private constructor(builder: Builder) {
/**
* The ID of the firewall subnet that violates the policy scope.
*/
public val firewallSubnetId: kotlin.String? = builder.firewallSubnetId
/**
* The Availability Zone of the firewall subnet that violates the policy scope.
*/
public val subnetAvailabilityZone: kotlin.String? = builder.subnetAvailabilityZone
/**
* The Availability Zone ID of the firewall subnet that violates the policy scope.
*/
public val subnetAvailabilityZoneId: kotlin.String? = builder.subnetAvailabilityZoneId
/**
* The VPC endpoint ID of the firewall subnet that violates the policy scope.
*/
public val vpcEndpointId: kotlin.String? = builder.vpcEndpointId
/**
* The VPC ID of the firewall subnet that violates the policy scope.
*/
public val vpcId: kotlin.String? = builder.vpcId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.FirewallSubnetIsOutOfScopeViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FirewallSubnetIsOutOfScopeViolation(")
append("firewallSubnetId=$firewallSubnetId,")
append("subnetAvailabilityZone=$subnetAvailabilityZone,")
append("subnetAvailabilityZoneId=$subnetAvailabilityZoneId,")
append("vpcEndpointId=$vpcEndpointId,")
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 + (vpcEndpointId?.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 FirewallSubnetIsOutOfScopeViolation
if (firewallSubnetId != other.firewallSubnetId) return false
if (subnetAvailabilityZone != other.subnetAvailabilityZone) return false
if (subnetAvailabilityZoneId != other.subnetAvailabilityZoneId) return false
if (vpcEndpointId != other.vpcEndpointId) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.FirewallSubnetIsOutOfScopeViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the firewall subnet that violates the policy scope.
*/
public var firewallSubnetId: kotlin.String? = null
/**
* The Availability Zone of the firewall subnet that violates the policy scope.
*/
public var subnetAvailabilityZone: kotlin.String? = null
/**
* The Availability Zone ID of the firewall subnet that violates the policy scope.
*/
public var subnetAvailabilityZoneId: kotlin.String? = null
/**
* The VPC endpoint ID of the firewall subnet that violates the policy scope.
*/
public var vpcEndpointId: kotlin.String? = null
/**
* The VPC ID of the firewall subnet that violates the policy scope.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.FirewallSubnetIsOutOfScopeViolation) : this() {
this.firewallSubnetId = x.firewallSubnetId
this.subnetAvailabilityZone = x.subnetAvailabilityZone
this.subnetAvailabilityZoneId = x.subnetAvailabilityZoneId
this.vpcEndpointId = x.vpcEndpointId
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.FirewallSubnetIsOutOfScopeViolation = FirewallSubnetIsOutOfScopeViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy