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

commonMain.aws.sdk.kotlin.services.emrserverless.model.SparkSubmit.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.emrserverless.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The configurations for the Spark submit job driver.
 */
public class SparkSubmit private constructor(builder: Builder) {
    /**
     * The entry point for the Spark submit job run.
     */
    public val entryPoint: kotlin.String = requireNotNull(builder.entryPoint) { "A non-null value must be provided for entryPoint" }
    /**
     * The arguments for the Spark submit job run.
     */
    public val entryPointArguments: List? = builder.entryPointArguments
    /**
     * The parameters for the Spark submit job run.
     */
    public val sparkSubmitParameters: kotlin.String? = builder.sparkSubmitParameters

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

    override fun toString(): kotlin.String = buildString {
        append("SparkSubmit(")
        append("entryPoint=*** Sensitive Data Redacted ***,")
        append("entryPointArguments=$entryPointArguments,")
        append("sparkSubmitParameters=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = entryPoint.hashCode()
        result = 31 * result + (entryPointArguments?.hashCode() ?: 0)
        result = 31 * result + (sparkSubmitParameters?.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 SparkSubmit

        if (entryPoint != other.entryPoint) return false
        if (entryPointArguments != other.entryPointArguments) return false
        if (sparkSubmitParameters != other.sparkSubmitParameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The entry point for the Spark submit job run.
         */
        public var entryPoint: kotlin.String? = null
        /**
         * The arguments for the Spark submit job run.
         */
        public var entryPointArguments: List? = null
        /**
         * The parameters for the Spark submit job run.
         */
        public var sparkSubmitParameters: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.SparkSubmit) : this() {
            this.entryPoint = x.entryPoint
            this.entryPointArguments = x.entryPointArguments
            this.sparkSubmitParameters = x.sparkSubmitParameters
        }

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

        internal fun correctErrors(): Builder {
            if (entryPoint == null) entryPoint = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy