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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateStackRequest private constructor(builder: Builder) {
    /**
     * The list of interface VPC endpoint (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 a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.
     */
    public val applicationSettings: aws.sdk.kotlin.services.appstream.model.ApplicationSettings? = builder.applicationSettings
    /**
     * 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 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 tags to associate with the stack. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
     *
     * If you do not specify a value, the value is set to an empty string.
     *
     * Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
     *
     * _ . : / = + \ - @
     *
     * For more information about tags, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
     */
    public val tags: Map? = builder.tags
    /**
     * 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.CreateStackRequest = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = accessEndpoints?.hashCode() ?: 0
        result = 31 * result + (applicationSettings?.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 + (storageConnectors?.hashCode() ?: 0)
        result = 31 * result + (streamingExperienceSettings?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateStackRequest

        if (accessEndpoints != other.accessEndpoints) return false
        if (applicationSettings != other.applicationSettings) 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 (storageConnectors != other.storageConnectors) return false
        if (streamingExperienceSettings != other.streamingExperienceSettings) return false
        if (tags != other.tags) return false
        if (userSettings != other.userSettings) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The list of interface VPC endpoint (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 a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.
         */
        public var applicationSettings: aws.sdk.kotlin.services.appstream.model.ApplicationSettings? = 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 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 tags to associate with the stack. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
         *
         * If you do not specify a value, the value is set to an empty string.
         *
         * Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
         *
         * _ . : / = + \ - @
         *
         * For more information about tags, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
         */
        public var tags: Map? = 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.CreateStackRequest) : this() {
            this.accessEndpoints = x.accessEndpoints
            this.applicationSettings = x.applicationSettings
            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.storageConnectors = x.storageConnectors
            this.streamingExperienceSettings = x.streamingExperienceSettings
            this.tags = x.tags
            this.userSettings = x.userSettings
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.appstream.model.ApplicationSettings] inside the given [block]
         */
        public fun applicationSettings(block: aws.sdk.kotlin.services.appstream.model.ApplicationSettings.Builder.() -> kotlin.Unit) {
            this.applicationSettings = aws.sdk.kotlin.services.appstream.model.ApplicationSettings.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