commonMain.aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreatePresetResponse private constructor(builder: Builder) {
/**
* A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
*/
public val preset: aws.sdk.kotlin.services.mediaconvert.model.Preset? = builder.preset
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePresetResponse(")
append("preset=$preset")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = preset?.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 CreatePresetResponse
if (preset != other.preset) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process.
*/
public var preset: aws.sdk.kotlin.services.mediaconvert.model.Preset? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse) : this() {
this.preset = x.preset
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse = CreatePresetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.Preset] inside the given [block]
*/
public fun preset(block: aws.sdk.kotlin.services.mediaconvert.model.Preset.Builder.() -> kotlin.Unit) {
this.preset = aws.sdk.kotlin.services.mediaconvert.model.Preset.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}