commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChannelDefinition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines an audio channel in a Kinesis video stream.
*/
public class ChannelDefinition private constructor(builder: Builder) {
/**
* The channel ID.
*/
public val channelId: kotlin.Int = builder.channelId
/**
* Specifies whether the audio in a channel belongs to the `AGENT` or `CUSTOMER`.
*/
public val participantRole: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ParticipantRole? = builder.participantRole
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChannelDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelDefinition(")
append("channelId=$channelId,")
append("participantRole=$participantRole")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelId
result = 31 * result + (participantRole?.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 ChannelDefinition
if (channelId != other.channelId) return false
if (participantRole != other.participantRole) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChannelDefinition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The channel ID.
*/
public var channelId: kotlin.Int = 0
/**
* Specifies whether the audio in a channel belongs to the `AGENT` or `CUSTOMER`.
*/
public var participantRole: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ParticipantRole? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChannelDefinition) : this() {
this.channelId = x.channelId
this.participantRole = x.participantRole
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ChannelDefinition = ChannelDefinition(this)
internal fun correctErrors(): Builder {
return this
}
}
}