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

commonMain.aws.sdk.kotlin.services.mediapackagevod.model.EgressEndpoint.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mediapackagevod.model



/**
 * The endpoint URL used to access an Asset using one PackagingConfiguration.
 */
public class EgressEndpoint private constructor(builder: Builder) {
    /**
     * The ID of the PackagingConfiguration being applied to the Asset.
     */
    public val packagingConfigurationId: kotlin.String? = builder.packagingConfigurationId
    /**
     * The current processing status of the asset used for the packaging configuration. The status can be either QUEUED, PROCESSING, PLAYABLE, or FAILED. Status information won't be available for most assets ingested before 2021-09-30.
     */
    public val status: kotlin.String? = builder.status
    /**
     * The URL of the parent manifest for the repackaged Asset.
     */
    public val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("EgressEndpoint(")
        append("packagingConfigurationId=$packagingConfigurationId,")
        append("status=$status,")
        append("url=$url")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = packagingConfigurationId?.hashCode() ?: 0
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (url?.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 EgressEndpoint

        if (packagingConfigurationId != other.packagingConfigurationId) return false
        if (status != other.status) return false
        if (url != other.url) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the PackagingConfiguration being applied to the Asset.
         */
        public var packagingConfigurationId: kotlin.String? = null
        /**
         * The current processing status of the asset used for the packaging configuration. The status can be either QUEUED, PROCESSING, PLAYABLE, or FAILED. Status information won't be available for most assets ingested before 2021-09-30.
         */
        public var status: kotlin.String? = null
        /**
         * The URL of the parent manifest for the repackaged Asset.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediapackagevod.model.EgressEndpoint) : this() {
            this.packagingConfigurationId = x.packagingConfigurationId
            this.status = x.status
            this.url = x.url
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy