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

commonMain.aws.sdk.kotlin.services.emr.model.ScriptBootstrapActionConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.emr.model



/**
 * Configuration of the script to run during a bootstrap action.
 */
public class ScriptBootstrapActionConfig private constructor(builder: Builder) {
    /**
     * A list of command line arguments to pass to the bootstrap action script.
     */
    public val args: List? = builder.args
    /**
     * Location in Amazon S3 of the script to run during a bootstrap action.
     */
    public val path: kotlin.String? = builder.path

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

    override fun toString(): kotlin.String = buildString {
        append("ScriptBootstrapActionConfig(")
        append("args=$args,")
        append("path=$path)")
    }

    override fun hashCode(): kotlin.Int {
        var result = args?.hashCode() ?: 0
        result = 31 * result + (path?.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 ScriptBootstrapActionConfig

        if (args != other.args) return false
        if (path != other.path) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of command line arguments to pass to the bootstrap action script.
         */
        public var args: List? = null
        /**
         * Location in Amazon S3 of the script to run during a bootstrap action.
         */
        public var path: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.ScriptBootstrapActionConfig) : this() {
            this.args = x.args
            this.path = x.path
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.emr.model.ScriptBootstrapActionConfig = ScriptBootstrapActionConfig(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy