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

commonMain.aws.sdk.kotlin.services.appstream.model.Stack.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Describes a stack.
 */
public class Stack private constructor(builder: Builder) {
    /**
     * The list of virtual private cloud (VPC) interface endpoint objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.
     */
    public val accessEndpoints: List? = builder.accessEndpoints
    /**
     * The persistent application settings for users of the stack.
     */
    public val applicationSettings: aws.sdk.kotlin.services.appstream.model.ApplicationSettingsResponse? = builder.applicationSettings
    /**
     * The ARN of the stack.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time the stack was created.
     */
    public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The description to display.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The stack name to display.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.
     */
    public val embedHostDomains: List? = builder.embedHostDomains
    /**
     * The URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.
     */
    public val feedbackUrl: kotlin.String? = builder.feedbackUrl
    /**
     * The name of the stack.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The URL that users are redirected to after their streaming session ends.
     */
    public val redirectUrl: kotlin.String? = builder.redirectUrl
    /**
     * The errors for the stack.
     */
    public val stackErrors: List? = builder.stackErrors
    /**
     * The storage connectors to enable.
     */
    public val storageConnectors: List? = builder.storageConnectors
    /**
     * The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.
     */
    public val streamingExperienceSettings: aws.sdk.kotlin.services.appstream.model.StreamingExperienceSettings? = builder.streamingExperienceSettings
    /**
     * The actions that are enabled or disabled for users during their streaming sessions. By default these actions are enabled.
     */
    public val userSettings: List? = builder.userSettings

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

    override fun toString(): kotlin.String = buildString {
        append("Stack(")
        append("accessEndpoints=$accessEndpoints,")
        append("applicationSettings=$applicationSettings,")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("description=$description,")
        append("displayName=$displayName,")
        append("embedHostDomains=$embedHostDomains,")
        append("feedbackUrl=$feedbackUrl,")
        append("name=$name,")
        append("redirectUrl=$redirectUrl,")
        append("stackErrors=$stackErrors,")
        append("storageConnectors=$storageConnectors,")
        append("streamingExperienceSettings=$streamingExperienceSettings,")
        append("userSettings=$userSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessEndpoints?.hashCode() ?: 0
        result = 31 * result + (applicationSettings?.hashCode() ?: 0)
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (embedHostDomains?.hashCode() ?: 0)
        result = 31 * result + (feedbackUrl?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (redirectUrl?.hashCode() ?: 0)
        result = 31 * result + (stackErrors?.hashCode() ?: 0)
        result = 31 * result + (storageConnectors?.hashCode() ?: 0)
        result = 31 * result + (streamingExperienceSettings?.hashCode() ?: 0)
        result = 31 * result + (userSettings?.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 Stack

        if (accessEndpoints != other.accessEndpoints) return false
        if (applicationSettings != other.applicationSettings) return false
        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (embedHostDomains != other.embedHostDomains) return false
        if (feedbackUrl != other.feedbackUrl) return false
        if (name != other.name) return false
        if (redirectUrl != other.redirectUrl) return false
        if (stackErrors != other.stackErrors) return false
        if (storageConnectors != other.storageConnectors) return false
        if (streamingExperienceSettings != other.streamingExperienceSettings) return false
        if (userSettings != other.userSettings) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The list of virtual private cloud (VPC) interface endpoint objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.
         */
        public var accessEndpoints: List? = null
        /**
         * The persistent application settings for users of the stack.
         */
        public var applicationSettings: aws.sdk.kotlin.services.appstream.model.ApplicationSettingsResponse? = null
        /**
         * The ARN of the stack.
         */
        public var arn: kotlin.String? = null
        /**
         * The time the stack was created.
         */
        public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description to display.
         */
        public var description: kotlin.String? = null
        /**
         * The stack name to display.
         */
        public var displayName: kotlin.String? = null
        /**
         * The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.
         */
        public var embedHostDomains: List? = null
        /**
         * The URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.
         */
        public var feedbackUrl: kotlin.String? = null
        /**
         * The name of the stack.
         */
        public var name: kotlin.String? = null
        /**
         * The URL that users are redirected to after their streaming session ends.
         */
        public var redirectUrl: kotlin.String? = null
        /**
         * The errors for the stack.
         */
        public var stackErrors: List? = null
        /**
         * The storage connectors to enable.
         */
        public var storageConnectors: List? = null
        /**
         * The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.
         */
        public var streamingExperienceSettings: aws.sdk.kotlin.services.appstream.model.StreamingExperienceSettings? = null
        /**
         * The actions that are enabled or disabled for users during their streaming sessions. By default these actions are enabled.
         */
        public var userSettings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.Stack) : this() {
            this.accessEndpoints = x.accessEndpoints
            this.applicationSettings = x.applicationSettings
            this.arn = x.arn
            this.createdTime = x.createdTime
            this.description = x.description
            this.displayName = x.displayName
            this.embedHostDomains = x.embedHostDomains
            this.feedbackUrl = x.feedbackUrl
            this.name = x.name
            this.redirectUrl = x.redirectUrl
            this.stackErrors = x.stackErrors
            this.storageConnectors = x.storageConnectors
            this.streamingExperienceSettings = x.streamingExperienceSettings
            this.userSettings = x.userSettings
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.appstream.model.ApplicationSettingsResponse] inside the given [block]
         */
        public fun applicationSettings(block: aws.sdk.kotlin.services.appstream.model.ApplicationSettingsResponse.Builder.() -> kotlin.Unit) {
            this.applicationSettings = aws.sdk.kotlin.services.appstream.model.ApplicationSettingsResponse.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.appstream.model.StreamingExperienceSettings] inside the given [block]
         */
        public fun streamingExperienceSettings(block: aws.sdk.kotlin.services.appstream.model.StreamingExperienceSettings.Builder.() -> kotlin.Unit) {
            this.streamingExperienceSettings = aws.sdk.kotlin.services.appstream.model.StreamingExperienceSettings.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy