commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkConfiguration.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
/**
* The media pipeline's sink configuration settings.
*/
public class LiveConnectorSinkConfiguration private constructor(builder: Builder) {
/**
* The sink configuration's RTMP configuration settings.
*/
public val rtmpConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration? = builder.rtmpConfiguration
/**
* The sink configuration's sink type.
*/
public val sinkType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkType = requireNotNull(builder.sinkType) { "A non-null value must be provided for sinkType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LiveConnectorSinkConfiguration(")
append("rtmpConfiguration=$rtmpConfiguration,")
append("sinkType=$sinkType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rtmpConfiguration?.hashCode() ?: 0
result = 31 * result + (sinkType.hashCode())
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 LiveConnectorSinkConfiguration
if (rtmpConfiguration != other.rtmpConfiguration) return false
if (sinkType != other.sinkType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The sink configuration's RTMP configuration settings.
*/
public var rtmpConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration? = null
/**
* The sink configuration's sink type.
*/
public var sinkType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkConfiguration) : this() {
this.rtmpConfiguration = x.rtmpConfiguration
this.sinkType = x.sinkType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorSinkConfiguration = LiveConnectorSinkConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration] inside the given [block]
*/
public fun rtmpConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration.Builder.() -> kotlin.Unit) {
this.rtmpConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.LiveConnectorRtmpConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (sinkType == null) sinkType = LiveConnectorSinkType.SdkUnknown("no value provided")
return this
}
}
}