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