
commonMain.aws.sdk.kotlin.services.sso.model.LogoutRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sso.model
import aws.smithy.kotlin.runtime.SdkDsl
public class LogoutRequest private constructor(builder: Builder) {
/**
* The token issued by the `CreateToken` API call. For more information, see [CreateToken](https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html) in the *IAM Identity Center OIDC API Reference Guide*.
*/
public val accessToken: kotlin.String? = builder.accessToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sso.model.LogoutRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LogoutRequest(")
append("accessToken=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessToken?.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 LogoutRequest
if (accessToken != other.accessToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sso.model.LogoutRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The token issued by the `CreateToken` API call. For more information, see [CreateToken](https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html) in the *IAM Identity Center OIDC API Reference Guide*.
*/
public var accessToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sso.model.LogoutRequest) : this() {
this.accessToken = x.accessToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sso.model.LogoutRequest = LogoutRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy