
commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratedByAppInstanceUserSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmessaging.model
/**
* Summary of the details of a moderated channel.
*/
public class ChannelModeratedByAppInstanceUserSummary private constructor(builder: Builder) {
/**
* Summary of the details of a `Channel`.
*/
public val channelSummary: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelSummary? = builder.channelSummary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratedByAppInstanceUserSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelModeratedByAppInstanceUserSummary(")
append("channelSummary=$channelSummary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelSummary?.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 ChannelModeratedByAppInstanceUserSummary
if (channelSummary != other.channelSummary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratedByAppInstanceUserSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Summary of the details of a `Channel`.
*/
public var channelSummary: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelSummary? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratedByAppInstanceUserSummary) : this() {
this.channelSummary = x.channelSummary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratedByAppInstanceUserSummary = ChannelModeratedByAppInstanceUserSummary(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelSummary] inside the given [block]
*/
public fun channelSummary(block: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelSummary.Builder.() -> kotlin.Unit) {
this.channelSummary = aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy