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

commonMain.aws.sdk.kotlin.services.elastictranscoder.model.DetectedProperties.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 detected properties of the input file. Elastic Transcoder identifies these values from the input file.
 */
public class DetectedProperties private constructor(builder: Builder) {
    /**
     * The detected duration of the input file, in milliseconds.
     */
    public val durationMillis: kotlin.Long? = builder.durationMillis
    /**
     * The detected file size of the input file, in bytes.
     */
    public val fileSize: kotlin.Long? = builder.fileSize
    /**
     * The detected frame rate of the input file, in frames per second.
     */
    public val frameRate: kotlin.String? = builder.frameRate
    /**
     * The detected height of the input file, in pixels.
     */
    public val height: kotlin.Int? = builder.height
    /**
     * The detected width of the input file, in pixels.
     */
    public val width: kotlin.Int? = builder.width

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.DetectedProperties = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DetectedProperties(")
        append("durationMillis=$durationMillis,")
        append("fileSize=$fileSize,")
        append("frameRate=$frameRate,")
        append("height=$height,")
        append("width=$width")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = durationMillis?.hashCode() ?: 0
        result = 31 * result + (fileSize?.hashCode() ?: 0)
        result = 31 * result + (frameRate?.hashCode() ?: 0)
        result = 31 * result + (height ?: 0)
        result = 31 * result + (width ?: 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 DetectedProperties

        if (durationMillis != other.durationMillis) return false
        if (fileSize != other.fileSize) return false
        if (frameRate != other.frameRate) return false
        if (height != other.height) return false
        if (width != other.width) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.DetectedProperties = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The detected duration of the input file, in milliseconds.
         */
        public var durationMillis: kotlin.Long? = null
        /**
         * The detected file size of the input file, in bytes.
         */
        public var fileSize: kotlin.Long? = null
        /**
         * The detected frame rate of the input file, in frames per second.
         */
        public var frameRate: kotlin.String? = null
        /**
         * The detected height of the input file, in pixels.
         */
        public var height: kotlin.Int? = null
        /**
         * The detected width of the input file, in pixels.
         */
        public var width: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.DetectedProperties) : this() {
            this.durationMillis = x.durationMillis
            this.fileSize = x.fileSize
            this.frameRate = x.frameRate
            this.height = x.height
            this.width = x.width
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.DetectedProperties = DetectedProperties(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy