commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSink.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 data sink of the configuration object.
*/
public class ConcatenationSink private constructor(builder: Builder) {
/**
* The configuration settings for an Amazon S3 bucket sink.
*/
public val s3BucketSinkConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3BucketSinkConfiguration? = builder.s3BucketSinkConfiguration
/**
* The type of data sink in the configuration object.
*/
public val type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSinkType = 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.ConcatenationSink = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConcatenationSink(")
append("s3BucketSinkConfiguration=$s3BucketSinkConfiguration,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3BucketSinkConfiguration?.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 ConcatenationSink
if (s3BucketSinkConfiguration != other.s3BucketSinkConfiguration) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSink = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration settings for an Amazon S3 bucket sink.
*/
public var s3BucketSinkConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3BucketSinkConfiguration? = null
/**
* The type of data sink in the configuration object.
*/
public var type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSinkType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSink) : this() {
this.s3BucketSinkConfiguration = x.s3BucketSinkConfiguration
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.ConcatenationSink = ConcatenationSink(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3BucketSinkConfiguration] inside the given [block]
*/
public fun s3BucketSinkConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3BucketSinkConfiguration.Builder.() -> kotlin.Unit) {
this.s3BucketSinkConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.S3BucketSinkConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (type == null) type = ConcatenationSinkType.SdkUnknown("no value provided")
return this
}
}
}