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

commonMain.aws.sdk.kotlin.services.appstream.model.ScriptDetails.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



/**
 * Describes the details of the script.
 */
class ScriptDetails private constructor(builder: Builder) {
    /**
     * The runtime parameters passed to the run path for the script.
     */
    val executableParameters: kotlin.String? = builder.executableParameters
    /**
     * The run path for the script.
     */
    val executablePath: kotlin.String? = builder.executablePath
    /**
     * The S3 object location for the script.
     */
    val scriptS3Location: aws.sdk.kotlin.services.appstream.model.S3Location? = builder.scriptS3Location
    /**
     * The run timeout, in seconds, for the script.
     */
    val timeoutInSeconds: kotlin.Int? = builder.timeoutInSeconds

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

    override fun toString(): kotlin.String = buildString {
        append("ScriptDetails(")
        append("executableParameters=$executableParameters,")
        append("executablePath=$executablePath,")
        append("scriptS3Location=$scriptS3Location,")
        append("timeoutInSeconds=$timeoutInSeconds)")
    }

    override fun hashCode(): kotlin.Int {
        var result = executableParameters?.hashCode() ?: 0
        result = 31 * result + (executablePath?.hashCode() ?: 0)
        result = 31 * result + (scriptS3Location?.hashCode() ?: 0)
        result = 31 * result + (timeoutInSeconds ?: 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 ScriptDetails

        if (executableParameters != other.executableParameters) return false
        if (executablePath != other.executablePath) return false
        if (scriptS3Location != other.scriptS3Location) return false
        if (timeoutInSeconds != other.timeoutInSeconds) return false

        return true
    }

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

    class Builder {
        /**
         * The runtime parameters passed to the run path for the script.
         */
        var executableParameters: kotlin.String? = null
        /**
         * The run path for the script.
         */
        var executablePath: kotlin.String? = null
        /**
         * The S3 object location for the script.
         */
        var scriptS3Location: aws.sdk.kotlin.services.appstream.model.S3Location? = null
        /**
         * The run timeout, in seconds, for the script.
         */
        var timeoutInSeconds: kotlin.Int? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.ScriptDetails) : this() {
            this.executableParameters = x.executableParameters
            this.executablePath = x.executablePath
            this.scriptS3Location = x.scriptS3Location
            this.timeoutInSeconds = x.timeoutInSeconds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy