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

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

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

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



public class GetJobRunRequest private constructor(builder: Builder) {
    /**
     * The ID of the application on which the job run is submitted.
     */
    public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
    /**
     * The ID of the job run.
     */
    public val jobRunId: kotlin.String = requireNotNull(builder.jobRunId) { "A non-null value must be provided for jobRunId" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetJobRunRequest(")
        append("applicationId=$applicationId,")
        append("jobRunId=$jobRunId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId.hashCode()
        result = 31 * result + (jobRunId.hashCode())
        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 GetJobRunRequest

        if (applicationId != other.applicationId) return false
        if (jobRunId != other.jobRunId) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the application on which the job run is submitted.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The ID of the job run.
         */
        public var jobRunId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.GetJobRunRequest) : this() {
            this.applicationId = x.applicationId
            this.jobRunId = x.jobRunId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy