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