commonMain.aws.sdk.kotlin.services.fms.model.DnsRuleGroupLimitExceededViolation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* The VPC that Firewall Manager was applying a DNS Fireall policy to reached the limit for associated DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed due to the limit.
*/
public class DnsRuleGroupLimitExceededViolation private constructor(builder: Builder) {
/**
* The number of rule groups currently associated with the VPC.
*/
public val numberOfRuleGroupsAlreadyAssociated: kotlin.Int = builder.numberOfRuleGroupsAlreadyAssociated
/**
* Information about the VPC ID.
*/
public val violationTarget: kotlin.String? = builder.violationTarget
/**
* A description of the violation that specifies the rule group and VPC.
*/
public val violationTargetDescription: kotlin.String? = builder.violationTargetDescription
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.DnsRuleGroupLimitExceededViolation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DnsRuleGroupLimitExceededViolation(")
append("numberOfRuleGroupsAlreadyAssociated=$numberOfRuleGroupsAlreadyAssociated,")
append("violationTarget=$violationTarget,")
append("violationTargetDescription=$violationTargetDescription")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = numberOfRuleGroupsAlreadyAssociated
result = 31 * result + (violationTarget?.hashCode() ?: 0)
result = 31 * result + (violationTargetDescription?.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 DnsRuleGroupLimitExceededViolation
if (numberOfRuleGroupsAlreadyAssociated != other.numberOfRuleGroupsAlreadyAssociated) return false
if (violationTarget != other.violationTarget) return false
if (violationTargetDescription != other.violationTargetDescription) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.DnsRuleGroupLimitExceededViolation = Builder(this).apply(block).build()
public class Builder {
/**
* The number of rule groups currently associated with the VPC.
*/
public var numberOfRuleGroupsAlreadyAssociated: kotlin.Int = 0
/**
* Information about the VPC ID.
*/
public var violationTarget: kotlin.String? = null
/**
* A description of the violation that specifies the rule group and VPC.
*/
public var violationTargetDescription: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.DnsRuleGroupLimitExceededViolation) : this() {
this.numberOfRuleGroupsAlreadyAssociated = x.numberOfRuleGroupsAlreadyAssociated
this.violationTarget = x.violationTarget
this.violationTargetDescription = x.violationTargetDescription
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.DnsRuleGroupLimitExceededViolation = DnsRuleGroupLimitExceededViolation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy