commonMain.aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse.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 `CreatePresetResponse` structure.
*/
public class CreatePresetResponse private constructor(builder: Builder) {
/**
* A section of the response body that provides information about the preset that is created.
*/
public val preset: aws.sdk.kotlin.services.elastictranscoder.model.Preset? = builder.preset
/**
* If the preset settings don't comply with the standards for the video codec but Elastic Transcoder created the preset, this message explains the reason the preset settings don't meet the standard. Elastic Transcoder created the preset because the settings might produce acceptable output.
*/
public val warning: kotlin.String? = builder.warning
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePresetResponse(")
append("preset=$preset,")
append("warning=$warning")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = preset?.hashCode() ?: 0
result = 31 * result + (warning?.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
if (warning != other.warning) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A section of the response body that provides information about the preset that is created.
*/
public var preset: aws.sdk.kotlin.services.elastictranscoder.model.Preset? = null
/**
* If the preset settings don't comply with the standards for the video codec but Elastic Transcoder created the preset, this message explains the reason the preset settings don't meet the standard. Elastic Transcoder created the preset because the settings might produce acceptable output.
*/
public var warning: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse) : this() {
this.preset = x.preset
this.warning = x.warning
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse = CreatePresetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.elastictranscoder.model.Preset] inside the given [block]
*/
public fun preset(block: aws.sdk.kotlin.services.elastictranscoder.model.Preset.Builder.() -> kotlin.Unit) {
this.preset = aws.sdk.kotlin.services.elastictranscoder.model.Preset.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy