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

commonMain.aws.sdk.kotlin.services.mediapackagevod.model.CreatePackagingConfigurationRequest.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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A new MediaPackage VOD PackagingConfiguration resource configuration.
 */
public class CreatePackagingConfigurationRequest private constructor(builder: Builder) {
    /**
     * A CMAF packaging configuration.
     */
    public val cmafPackage: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage? = builder.cmafPackage
    /**
     * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
     */
    public val dashPackage: aws.sdk.kotlin.services.mediapackagevod.model.DashPackage? = builder.dashPackage
    /**
     * An HTTP Live Streaming (HLS) packaging configuration.
     */
    public val hlsPackage: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage? = builder.hlsPackage
    /**
     * The ID of the PackagingConfiguration.
     */
    public val id: kotlin.String? = builder.id
    /**
     * A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
     */
    public val mssPackage: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage? = builder.mssPackage
    /**
     * The ID of a PackagingGroup.
     */
    public val packagingGroupId: kotlin.String? = builder.packagingGroupId
    /**
     * A collection of tags associated with a resource
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreatePackagingConfigurationRequest(")
        append("cmafPackage=$cmafPackage,")
        append("dashPackage=$dashPackage,")
        append("hlsPackage=$hlsPackage,")
        append("id=$id,")
        append("mssPackage=$mssPackage,")
        append("packagingGroupId=$packagingGroupId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cmafPackage?.hashCode() ?: 0
        result = 31 * result + (dashPackage?.hashCode() ?: 0)
        result = 31 * result + (hlsPackage?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (mssPackage?.hashCode() ?: 0)
        result = 31 * result + (packagingGroupId?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreatePackagingConfigurationRequest

        if (cmafPackage != other.cmafPackage) return false
        if (dashPackage != other.dashPackage) return false
        if (hlsPackage != other.hlsPackage) return false
        if (id != other.id) return false
        if (mssPackage != other.mssPackage) return false
        if (packagingGroupId != other.packagingGroupId) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A CMAF packaging configuration.
         */
        public var cmafPackage: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage? = null
        /**
         * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
         */
        public var dashPackage: aws.sdk.kotlin.services.mediapackagevod.model.DashPackage? = null
        /**
         * An HTTP Live Streaming (HLS) packaging configuration.
         */
        public var hlsPackage: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage? = null
        /**
         * The ID of the PackagingConfiguration.
         */
        public var id: kotlin.String? = null
        /**
         * A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
         */
        public var mssPackage: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage? = null
        /**
         * The ID of a PackagingGroup.
         */
        public var packagingGroupId: kotlin.String? = null
        /**
         * A collection of tags associated with a resource
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediapackagevod.model.CreatePackagingConfigurationRequest) : this() {
            this.cmafPackage = x.cmafPackage
            this.dashPackage = x.dashPackage
            this.hlsPackage = x.hlsPackage
            this.id = x.id
            this.mssPackage = x.mssPackage
            this.packagingGroupId = x.packagingGroupId
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage] inside the given [block]
         */
        public fun cmafPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage.Builder.() -> kotlin.Unit) {
            this.cmafPackage = aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.mediapackagevod.model.DashPackage] inside the given [block]
         */
        public fun dashPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.DashPackage.Builder.() -> kotlin.Unit) {
            this.dashPackage = aws.sdk.kotlin.services.mediapackagevod.model.DashPackage.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage] inside the given [block]
         */
        public fun hlsPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage.Builder.() -> kotlin.Unit) {
            this.hlsPackage = aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.mediapackagevod.model.MssPackage] inside the given [block]
         */
        public fun mssPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage.Builder.() -> kotlin.Unit) {
            this.mssPackage = aws.sdk.kotlin.services.mediapackagevod.model.MssPackage.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy