commonMain.aws.sdk.kotlin.services.wafv2.model.GetWebAclResponse.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetWebAclResponse private constructor(builder: Builder) {
/**
* The URL to use in SDK integrations with Amazon Web Services managed rule groups. For example, you can use the integration SDKs with the account takeover prevention managed rule group `AWSManagedRulesATPRuleSet` and the account creation fraud prevention managed rule group `AWSManagedRulesACFPRuleSet`. This is only populated if you are using a rule group in your web ACL that integrates with your applications in this way. For more information, see [WAF client application integration](https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html) in the *WAF Developer Guide*.
*/
public val applicationIntegrationUrl: kotlin.String? = builder.applicationIntegrationUrl
/**
* A token used for optimistic locking. WAF returns a token to your `get` and `list` requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like `update` and `delete`. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a `WAFOptimisticLockException`. If this happens, perform another `get`, and use the new token returned by that operation.
*/
public val lockToken: kotlin.String? = builder.lockToken
/**
* The web ACL specification. You can modify the settings in this web ACL and use it to update this web ACL or create a new one.
*/
public val webAcl: aws.sdk.kotlin.services.wafv2.model.WebAcl? = builder.webAcl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.GetWebAclResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWebAclResponse(")
append("applicationIntegrationUrl=$applicationIntegrationUrl,")
append("lockToken=$lockToken,")
append("webAcl=$webAcl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationIntegrationUrl?.hashCode() ?: 0
result = 31 * result + (lockToken?.hashCode() ?: 0)
result = 31 * result + (webAcl?.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 GetWebAclResponse
if (applicationIntegrationUrl != other.applicationIntegrationUrl) return false
if (lockToken != other.lockToken) return false
if (webAcl != other.webAcl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.GetWebAclResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The URL to use in SDK integrations with Amazon Web Services managed rule groups. For example, you can use the integration SDKs with the account takeover prevention managed rule group `AWSManagedRulesATPRuleSet` and the account creation fraud prevention managed rule group `AWSManagedRulesACFPRuleSet`. This is only populated if you are using a rule group in your web ACL that integrates with your applications in this way. For more information, see [WAF client application integration](https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html) in the *WAF Developer Guide*.
*/
public var applicationIntegrationUrl: kotlin.String? = null
/**
* A token used for optimistic locking. WAF returns a token to your `get` and `list` requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like `update` and `delete`. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a `WAFOptimisticLockException`. If this happens, perform another `get`, and use the new token returned by that operation.
*/
public var lockToken: kotlin.String? = null
/**
* The web ACL specification. You can modify the settings in this web ACL and use it to update this web ACL or create a new one.
*/
public var webAcl: aws.sdk.kotlin.services.wafv2.model.WebAcl? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.GetWebAclResponse) : this() {
this.applicationIntegrationUrl = x.applicationIntegrationUrl
this.lockToken = x.lockToken
this.webAcl = x.webAcl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.GetWebAclResponse = GetWebAclResponse(this)
/**
* construct an [aws.sdk.kotlin.services.wafv2.model.WebAcl] inside the given [block]
*/
public fun webAcl(block: aws.sdk.kotlin.services.wafv2.model.WebAcl.Builder.() -> kotlin.Unit) {
this.webAcl = aws.sdk.kotlin.services.wafv2.model.WebAcl.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy