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

commonMain.aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot.kt Maven / Gradle / Ivy

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 upload storage root location (folder) on streaming workstations where files are uploaded.
 */
public class StreamingSessionStorageRoot private constructor(builder: Builder) {
    /**
     * The folder path in Linux workstations where files are uploaded.
     */
    public val linux: kotlin.String? = builder.linux
    /**
     * The folder path in Windows workstations where files are uploaded.
     */
    public val windows: kotlin.String? = builder.windows

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

    override fun toString(): kotlin.String = buildString {
        append("StreamingSessionStorageRoot(")
        append("linux=*** Sensitive Data Redacted ***,")
        append("windows=*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (linux != other.linux) return false
        if (windows != other.windows) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The folder path in Linux workstations where files are uploaded.
         */
        public var linux: kotlin.String? = null
        /**
         * The folder path in Windows workstations where files are uploaded.
         */
        public var windows: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamingSessionStorageRoot) : this() {
            this.linux = x.linux
            this.windows = x.windows
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy