
commonMain.aws.sdk.kotlin.services.medialive.model.HlsWebdavSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Hls Webdav Settings
*/
public class HlsWebdavSettings private constructor(builder: Builder) {
/**
* Number of seconds to wait before retrying connection to the CDN if the connection is lost.
*/
public val connectionRetryInterval: kotlin.Int = builder.connectionRetryInterval
/**
* Size in seconds of file cache for streaming outputs.
*/
public val filecacheDuration: kotlin.Int = builder.filecacheDuration
/**
* Specify whether or not to use chunked transfer encoding to WebDAV.
*/
public val httpTransferMode: aws.sdk.kotlin.services.medialive.model.HlsWebdavHttpTransferMode? = builder.httpTransferMode
/**
* Number of retry attempts that will be made before the Live Event is put into an error state. Applies only if the CDN destination URI begins with "s3" or "mediastore". For other URIs, the value is always 3.
*/
public val numRetries: kotlin.Int = builder.numRetries
/**
* If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart.
*/
public val restartDelay: kotlin.Int = builder.restartDelay
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.HlsWebdavSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HlsWebdavSettings(")
append("connectionRetryInterval=$connectionRetryInterval,")
append("filecacheDuration=$filecacheDuration,")
append("httpTransferMode=$httpTransferMode,")
append("numRetries=$numRetries,")
append("restartDelay=$restartDelay")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionRetryInterval
result = 31 * result + (filecacheDuration)
result = 31 * result + (httpTransferMode?.hashCode() ?: 0)
result = 31 * result + (numRetries)
result = 31 * result + (restartDelay)
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 HlsWebdavSettings
if (connectionRetryInterval != other.connectionRetryInterval) return false
if (filecacheDuration != other.filecacheDuration) return false
if (httpTransferMode != other.httpTransferMode) return false
if (numRetries != other.numRetries) return false
if (restartDelay != other.restartDelay) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.HlsWebdavSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Number of seconds to wait before retrying connection to the CDN if the connection is lost.
*/
public var connectionRetryInterval: kotlin.Int = 0
/**
* Size in seconds of file cache for streaming outputs.
*/
public var filecacheDuration: kotlin.Int = 0
/**
* Specify whether or not to use chunked transfer encoding to WebDAV.
*/
public var httpTransferMode: aws.sdk.kotlin.services.medialive.model.HlsWebdavHttpTransferMode? = null
/**
* Number of retry attempts that will be made before the Live Event is put into an error state. Applies only if the CDN destination URI begins with "s3" or "mediastore". For other URIs, the value is always 3.
*/
public var numRetries: kotlin.Int = 0
/**
* If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart.
*/
public var restartDelay: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.HlsWebdavSettings) : this() {
this.connectionRetryInterval = x.connectionRetryInterval
this.filecacheDuration = x.filecacheDuration
this.httpTransferMode = x.httpTransferMode
this.numRetries = x.numRetries
this.restartDelay = x.restartDelay
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.HlsWebdavSettings = HlsWebdavSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy