
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.DestinationConfiguration.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
/**
* Complex data type that defines destination-configuration objects.
*/
public class DestinationConfiguration private constructor(builder: Builder) {
/**
* An IVS channel to be used for broadcasting, for server-side composition. Either a `channel` or an `s3` must be specified.
*/
public val channel: aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration? = builder.channel
/**
* Name that can be specified to help identify the destination.
*/
public val name: kotlin.String? = builder.name
/**
* An S3 storage configuration to be used for recording video data. Either a `channel` or an `s3` must be specified.
*/
public val s3: aws.sdk.kotlin.services.ivsrealtime.model.S3DestinationConfiguration? = builder.s3
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.DestinationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DestinationConfiguration(")
append("channel=$channel,")
append("name=$name,")
append("s3=$s3")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channel?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (s3?.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 DestinationConfiguration
if (channel != other.channel) return false
if (name != other.name) return false
if (s3 != other.s3) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.DestinationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An IVS channel to be used for broadcasting, for server-side composition. Either a `channel` or an `s3` must be specified.
*/
public var channel: aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration? = null
/**
* Name that can be specified to help identify the destination.
*/
public var name: kotlin.String? = null
/**
* An S3 storage configuration to be used for recording video data. Either a `channel` or an `s3` must be specified.
*/
public var s3: aws.sdk.kotlin.services.ivsrealtime.model.S3DestinationConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.DestinationConfiguration) : this() {
this.channel = x.channel
this.name = x.name
this.s3 = x.s3
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.DestinationConfiguration = DestinationConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration] inside the given [block]
*/
public fun channel(block: aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration.Builder.() -> kotlin.Unit) {
this.channel = aws.sdk.kotlin.services.ivsrealtime.model.ChannelDestinationConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.ivsrealtime.model.S3DestinationConfiguration] inside the given [block]
*/
public fun s3(block: aws.sdk.kotlin.services.ivsrealtime.model.S3DestinationConfiguration.Builder.() -> kotlin.Unit) {
this.s3 = aws.sdk.kotlin.services.ivsrealtime.model.S3DestinationConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy