All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.37
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.elastictranscoder.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * 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()

    @SdkDsl
    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 - 2024 Weber Informatics LLC | Privacy Policy