commonMain.aws.sdk.kotlin.services.kinesisvideo.model.UploaderConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisvideo-jvm Show documentation
Show all versions of kinesisvideo-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Video
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideo.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration that consists of the `ScheduleExpression` and the `DurationInMinutes` details that specify the scheduling to record from a camera, or local media file, onto the Edge Agent. If the `ScheduleConfig` is not provided in the `UploaderConfig`, then the Edge Agent will upload at regular intervals (every 1 hour).
*/
public class UploaderConfig private constructor(builder: Builder) {
/**
* The configuration that consists of the `ScheduleExpression` and the `DurationInMinutes` details that specify the scheduling to record from a camera, or local media file, onto the Edge Agent. If the `ScheduleConfig` is not provided in this `UploaderConfig`, then the Edge Agent will upload at regular intervals (every 1 hour).
*/
public val scheduleConfig: aws.sdk.kotlin.services.kinesisvideo.model.ScheduleConfig? = builder.scheduleConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.UploaderConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UploaderConfig(")
append("scheduleConfig=$scheduleConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = scheduleConfig?.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 UploaderConfig
if (scheduleConfig != other.scheduleConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.UploaderConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration that consists of the `ScheduleExpression` and the `DurationInMinutes` details that specify the scheduling to record from a camera, or local media file, onto the Edge Agent. If the `ScheduleConfig` is not provided in this `UploaderConfig`, then the Edge Agent will upload at regular intervals (every 1 hour).
*/
public var scheduleConfig: aws.sdk.kotlin.services.kinesisvideo.model.ScheduleConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.UploaderConfig) : this() {
this.scheduleConfig = x.scheduleConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.UploaderConfig = UploaderConfig(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisvideo.model.ScheduleConfig] inside the given [block]
*/
public fun scheduleConfig(block: aws.sdk.kotlin.services.kinesisvideo.model.ScheduleConfig.Builder.() -> kotlin.Unit) {
this.scheduleConfig = aws.sdk.kotlin.services.kinesisvideo.model.ScheduleConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}