commonMain.aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScript.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
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
/**
* Initialization scripts for studio components.
*/
public class StudioComponentInitializationScript private constructor(builder: Builder) {
/**
* The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31".
*/
public val launchProfileProtocolVersion: kotlin.String? = builder.launchProfileProtocolVersion
/**
* The platform of the initialization script, either Windows or Linux.
*/
public val platform: aws.sdk.kotlin.services.nimble.model.LaunchProfilePlatform? = builder.platform
/**
* The method to use when running the initialization script.
*/
public val runContext: aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScriptRunContext? = builder.runContext
/**
* The initialization script.
*/
public val script: kotlin.String? = builder.script
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScript = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StudioComponentInitializationScript(")
append("launchProfileProtocolVersion=$launchProfileProtocolVersion,")
append("platform=$platform,")
append("runContext=$runContext,")
append("script=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = launchProfileProtocolVersion?.hashCode() ?: 0
result = 31 * result + (platform?.hashCode() ?: 0)
result = 31 * result + (runContext?.hashCode() ?: 0)
result = 31 * result + (script?.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 StudioComponentInitializationScript
if (launchProfileProtocolVersion != other.launchProfileProtocolVersion) return false
if (platform != other.platform) return false
if (runContext != other.runContext) return false
if (script != other.script) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScript = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31".
*/
public var launchProfileProtocolVersion: kotlin.String? = null
/**
* The platform of the initialization script, either Windows or Linux.
*/
public var platform: aws.sdk.kotlin.services.nimble.model.LaunchProfilePlatform? = null
/**
* The method to use when running the initialization script.
*/
public var runContext: aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScriptRunContext? = null
/**
* The initialization script.
*/
public var script: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScript) : this() {
this.launchProfileProtocolVersion = x.launchProfileProtocolVersion
this.platform = x.platform
this.runContext = x.runContext
this.script = x.script
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.StudioComponentInitializationScript = StudioComponentInitializationScript(this)
internal fun correctErrors(): Builder {
return this
}
}
}