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

commonMain.aws.sdk.kotlin.services.emrcontainers.model.StartJobRunRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.emrcontainers.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartJobRunRequest private constructor(builder: Builder) {
    /**
     * The client idempotency token of the job run request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The configuration overrides for the job run.
     */
    public val configurationOverrides: aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides? = builder.configurationOverrides
    /**
     * The execution role ARN for the job run.
     */
    public val executionRoleArn: kotlin.String? = builder.executionRoleArn
    /**
     * The job driver for the job run.
     */
    public val jobDriver: aws.sdk.kotlin.services.emrcontainers.model.JobDriver? = builder.jobDriver
    /**
     * The job template ID to be used to start the job run.
     */
    public val jobTemplateId: kotlin.String? = builder.jobTemplateId
    /**
     * The values of job template parameters to start a job run.
     */
    public val jobTemplateParameters: Map? = builder.jobTemplateParameters
    /**
     * The name of the job run.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The Amazon EMR release version to use for the job run.
     */
    public val releaseLabel: kotlin.String? = builder.releaseLabel
    /**
     * The retry policy configuration for the job run.
     */
    public val retryPolicyConfiguration: aws.sdk.kotlin.services.emrcontainers.model.RetryPolicyConfiguration? = builder.retryPolicyConfiguration
    /**
     * The tags assigned to job runs.
     */
    public val tags: Map? = builder.tags
    /**
     * The virtual cluster ID for which the job run request is submitted.
     */
    public val virtualClusterId: kotlin.String? = builder.virtualClusterId

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

    override fun toString(): kotlin.String = buildString {
        append("StartJobRunRequest(")
        append("clientToken=$clientToken,")
        append("configurationOverrides=$configurationOverrides,")
        append("executionRoleArn=$executionRoleArn,")
        append("jobDriver=$jobDriver,")
        append("jobTemplateId=$jobTemplateId,")
        append("jobTemplateParameters=$jobTemplateParameters,")
        append("name=$name,")
        append("releaseLabel=$releaseLabel,")
        append("retryPolicyConfiguration=$retryPolicyConfiguration,")
        append("tags=$tags,")
        append("virtualClusterId=$virtualClusterId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (configurationOverrides?.hashCode() ?: 0)
        result = 31 * result + (executionRoleArn?.hashCode() ?: 0)
        result = 31 * result + (jobDriver?.hashCode() ?: 0)
        result = 31 * result + (jobTemplateId?.hashCode() ?: 0)
        result = 31 * result + (jobTemplateParameters?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (releaseLabel?.hashCode() ?: 0)
        result = 31 * result + (retryPolicyConfiguration?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (virtualClusterId?.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 StartJobRunRequest

        if (clientToken != other.clientToken) return false
        if (configurationOverrides != other.configurationOverrides) return false
        if (executionRoleArn != other.executionRoleArn) return false
        if (jobDriver != other.jobDriver) return false
        if (jobTemplateId != other.jobTemplateId) return false
        if (jobTemplateParameters != other.jobTemplateParameters) return false
        if (name != other.name) return false
        if (releaseLabel != other.releaseLabel) return false
        if (retryPolicyConfiguration != other.retryPolicyConfiguration) return false
        if (tags != other.tags) return false
        if (virtualClusterId != other.virtualClusterId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The client idempotency token of the job run request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The configuration overrides for the job run.
         */
        public var configurationOverrides: aws.sdk.kotlin.services.emrcontainers.model.ConfigurationOverrides? = null
        /**
         * The execution role ARN for the job run.
         */
        public var executionRoleArn: kotlin.String? = null
        /**
         * The job driver for the job run.
         */
        public var jobDriver: aws.sdk.kotlin.services.emrcontainers.model.JobDriver? = null
        /**
         * The job template ID to be used to start the job run.
         */
        public var jobTemplateId: kotlin.String? = null
        /**
         * The values of job template parameters to start a job run.
         */
        public var jobTemplateParameters: Map? = null
        /**
         * The name of the job run.
         */
        public var name: kotlin.String? = null
        /**
         * The Amazon EMR release version to use for the job run.
         */
        public var releaseLabel: kotlin.String? = null
        /**
         * The retry policy configuration for the job run.
         */
        public var retryPolicyConfiguration: aws.sdk.kotlin.services.emrcontainers.model.RetryPolicyConfiguration? = null
        /**
         * The tags assigned to job runs.
         */
        public var tags: Map? = null
        /**
         * The virtual cluster ID for which the job run request is submitted.
         */
        public var virtualClusterId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.StartJobRunRequest) : this() {
            this.clientToken = x.clientToken
            this.configurationOverrides = x.configurationOverrides
            this.executionRoleArn = x.executionRoleArn
            this.jobDriver = x.jobDriver
            this.jobTemplateId = x.jobTemplateId
            this.jobTemplateParameters = x.jobTemplateParameters
            this.name = x.name
            this.releaseLabel = x.releaseLabel
            this.retryPolicyConfiguration = x.retryPolicyConfiguration
            this.tags = x.tags
            this.virtualClusterId = x.virtualClusterId
        }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy