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

commonMain.aws.sdk.kotlin.services.nimble.model.LaunchProfileInitializationScript.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 launch profile initialization script is used when start streaming session runs.
 */
public class LaunchProfileInitializationScript private constructor(builder: Builder) {
    /**
     * An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
     */
    public val runtimeRoleArn: kotlin.String? = builder.runtimeRoleArn
    /**
     * The initialization script.
     */
    public val script: kotlin.String? = builder.script
    /**
     * An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
     */
    public val secureInitializationRoleArn: kotlin.String? = builder.secureInitializationRoleArn
    /**
     * The unique identifier for a studio component resource.
     */
    public val studioComponentId: kotlin.String? = builder.studioComponentId
    /**
     * The name for the studio component.
     */
    public val studioComponentName: kotlin.String? = builder.studioComponentName

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

    override fun toString(): kotlin.String = buildString {
        append("LaunchProfileInitializationScript(")
        append("runtimeRoleArn=$runtimeRoleArn,")
        append("script=*** Sensitive Data Redacted ***,")
        append("secureInitializationRoleArn=$secureInitializationRoleArn,")
        append("studioComponentId=$studioComponentId,")
        append("studioComponentName=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = runtimeRoleArn?.hashCode() ?: 0
        result = 31 * result + (script?.hashCode() ?: 0)
        result = 31 * result + (secureInitializationRoleArn?.hashCode() ?: 0)
        result = 31 * result + (studioComponentId?.hashCode() ?: 0)
        result = 31 * result + (studioComponentName?.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 LaunchProfileInitializationScript

        if (runtimeRoleArn != other.runtimeRoleArn) return false
        if (script != other.script) return false
        if (secureInitializationRoleArn != other.secureInitializationRoleArn) return false
        if (studioComponentId != other.studioComponentId) return false
        if (studioComponentName != other.studioComponentName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
         */
        public var runtimeRoleArn: kotlin.String? = null
        /**
         * The initialization script.
         */
        public var script: kotlin.String? = null
        /**
         * An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
         */
        public var secureInitializationRoleArn: kotlin.String? = null
        /**
         * The unique identifier for a studio component resource.
         */
        public var studioComponentId: kotlin.String? = null
        /**
         * The name for the studio component.
         */
        public var studioComponentName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.LaunchProfileInitializationScript) : this() {
            this.runtimeRoleArn = x.runtimeRoleArn
            this.script = x.script
            this.secureInitializationRoleArn = x.secureInitializationRoleArn
            this.studioComponentId = x.studioComponentId
            this.studioComponentName = x.studioComponentName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy