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

commonMain.aws.sdk.kotlin.services.nimble.model.StreamingSessionStream.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * A stream is an active connection to a streaming session, enabling a studio user to control the streaming session using a compatible client. Streaming session streams are compatible with the NICE DCV web client, included in the Nimble Studio portal, or the NICE DCV desktop client.
 */
public class StreamingSessionStream private constructor(builder: Builder) {
    /**
     * The ISO timestamp in seconds for when the resource was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The user ID of the user that created the streaming session stream.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The ISO timestamp in seconds for when the resource expires.
     */
    public val expiresAt: aws.smithy.kotlin.runtime.time.Instant? = builder.expiresAt
    /**
     * The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation.
     */
    public val ownedBy: kotlin.String? = builder.ownedBy
    /**
     * The current state.
     */
    public val state: aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamState? = builder.state
    /**
     * The streaming session stream status code.
     */
    public val statusCode: aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode? = builder.statusCode
    /**
     * The stream ID.
     */
    public val streamId: kotlin.String? = builder.streamId
    /**
     * The URL to connect to this stream using the DCV client.
     */
    public val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("StreamingSessionStream(")
        append("createdAt=$createdAt,")
        append("createdBy=$createdBy,")
        append("expiresAt=$expiresAt,")
        append("ownedBy=$ownedBy,")
        append("state=$state,")
        append("statusCode=$statusCode,")
        append("streamId=$streamId,")
        append("url=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (expiresAt?.hashCode() ?: 0)
        result = 31 * result + (ownedBy?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (statusCode?.hashCode() ?: 0)
        result = 31 * result + (streamId?.hashCode() ?: 0)
        result = 31 * result + (url?.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 StreamingSessionStream

        if (createdAt != other.createdAt) return false
        if (createdBy != other.createdBy) return false
        if (expiresAt != other.expiresAt) return false
        if (ownedBy != other.ownedBy) return false
        if (state != other.state) return false
        if (statusCode != other.statusCode) return false
        if (streamId != other.streamId) return false
        if (url != other.url) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ISO timestamp in seconds for when the resource was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The user ID of the user that created the streaming session stream.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The ISO timestamp in seconds for when the resource expires.
         */
        public var expiresAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation.
         */
        public var ownedBy: kotlin.String? = null
        /**
         * The current state.
         */
        public var state: aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamState? = null
        /**
         * The streaming session stream status code.
         */
        public var statusCode: aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode? = null
        /**
         * The stream ID.
         */
        public var streamId: kotlin.String? = null
        /**
         * The URL to connect to this stream using the DCV client.
         */
        public var url: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamingSessionStream) : this() {
            this.createdAt = x.createdAt
            this.createdBy = x.createdBy
            this.expiresAt = x.expiresAt
            this.ownedBy = x.ownedBy
            this.state = x.state
            this.statusCode = x.statusCode
            this.streamId = x.streamId
            this.url = x.url
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy