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

commonMain.aws.sdk.kotlin.services.ivsrealtime.model.StorageConfigurationSummary.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

/**
 * Summary information about a storage configuration.
 */
public class StorageConfigurationSummary private constructor(builder: Builder) {
    /**
     * ARN of the storage configuration.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * Name of the storage configuration.
     */
    public val name: kotlin.String? = builder.name
    /**
     * An S3 destination configuration where recorded videos 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.StorageConfigurationSummary = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * 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 StorageConfigurationSummary

        if (arn != other.arn) return false
        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.StorageConfigurationSummary = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * ARN of the storage configuration.
         */
        public var arn: kotlin.String? = null
        /**
         * Name of the storage configuration.
         */
        public var name: kotlin.String? = null
        /**
         * An S3 destination configuration where recorded videos 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.StorageConfigurationSummary) : this() {
            this.arn = x.arn
            this.name = x.name
            this.s3 = x.s3
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.StorageConfigurationSummary = StorageConfigurationSummary(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 {
            if (arn == null) arn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy