
commonMain.aws.sdk.kotlin.services.medialive.model.HlsOutputSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Hls Output Settings
*/
public class HlsOutputSettings private constructor(builder: Builder) {
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should be packaged as HEV1 or HVC1.
*/
public val h265PackagingType: aws.sdk.kotlin.services.medialive.model.HlsH265PackagingType? = builder.h265PackagingType
/**
* Settings regarding the underlying stream. These settings are different for audio-only outputs.
*/
public val hlsSettings: aws.sdk.kotlin.services.medialive.model.HlsSettings? = builder.hlsSettings
/**
* String concatenated to the end of the destination filename. Accepts \"Format Identifiers\":#formatIdentifierParameters.
*/
public val nameModifier: kotlin.String? = builder.nameModifier
/**
* String concatenated to end of segment filenames.
*/
public val segmentModifier: kotlin.String? = builder.segmentModifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.HlsOutputSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HlsOutputSettings(")
append("h265PackagingType=$h265PackagingType,")
append("hlsSettings=$hlsSettings,")
append("nameModifier=$nameModifier,")
append("segmentModifier=$segmentModifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = h265PackagingType?.hashCode() ?: 0
result = 31 * result + (hlsSettings?.hashCode() ?: 0)
result = 31 * result + (nameModifier?.hashCode() ?: 0)
result = 31 * result + (segmentModifier?.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 HlsOutputSettings
if (h265PackagingType != other.h265PackagingType) return false
if (hlsSettings != other.hlsSettings) return false
if (nameModifier != other.nameModifier) return false
if (segmentModifier != other.segmentModifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.HlsOutputSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should be packaged as HEV1 or HVC1.
*/
public var h265PackagingType: aws.sdk.kotlin.services.medialive.model.HlsH265PackagingType? = null
/**
* Settings regarding the underlying stream. These settings are different for audio-only outputs.
*/
public var hlsSettings: aws.sdk.kotlin.services.medialive.model.HlsSettings? = null
/**
* String concatenated to the end of the destination filename. Accepts \"Format Identifiers\":#formatIdentifierParameters.
*/
public var nameModifier: kotlin.String? = null
/**
* String concatenated to end of segment filenames.
*/
public var segmentModifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.HlsOutputSettings) : this() {
this.h265PackagingType = x.h265PackagingType
this.hlsSettings = x.hlsSettings
this.nameModifier = x.nameModifier
this.segmentModifier = x.segmentModifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.HlsOutputSettings = HlsOutputSettings(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.HlsSettings] inside the given [block]
*/
public fun hlsSettings(block: aws.sdk.kotlin.services.medialive.model.HlsSettings.Builder.() -> kotlin.Unit) {
this.hlsSettings = aws.sdk.kotlin.services.medialive.model.HlsSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy