
commonMain.aws.sdk.kotlin.services.rekognition.model.StreamProcessingStopSelector.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
/**
* Specifies when to stop processing the stream. You can specify a maximum amount of time to process the video.
*/
public class StreamProcessingStopSelector private constructor(builder: Builder) {
/**
* Specifies the maximum amount of time in seconds that you want the stream to be processed. The largest amount of time is 2 minutes. The default is 10 seconds.
*/
public val maxDurationInSeconds: kotlin.Long? = builder.maxDurationInSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStopSelector = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamProcessingStopSelector(")
append("maxDurationInSeconds=$maxDurationInSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxDurationInSeconds?.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 StreamProcessingStopSelector
if (maxDurationInSeconds != other.maxDurationInSeconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStopSelector = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the maximum amount of time in seconds that you want the stream to be processed. The largest amount of time is 2 minutes. The default is 10 seconds.
*/
public var maxDurationInSeconds: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.StreamProcessingStopSelector) : this() {
this.maxDurationInSeconds = x.maxDurationInSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.StreamProcessingStopSelector = StreamProcessingStopSelector(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy