commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration.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 audio artifact configuration object.
*/
public class AudioArtifactsConfiguration private constructor(builder: Builder) {
/**
* The MUX type of the audio artifact configuration object.
*/
public val muxType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioMuxType = requireNotNull(builder.muxType) { "A non-null value must be provided for muxType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AudioArtifactsConfiguration(")
append("muxType=$muxType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = muxType.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 AudioArtifactsConfiguration
if (muxType != other.muxType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The MUX type of the audio artifact configuration object.
*/
public var muxType: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioMuxType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration) : this() {
this.muxType = x.muxType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.AudioArtifactsConfiguration = AudioArtifactsConfiguration(this)
internal fun correctErrors(): Builder {
if (muxType == null) muxType = AudioMuxType.SdkUnknown("no value provided")
return this
}
}
}