commonMain.aws.sdk.kotlin.services.fms.model.NetworkFirewallStatefulRuleGroupOverride.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* The setting that allows the policy owner to change the behavior of the rule group within a policy.
*/
public class NetworkFirewallStatefulRuleGroupOverride private constructor(builder: Builder) {
/**
* The action that changes the rule group from `DROP` to `ALERT`. This only applies to managed rule groups.
*/
public val action: aws.sdk.kotlin.services.fms.model.NetworkFirewallOverrideAction? = builder.action
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.NetworkFirewallStatefulRuleGroupOverride = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkFirewallStatefulRuleGroupOverride(")
append("action=$action")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.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 NetworkFirewallStatefulRuleGroupOverride
if (action != other.action) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.NetworkFirewallStatefulRuleGroupOverride = Builder(this).apply(block).build()
public class Builder {
/**
* The action that changes the rule group from `DROP` to `ALERT`. This only applies to managed rule groups.
*/
public var action: aws.sdk.kotlin.services.fms.model.NetworkFirewallOverrideAction? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.NetworkFirewallStatefulRuleGroupOverride) : this() {
this.action = x.action
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.NetworkFirewallStatefulRuleGroupOverride = NetworkFirewallStatefulRuleGroupOverride(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy