commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSource.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The source type and media pipeline configuration settings in a configuration object.
*/
public class ConcatenationSource private constructor(builder: Builder) {
/**
* The concatenation settings for the media pipeline in a configuration object.
*/
public val mediaCapturePipelineSourceConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipelineSourceConfiguration? = builder.mediaCapturePipelineSourceConfiguration
/**
* The type of concatenation source in a configuration object.
*/
public val type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSourceType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConcatenationSource(")
append("mediaCapturePipelineSourceConfiguration=$mediaCapturePipelineSourceConfiguration,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mediaCapturePipelineSourceConfiguration?.hashCode() ?: 0
result = 31 * result + (type.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 ConcatenationSource
if (mediaCapturePipelineSourceConfiguration != other.mediaCapturePipelineSourceConfiguration) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The concatenation settings for the media pipeline in a configuration object.
*/
public var mediaCapturePipelineSourceConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipelineSourceConfiguration? = null
/**
* The type of concatenation source in a configuration object.
*/
public var type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSource) : this() {
this.mediaCapturePipelineSourceConfiguration = x.mediaCapturePipelineSourceConfiguration
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSource = ConcatenationSource(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipelineSourceConfiguration] inside the given [block]
*/
public fun mediaCapturePipelineSourceConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipelineSourceConfiguration.Builder.() -> kotlin.Unit) {
this.mediaCapturePipelineSourceConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipelineSourceConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (type == null) type = ConcatenationSourceType.SdkUnknown("no value provided")
return this
}
}
}