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

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

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

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

public class CreateRoomResponse private constructor(builder: Builder) {
    /**
     * Room ARN, assigned by the system.
     */
    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, from the request (if specified).
     */
    public val loggingConfigurationIdentifiers: List? = builder.loggingConfigurationIdentifiers
    /**
     * Maximum number of characters in a single message, from the request (if specified).
     */
    public val maximumMessageLength: kotlin.Int? = builder.maximumMessageLength
    /**
     * Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified).
     */
    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, from the request (if specified).
     */
    public val name: kotlin.String? = builder.name
    /**
     * Tags attached to the resource, from the request (if specified).
     */
    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.CreateRoomResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateRoomResponse(")
        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 CreateRoomResponse

        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.CreateRoomResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Room ARN, assigned by the system.
         */
        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, from the request (if specified).
         */
        public var loggingConfigurationIdentifiers: List? = null
        /**
         * Maximum number of characters in a single message, from the request (if specified).
         */
        public var maximumMessageLength: kotlin.Int? = null
        /**
         * Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified).
         */
        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, from the request (if specified).
         */
        public var name: kotlin.String? = null
        /**
         * Tags attached to the resource, from the request (if specified).
         */
        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.CreateRoomResponse) : 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.CreateRoomResponse = CreateRoomResponse(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 - 2024 Weber Informatics LLC | Privacy Policy