
commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelAssociatedWithFlowSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmessaging.model
/**
* Summary of details of a channel associated with channel flow.
*/
public class ChannelAssociatedWithFlowSummary private constructor(builder: Builder) {
/**
* The ARN of the channel.
*/
public val channelArn: kotlin.String? = builder.channelArn
/**
* The channel's metadata.
*/
public val metadata: kotlin.String? = builder.metadata
/**
* The mode of the channel.
*/
public val mode: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMode? = builder.mode
/**
* The name of the channel flow.
*/
public val name: kotlin.String? = builder.name
/**
* The channel's privacy setting.
*/
public val privacy: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelPrivacy? = builder.privacy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelAssociatedWithFlowSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelAssociatedWithFlowSummary(")
append("channelArn=$channelArn,")
append("metadata=*** Sensitive Data Redacted ***,")
append("mode=$mode,")
append("name=*** Sensitive Data Redacted ***,")
append("privacy=$privacy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn?.hashCode() ?: 0
result = 31 * result + (metadata?.hashCode() ?: 0)
result = 31 * result + (mode?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (privacy?.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 ChannelAssociatedWithFlowSummary
if (channelArn != other.channelArn) return false
if (metadata != other.metadata) return false
if (mode != other.mode) return false
if (name != other.name) return false
if (privacy != other.privacy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelAssociatedWithFlowSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the channel.
*/
public var channelArn: kotlin.String? = null
/**
* The channel's metadata.
*/
public var metadata: kotlin.String? = null
/**
* The mode of the channel.
*/
public var mode: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMode? = null
/**
* The name of the channel flow.
*/
public var name: kotlin.String? = null
/**
* The channel's privacy setting.
*/
public var privacy: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelPrivacy? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelAssociatedWithFlowSummary) : this() {
this.channelArn = x.channelArn
this.metadata = x.metadata
this.mode = x.mode
this.name = x.name
this.privacy = x.privacy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelAssociatedWithFlowSummary = ChannelAssociatedWithFlowSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy