commonMain.aws.sdk.kotlin.services.wafv2.model.FirewallManagerStatement.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a single rule group reference.
*/
public class FirewallManagerStatement private constructor(builder: Builder) {
/**
* A statement used by Firewall Manager to run the rules that are defined in a managed rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
*/
public val managedRuleGroupStatement: aws.sdk.kotlin.services.wafv2.model.ManagedRuleGroupStatement? = builder.managedRuleGroupStatement
/**
* A statement used by Firewall Manager to run the rules that are defined in a rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
*/
public val ruleGroupReferenceStatement: aws.sdk.kotlin.services.wafv2.model.RuleGroupReferenceStatement? = builder.ruleGroupReferenceStatement
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.FirewallManagerStatement = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FirewallManagerStatement(")
append("managedRuleGroupStatement=$managedRuleGroupStatement,")
append("ruleGroupReferenceStatement=$ruleGroupReferenceStatement")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = managedRuleGroupStatement?.hashCode() ?: 0
result = 31 * result + (ruleGroupReferenceStatement?.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 FirewallManagerStatement
if (managedRuleGroupStatement != other.managedRuleGroupStatement) return false
if (ruleGroupReferenceStatement != other.ruleGroupReferenceStatement) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.FirewallManagerStatement = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A statement used by Firewall Manager to run the rules that are defined in a managed rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
*/
public var managedRuleGroupStatement: aws.sdk.kotlin.services.wafv2.model.ManagedRuleGroupStatement? = null
/**
* A statement used by Firewall Manager to run the rules that are defined in a rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
*/
public var ruleGroupReferenceStatement: aws.sdk.kotlin.services.wafv2.model.RuleGroupReferenceStatement? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.FirewallManagerStatement) : this() {
this.managedRuleGroupStatement = x.managedRuleGroupStatement
this.ruleGroupReferenceStatement = x.ruleGroupReferenceStatement
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.FirewallManagerStatement = FirewallManagerStatement(this)
/**
* construct an [aws.sdk.kotlin.services.wafv2.model.ManagedRuleGroupStatement] inside the given [block]
*/
public fun managedRuleGroupStatement(block: aws.sdk.kotlin.services.wafv2.model.ManagedRuleGroupStatement.Builder.() -> kotlin.Unit) {
this.managedRuleGroupStatement = aws.sdk.kotlin.services.wafv2.model.ManagedRuleGroupStatement.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.wafv2.model.RuleGroupReferenceStatement] inside the given [block]
*/
public fun ruleGroupReferenceStatement(block: aws.sdk.kotlin.services.wafv2.model.RuleGroupReferenceStatement.Builder.() -> kotlin.Unit) {
this.ruleGroupReferenceStatement = aws.sdk.kotlin.services.wafv2.model.RuleGroupReferenceStatement.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy