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

commonMain.aws.sdk.kotlin.services.fms.model.StatefulEngineOptions.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.fms.model



/**
 * Configuration settings for the handling of the stateful rule groups in a Network Firewall firewall policy.
 */
public class StatefulEngineOptions private constructor(builder: Builder) {
    /**
     * Indicates how to manage the order of stateful rule evaluation for the policy. `DEFAULT_ACTION_ORDER` is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see [Evaluation order for stateful rules](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html) in the *Network Firewall Developer Guide*.
     */
    public val ruleOrder: aws.sdk.kotlin.services.fms.model.RuleOrder? = builder.ruleOrder

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

    override fun toString(): kotlin.String = buildString {
        append("StatefulEngineOptions(")
        append("ruleOrder=$ruleOrder")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = ruleOrder?.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 StatefulEngineOptions

        if (ruleOrder != other.ruleOrder) return false

        return true
    }

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

    public class Builder {
        /**
         * Indicates how to manage the order of stateful rule evaluation for the policy. `DEFAULT_ACTION_ORDER` is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see [Evaluation order for stateful rules](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html) in the *Network Firewall Developer Guide*.
         */
        public var ruleOrder: aws.sdk.kotlin.services.fms.model.RuleOrder? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.StatefulEngineOptions) : this() {
            this.ruleOrder = x.ruleOrder
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy