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

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



/**
 * A new MediaPackage VOD PackagingGroup resource configuration.
 */
public class CreatePackagingGroupRequest private constructor(builder: Builder) {
    /**
     * CDN Authorization credentials
     */
    public val authorization: aws.sdk.kotlin.services.mediapackagevod.model.Authorization? = builder.authorization
    /**
     * Configure egress access logging.
     */
    public val egressAccessLogs: aws.sdk.kotlin.services.mediapackagevod.model.EgressAccessLogs? = builder.egressAccessLogs
    /**
     * The ID of the PackagingGroup.
     */
    public val id: kotlin.String? = builder.id
    /**
     * 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.CreatePackagingGroupRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreatePackagingGroupRequest(")
        append("authorization=$authorization,")
        append("egressAccessLogs=$egressAccessLogs,")
        append("id=$id,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = authorization?.hashCode() ?: 0
        result = 31 * result + (egressAccessLogs?.hashCode() ?: 0)
        result = 31 * result + (id?.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 CreatePackagingGroupRequest

        if (authorization != other.authorization) return false
        if (egressAccessLogs != other.egressAccessLogs) return false
        if (id != other.id) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * CDN Authorization credentials
         */
        public var authorization: aws.sdk.kotlin.services.mediapackagevod.model.Authorization? = null
        /**
         * Configure egress access logging.
         */
        public var egressAccessLogs: aws.sdk.kotlin.services.mediapackagevod.model.EgressAccessLogs? = null
        /**
         * The ID of the PackagingGroup.
         */
        public var id: 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.CreatePackagingGroupRequest) : this() {
            this.authorization = x.authorization
            this.egressAccessLogs = x.egressAccessLogs
            this.id = x.id
            this.tags = x.tags
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy