
commonMain.aws.sdk.kotlin.services.rekognition.model.StreamProcessingStartSelector.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.
*/
public class StreamProcessingStartSelector private constructor(builder: Builder) {
/**
* Specifies the starting point in the stream to start processing. This can be done with a producer timestamp or a fragment number in a Kinesis stream.
*/
public val kvsStreamStartSelector: aws.sdk.kotlin.services.rekognition.model.KinesisVideoStreamStartSelector? = builder.kvsStreamStartSelector
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStartSelector = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamProcessingStartSelector(")
append("kvsStreamStartSelector=$kvsStreamStartSelector")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kvsStreamStartSelector?.hashCode() ?: 0
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 StreamProcessingStartSelector
if (kvsStreamStartSelector != other.kvsStreamStartSelector) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStartSelector = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the starting point in the stream to start processing. This can be done with a producer timestamp or a fragment number in a Kinesis stream.
*/
public var kvsStreamStartSelector: aws.sdk.kotlin.services.rekognition.model.KinesisVideoStreamStartSelector? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.StreamProcessingStartSelector) : this() {
this.kvsStreamStartSelector = x.kvsStreamStartSelector
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStartSelector = StreamProcessingStartSelector(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.KinesisVideoStreamStartSelector] inside the given [block]
*/
public fun kvsStreamStartSelector(block: aws.sdk.kotlin.services.rekognition.model.KinesisVideoStreamStartSelector.Builder.() -> kotlin.Unit) {
this.kvsStreamStartSelector = aws.sdk.kotlin.services.rekognition.model.KinesisVideoStreamStartSelector.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy