
commonMain.aws.sdk.kotlin.services.ivschat.model.CreateRoomRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivschat.model
public class CreateRoomRequest private constructor(builder: Builder) {
/**
* Array of logging-configuration identifiers 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 to attach to the resource. Array of maps, each of the form `string:string (key:value)`. See [Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond what is documented there.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivschat.model.CreateRoomRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRoomRequest(")
append("loggingConfigurationIdentifiers=$loggingConfigurationIdentifiers,")
append("maximumMessageLength=$maximumMessageLength,")
append("maximumMessageRatePerSecond=$maximumMessageRatePerSecond,")
append("messageReviewHandler=$messageReviewHandler,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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)
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 CreateRoomRequest
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
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivschat.model.CreateRoomRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Array of logging-configuration identifiers 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 to attach to the resource. Array of maps, each of the form `string:string (key:value)`. See [Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond what is documented there.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivschat.model.CreateRoomRequest) : this() {
this.loggingConfigurationIdentifiers = x.loggingConfigurationIdentifiers
this.maximumMessageLength = x.maximumMessageLength
this.maximumMessageRatePerSecond = x.maximumMessageRatePerSecond
this.messageReviewHandler = x.messageReviewHandler
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivschat.model.CreateRoomRequest = CreateRoomRequest(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