commonMain.aws.sdk.kotlin.services.wafv2.model.GetDecryptedApiKeyResponse.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 GetDecryptedApiKeyResponse private constructor(builder: Builder) {
/**
* The date and time that the key was created.
*/
public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
/**
* The token domains that are defined in this API key.
*/
public val tokenDomains: List? = builder.tokenDomains
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.GetDecryptedApiKeyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDecryptedApiKeyResponse(")
append("creationTimestamp=$creationTimestamp,")
append("tokenDomains=$tokenDomains")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTimestamp?.hashCode() ?: 0
result = 31 * result + (tokenDomains?.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 GetDecryptedApiKeyResponse
if (creationTimestamp != other.creationTimestamp) return false
if (tokenDomains != other.tokenDomains) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.GetDecryptedApiKeyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time that the key was created.
*/
public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The token domains that are defined in this API key.
*/
public var tokenDomains: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.GetDecryptedApiKeyResponse) : this() {
this.creationTimestamp = x.creationTimestamp
this.tokenDomains = x.tokenDomains
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.GetDecryptedApiKeyResponse = GetDecryptedApiKeyResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy