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

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

/**
 * Complex data type that defines S3Detail objects.
 */
public class S3Detail private constructor(builder: Builder) {
    /**
     * The S3 bucket prefix under which the recording is stored.
     */
    public val recordingPrefix: kotlin.String = requireNotNull(builder.recordingPrefix) { "A non-null value must be provided for recordingPrefix" }

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

    override fun toString(): kotlin.String = buildString {
        append("S3Detail(")
        append("recordingPrefix=$recordingPrefix")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = recordingPrefix.hashCode()
        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 S3Detail

        if (recordingPrefix != other.recordingPrefix) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The S3 bucket prefix under which the recording is stored.
         */
        public var recordingPrefix: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.S3Detail) : this() {
            this.recordingPrefix = x.recordingPrefix
        }

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

        internal fun correctErrors(): Builder {
            if (recordingPrefix == null) recordingPrefix = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy