commonMain.aws.sdk.kotlin.services.elastictranscoder.model.JobAlbumArt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elastictranscoder-jvm Show documentation
Show all versions of elastictranscoder-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Transcoder
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elastictranscoder.model
/**
* The .jpg or .png file associated with an audio file.
*/
public class JobAlbumArt private constructor(builder: Builder) {
/**
* The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are `.jpg` and `.png`
*/
public val artwork: List? = builder.artwork
/**
* A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.
* + `Replace:` The specified album art replaces any existing album art.
* + `Prepend:` The specified album art is placed in front of any existing album art.
* + `Append:` The specified album art is placed after any existing album art.
* + `Fallback:` If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.
*/
public val mergePolicy: kotlin.String? = builder.mergePolicy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.JobAlbumArt = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobAlbumArt(")
append("artwork=$artwork,")
append("mergePolicy=$mergePolicy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = artwork?.hashCode() ?: 0
result = 31 * result + (mergePolicy?.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 JobAlbumArt
if (artwork != other.artwork) return false
if (mergePolicy != other.mergePolicy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.JobAlbumArt = Builder(this).apply(block).build()
public class Builder {
/**
* The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are `.jpg` and `.png`
*/
public var artwork: List? = null
/**
* A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files.
* + `Replace:` The specified album art replaces any existing album art.
* + `Prepend:` The specified album art is placed in front of any existing album art.
* + `Append:` The specified album art is placed after any existing album art.
* + `Fallback:` If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file.
*/
public var mergePolicy: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.JobAlbumArt) : this() {
this.artwork = x.artwork
this.mergePolicy = x.mergePolicy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.JobAlbumArt = JobAlbumArt(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy