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

commonMain.aws.sdk.kotlin.services.ivschat.model.GetRoomResponse.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 GetRoomResponse private constructor(builder: Builder) {
    /**
     * Room ARN, from the request (if `identifier` was an ARN).
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Time when the room was created. This is an ISO 8601 timestamp; *note that this is returned as a string*.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room.
     */
    public val id: kotlin.String? = builder.id
    /**
     * Array of logging configurations attached to the room.
     */
    public val loggingConfigurationIdentifiers: List? = builder.loggingConfigurationIdentifiers
    /**
     * Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500.
     */
    public val maximumMessageLength: kotlin.Int? = builder.maximumMessageLength
    /**
     * Maximum number of messages per second that can be sent to the room (by all clients). Default: 10.
     */
    public val maximumMessageRatePerSecond: kotlin.Int? = builder.maximumMessageRatePerSecond
    /**
     * Configuration information for optional review of messages.
     */
    public val messageReviewHandler: aws.sdk.kotlin.services.ivschat.model.MessageReviewHandler? = builder.messageReviewHandler
    /**
     * Room name. The value does not need to be unique.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`.
     */
    public val tags: Map? = builder.tags
    /**
     * Time of the room’s last update. This is an ISO 8601 timestamp; *note that this is returned as a string*.
     */
    public val updateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateTime

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

    override fun toString(): kotlin.String = buildString {
        append("GetRoomResponse(")
        append("arn=$arn,")
        append("createTime=$createTime,")
        append("id=$id,")
        append("loggingConfigurationIdentifiers=$loggingConfigurationIdentifiers,")
        append("maximumMessageLength=$maximumMessageLength,")
        append("maximumMessageRatePerSecond=$maximumMessageRatePerSecond,")
        append("messageReviewHandler=$messageReviewHandler,")
        append("name=$name,")
        append("tags=$tags,")
        append("updateTime=$updateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (createTime?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (loggingConfigurationIdentifiers?.hashCode() ?: 0)
        result = 31 * result + (maximumMessageLength ?: 0)
        result = 31 * result + (maximumMessageRatePerSecond ?: 0)
        result = 31 * result + (messageReviewHandler?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (updateTime?.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 GetRoomResponse

        if (arn != other.arn) return false
        if (createTime != other.createTime) return false
        if (id != other.id) return false
        if (loggingConfigurationIdentifiers != other.loggingConfigurationIdentifiers) return false
        if (maximumMessageLength != other.maximumMessageLength) return false
        if (maximumMessageRatePerSecond != other.maximumMessageRatePerSecond) return false
        if (messageReviewHandler != other.messageReviewHandler) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (updateTime != other.updateTime) return false

        return true
    }

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

    public class Builder {
        /**
         * Room ARN, from the request (if `identifier` was an ARN).
         */
        public var arn: kotlin.String? = null
        /**
         * Time when the room was created. This is an ISO 8601 timestamp; *note that this is returned as a string*.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room.
         */
        public var id: kotlin.String? = null
        /**
         * Array of logging configurations attached to the room.
         */
        public var loggingConfigurationIdentifiers: List? = null
        /**
         * Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500.
         */
        public var maximumMessageLength: kotlin.Int? = null
        /**
         * Maximum number of messages per second that can be sent to the room (by all clients). Default: 10.
         */
        public var maximumMessageRatePerSecond: kotlin.Int? = null
        /**
         * Configuration information for optional review of messages.
         */
        public var messageReviewHandler: aws.sdk.kotlin.services.ivschat.model.MessageReviewHandler? = null
        /**
         * Room name. The value does not need to be unique.
         */
        public var name: kotlin.String? = null
        /**
         * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`.
         */
        public var tags: Map? = null
        /**
         * Time of the room’s last update. This is an ISO 8601 timestamp; *note that this is returned as a string*.
         */
        public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivschat.model.GetRoomResponse) : this() {
            this.arn = x.arn
            this.createTime = x.createTime
            this.id = x.id
            this.loggingConfigurationIdentifiers = x.loggingConfigurationIdentifiers
            this.maximumMessageLength = x.maximumMessageLength
            this.maximumMessageRatePerSecond = x.maximumMessageRatePerSecond
            this.messageReviewHandler = x.messageReviewHandler
            this.name = x.name
            this.tags = x.tags
            this.updateTime = x.updateTime
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.ivschat.model.MessageReviewHandler] inside the given [block]
         */
        public fun messageReviewHandler(block: aws.sdk.kotlin.services.ivschat.model.MessageReviewHandler.Builder.() -> kotlin.Unit) {
            this.messageReviewHandler = aws.sdk.kotlin.services.ivschat.model.MessageReviewHandler.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy