All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ivschat.model.CreateChatTokenResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ivschat.model

import aws.smithy.kotlin.runtime.time.Instant

public class CreateChatTokenResponse private constructor(builder: Builder) {
    /**
     * Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; *note that this is returned as a string*.
     */
    public val sessionExpirationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.sessionExpirationTime
    /**
     * The issued client token, encrypted.
     */
    public val token: kotlin.String? = builder.token
    /**
     * Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 timestamp; *note that this is returned as a string*.
     */
    public val tokenExpirationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.tokenExpirationTime

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivschat.model.CreateChatTokenResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateChatTokenResponse(")
        append("sessionExpirationTime=$sessionExpirationTime,")
        append("token=*** Sensitive Data Redacted ***,")
        append("tokenExpirationTime=$tokenExpirationTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = sessionExpirationTime?.hashCode() ?: 0
        result = 31 * result + (token?.hashCode() ?: 0)
        result = 31 * result + (tokenExpirationTime?.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 CreateChatTokenResponse

        if (sessionExpirationTime != other.sessionExpirationTime) return false
        if (token != other.token) return false
        if (tokenExpirationTime != other.tokenExpirationTime) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivschat.model.CreateChatTokenResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; *note that this is returned as a string*.
         */
        public var sessionExpirationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The issued client token, encrypted.
         */
        public var token: kotlin.String? = null
        /**
         * Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 timestamp; *note that this is returned as a string*.
         */
        public var tokenExpirationTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivschat.model.CreateChatTokenResponse) : this() {
            this.sessionExpirationTime = x.sessionExpirationTime
            this.token = x.token
            this.tokenExpirationTime = x.tokenExpirationTime
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ivschat.model.CreateChatTokenResponse = CreateChatTokenResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy