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

commonMain.aws.sdk.kotlin.services.ivsrealtime.model.CreateStorageConfigurationRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ivsrealtime.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateStorageConfigurationRequest private constructor(builder: Builder) {
    /**
     * Storage configuration name. The value does not need to be unique.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A complex type that contains a storage configuration for where recorded video will be stored.
     */
    public val s3: aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration? = builder.s3
    /**
     * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateStorageConfigurationRequest(")
        append("name=$name,")
        append("s3=$s3,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = name?.hashCode() ?: 0
        result = 31 * result + (s3?.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 CreateStorageConfigurationRequest

        if (name != other.name) return false
        if (s3 != other.s3) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Storage configuration name. The value does not need to be unique.
         */
        public var name: kotlin.String? = null
        /**
         * A complex type that contains a storage configuration for where recorded video will be stored.
         */
        public var s3: aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration? = null
        /**
         * Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.CreateStorageConfigurationRequest) : this() {
            this.name = x.name
            this.s3 = x.s3
            this.tags = x.tags
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy