commonMain.aws.sdk.kotlin.services.wafv2.model.ChallengeConfig.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
/**
* Specifies how WAF should handle `Challenge` evaluations. This is available at the web ACL level and in each rule.
*/
public class ChallengeConfig private constructor(builder: Builder) {
/**
* Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.
*/
public val immunityTimeProperty: aws.sdk.kotlin.services.wafv2.model.ImmunityTimeProperty? = builder.immunityTimeProperty
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.ChallengeConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChallengeConfig(")
append("immunityTimeProperty=$immunityTimeProperty")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = immunityTimeProperty?.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 ChallengeConfig
if (immunityTimeProperty != other.immunityTimeProperty) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.ChallengeConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.
*/
public var immunityTimeProperty: aws.sdk.kotlin.services.wafv2.model.ImmunityTimeProperty? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.ChallengeConfig) : this() {
this.immunityTimeProperty = x.immunityTimeProperty
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.ChallengeConfig = ChallengeConfig(this)
/**
* construct an [aws.sdk.kotlin.services.wafv2.model.ImmunityTimeProperty] inside the given [block]
*/
public fun immunityTimeProperty(block: aws.sdk.kotlin.services.wafv2.model.ImmunityTimeProperty.Builder.() -> kotlin.Unit) {
this.immunityTimeProperty = aws.sdk.kotlin.services.wafv2.model.ImmunityTimeProperty.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy