
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Object specifying a channel as a destination.
*/
public class ChannelDestinationConfiguration private constructor(builder: Builder) {
/**
* ARN of the channel to use for broadcasting. The channel and stage resources must be in the same AWS account and region. The channel must be offline (not broadcasting).
*/
public val channelArn: kotlin.String = requireNotNull(builder.channelArn) { "A non-null value must be provided for channelArn" }
/**
* ARN of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
*/
public val encoderConfigurationArn: kotlin.String? = builder.encoderConfigurationArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelDestinationConfiguration(")
append("channelArn=$channelArn,")
append("encoderConfigurationArn=$encoderConfigurationArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn.hashCode()
result = 31 * result + (encoderConfigurationArn?.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 ChannelDestinationConfiguration
if (channelArn != other.channelArn) return false
if (encoderConfigurationArn != other.encoderConfigurationArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of the channel to use for broadcasting. The channel and stage resources must be in the same AWS account and region. The channel must be offline (not broadcasting).
*/
public var channelArn: kotlin.String? = null
/**
* ARN of the EncoderConfiguration resource. The encoder configuration and stage resources must be in the same AWS account and region.
*/
public var encoderConfigurationArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration) : this() {
this.channelArn = x.channelArn
this.encoderConfigurationArn = x.encoderConfigurationArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration = ChannelDestinationConfiguration(this)
internal fun correctErrors(): Builder {
if (channelArn == null) channelArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy