
commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratorSummary.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 `ChannelModerator`.
*/
public class ChannelModeratorSummary private constructor(builder: Builder) {
/**
* The data for a moderator.
*/
public val moderator: aws.sdk.kotlin.services.chimesdkmessaging.model.Identity? = builder.moderator
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratorSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelModeratorSummary(")
append("moderator=$moderator")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = moderator?.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 ChannelModeratorSummary
if (moderator != other.moderator) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratorSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The data for a moderator.
*/
public var moderator: aws.sdk.kotlin.services.chimesdkmessaging.model.Identity? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratorSummary) : this() {
this.moderator = x.moderator
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelModeratorSummary = ChannelModeratorSummary(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmessaging.model.Identity] inside the given [block]
*/
public fun moderator(block: aws.sdk.kotlin.services.chimesdkmessaging.model.Identity.Builder.() -> kotlin.Unit) {
this.moderator = aws.sdk.kotlin.services.chimesdkmessaging.model.Identity.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy