commonMain.aws.sdk.kotlin.services.wafv2.model.UpdateManagedRuleSetVersionExpiryDateResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateManagedRuleSetVersionExpiryDateResponse private constructor(builder: Builder) {
/**
* The version that is set to expire.
*/
public val expiringVersion: kotlin.String? = builder.expiringVersion
/**
* The time that the version will expire.
*
* Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
*/
public val expiryTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.expiryTimestamp
/**
* 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 nextLockToken: kotlin.String? = builder.nextLockToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.UpdateManagedRuleSetVersionExpiryDateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateManagedRuleSetVersionExpiryDateResponse(")
append("expiringVersion=$expiringVersion,")
append("expiryTimestamp=$expiryTimestamp,")
append("nextLockToken=$nextLockToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = expiringVersion?.hashCode() ?: 0
result = 31 * result + (expiryTimestamp?.hashCode() ?: 0)
result = 31 * result + (nextLockToken?.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 UpdateManagedRuleSetVersionExpiryDateResponse
if (expiringVersion != other.expiringVersion) return false
if (expiryTimestamp != other.expiryTimestamp) return false
if (nextLockToken != other.nextLockToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.UpdateManagedRuleSetVersionExpiryDateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The version that is set to expire.
*/
public var expiringVersion: kotlin.String? = null
/**
* The time that the version will expire.
*
* Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
*/
public var expiryTimestamp: aws.smithy.kotlin.runtime.time.Instant? = 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 nextLockToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.UpdateManagedRuleSetVersionExpiryDateResponse) : this() {
this.expiringVersion = x.expiringVersion
this.expiryTimestamp = x.expiryTimestamp
this.nextLockToken = x.nextLockToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.UpdateManagedRuleSetVersionExpiryDateResponse = UpdateManagedRuleSetVersionExpiryDateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy