commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration.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 task configuration settings for the Kinesis video stream source.
*/
public class KinesisVideoStreamSourceTaskConfiguration private constructor(builder: Builder) {
/**
* The channel ID.
*/
public val channelId: kotlin.Int = builder.channelId
/**
* The unique identifier of the fragment to begin processing.
*/
public val fragmentNumber: kotlin.String? = builder.fragmentNumber
/**
* The ARN of the stream.
*/
public val streamArn: kotlin.String = requireNotNull(builder.streamArn) { "A non-null value must be provided for streamArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KinesisVideoStreamSourceTaskConfiguration(")
append("channelId=$channelId,")
append("fragmentNumber=$fragmentNumber,")
append("streamArn=$streamArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelId
result = 31 * result + (fragmentNumber?.hashCode() ?: 0)
result = 31 * result + (streamArn.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 KinesisVideoStreamSourceTaskConfiguration
if (channelId != other.channelId) return false
if (fragmentNumber != other.fragmentNumber) return false
if (streamArn != other.streamArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The channel ID.
*/
public var channelId: kotlin.Int = 0
/**
* The unique identifier of the fragment to begin processing.
*/
public var fragmentNumber: kotlin.String? = null
/**
* The ARN of the stream.
*/
public var streamArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration) : this() {
this.channelId = x.channelId
this.fragmentNumber = x.fragmentNumber
this.streamArn = x.streamArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration = KinesisVideoStreamSourceTaskConfiguration(this)
internal fun correctErrors(): Builder {
if (streamArn == null) streamArn = ""
return this
}
}
}