
commonMain.aws.sdk.kotlin.services.kendra.model.UserTokenConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Provides the configuration information for a token.
*/
public class UserTokenConfiguration private constructor(builder: Builder) {
/**
* Information about the JSON token type configuration.
*/
public val jsonTokenTypeConfiguration: aws.sdk.kotlin.services.kendra.model.JsonTokenTypeConfiguration? = builder.jsonTokenTypeConfiguration
/**
* Information about the JWT token type configuration.
*/
public val jwtTokenTypeConfiguration: aws.sdk.kotlin.services.kendra.model.JwtTokenTypeConfiguration? = builder.jwtTokenTypeConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.UserTokenConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserTokenConfiguration(")
append("jsonTokenTypeConfiguration=$jsonTokenTypeConfiguration,")
append("jwtTokenTypeConfiguration=$jwtTokenTypeConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jsonTokenTypeConfiguration?.hashCode() ?: 0
result = 31 * result + (jwtTokenTypeConfiguration?.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 UserTokenConfiguration
if (jsonTokenTypeConfiguration != other.jsonTokenTypeConfiguration) return false
if (jwtTokenTypeConfiguration != other.jwtTokenTypeConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.UserTokenConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the JSON token type configuration.
*/
public var jsonTokenTypeConfiguration: aws.sdk.kotlin.services.kendra.model.JsonTokenTypeConfiguration? = null
/**
* Information about the JWT token type configuration.
*/
public var jwtTokenTypeConfiguration: aws.sdk.kotlin.services.kendra.model.JwtTokenTypeConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.UserTokenConfiguration) : this() {
this.jsonTokenTypeConfiguration = x.jsonTokenTypeConfiguration
this.jwtTokenTypeConfiguration = x.jwtTokenTypeConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.UserTokenConfiguration = UserTokenConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.JsonTokenTypeConfiguration] inside the given [block]
*/
public fun jsonTokenTypeConfiguration(block: aws.sdk.kotlin.services.kendra.model.JsonTokenTypeConfiguration.Builder.() -> kotlin.Unit) {
this.jsonTokenTypeConfiguration = aws.sdk.kotlin.services.kendra.model.JsonTokenTypeConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kendra.model.JwtTokenTypeConfiguration] inside the given [block]
*/
public fun jwtTokenTypeConfiguration(block: aws.sdk.kotlin.services.kendra.model.JwtTokenTypeConfiguration.Builder.() -> kotlin.Unit) {
this.jwtTokenTypeConfiguration = aws.sdk.kotlin.services.kendra.model.JwtTokenTypeConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy