
commonMain.aws.sdk.kotlin.services.medialive.model.ArchiveOutputSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Archive Output Settings
*/
public class ArchiveOutputSettings private constructor(builder: Builder) {
/**
* Settings specific to the container type of the file.
*/
public val containerSettings: aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings? = builder.containerSettings
/**
* Output file extension. If excluded, this will be auto-selected from the container type.
*/
public val extension: kotlin.String? = builder.extension
/**
* String concatenated to the end of the destination filename. Required for multiple outputs of the same type.
*/
public val nameModifier: kotlin.String? = builder.nameModifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.ArchiveOutputSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ArchiveOutputSettings(")
append("containerSettings=$containerSettings,")
append("extension=$extension,")
append("nameModifier=$nameModifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = containerSettings?.hashCode() ?: 0
result = 31 * result + (extension?.hashCode() ?: 0)
result = 31 * result + (nameModifier?.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 ArchiveOutputSettings
if (containerSettings != other.containerSettings) return false
if (extension != other.extension) return false
if (nameModifier != other.nameModifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.ArchiveOutputSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Settings specific to the container type of the file.
*/
public var containerSettings: aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings? = null
/**
* Output file extension. If excluded, this will be auto-selected from the container type.
*/
public var extension: kotlin.String? = null
/**
* String concatenated to the end of the destination filename. Required for multiple outputs of the same type.
*/
public var nameModifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.ArchiveOutputSettings) : this() {
this.containerSettings = x.containerSettings
this.extension = x.extension
this.nameModifier = x.nameModifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.ArchiveOutputSettings = ArchiveOutputSettings(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings] inside the given [block]
*/
public fun containerSettings(block: aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings.Builder.() -> kotlin.Unit) {
this.containerSettings = aws.sdk.kotlin.services.medialive.model.ArchiveContainerSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy