commonMain.aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionStorage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration for a streaming session’s upload storage.
*/
public class StreamConfigurationSessionStorage private constructor(builder: Builder) {
/**
* Allows artists to upload files to their workstations. The only valid option is `UPLOAD`.
*/
public val mode: List = requireNotNull(builder.mode) { "A non-null value must be provided for mode" }
/**
* The configuration for the upload storage root of the streaming session.
*/
public val root: aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot? = builder.root
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionStorage = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamConfigurationSessionStorage(")
append("mode=$mode,")
append("root=$root")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mode.hashCode()
result = 31 * result + (root?.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 StreamConfigurationSessionStorage
if (mode != other.mode) return false
if (root != other.root) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionStorage = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Allows artists to upload files to their workstations. The only valid option is `UPLOAD`.
*/
public var mode: List? = null
/**
* The configuration for the upload storage root of the streaming session.
*/
public var root: aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionStorage) : this() {
this.mode = x.mode
this.root = x.root
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionStorage = StreamConfigurationSessionStorage(this)
/**
* construct an [aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot] inside the given [block]
*/
public fun root(block: aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot.Builder.() -> kotlin.Unit) {
this.root = aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot.invoke(block)
}
internal fun correctErrors(): Builder {
if (mode == null) mode = emptyList()
return this
}
}
}