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