
commonMain.aws.sdk.kotlin.services.medialive.model.HlsAkamaiSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Hls Akamai Settings
*/
public class HlsAkamaiSettings 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 Akamai. User should contact Akamai to enable this feature.
*/
public val httpTransferMode: aws.sdk.kotlin.services.medialive.model.HlsAkamaiHttpTransferMode? = 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
/**
* Salt for authenticated Akamai.
*/
public val salt: kotlin.String? = builder.salt
/**
* Token parameter for authenticated akamai. If not specified, _gda_ is used.
*/
public val token: kotlin.String? = builder.token
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.HlsAkamaiSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HlsAkamaiSettings(")
append("connectionRetryInterval=$connectionRetryInterval,")
append("filecacheDuration=$filecacheDuration,")
append("httpTransferMode=$httpTransferMode,")
append("numRetries=$numRetries,")
append("restartDelay=$restartDelay,")
append("salt=$salt,")
append("token=$token")
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)
result = 31 * result + (salt?.hashCode() ?: 0)
result = 31 * result + (token?.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 HlsAkamaiSettings
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
if (salt != other.salt) return false
if (token != other.token) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.HlsAkamaiSettings = 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 Akamai. User should contact Akamai to enable this feature.
*/
public var httpTransferMode: aws.sdk.kotlin.services.medialive.model.HlsAkamaiHttpTransferMode? = 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
/**
* Salt for authenticated Akamai.
*/
public var salt: kotlin.String? = null
/**
* Token parameter for authenticated akamai. If not specified, _gda_ is used.
*/
public var token: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.HlsAkamaiSettings) : this() {
this.connectionRetryInterval = x.connectionRetryInterval
this.filecacheDuration = x.filecacheDuration
this.httpTransferMode = x.httpTransferMode
this.numRetries = x.numRetries
this.restartDelay = x.restartDelay
this.salt = x.salt
this.token = x.token
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.HlsAkamaiSettings = HlsAkamaiSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy