commonMain.aws.sdk.kotlin.services.emrserverless.model.StartJobRunResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartJobRunResponse private constructor(builder: Builder) {
/**
* This output displays the application ID on which the job run was submitted.
*/
public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
/**
* This output displays the ARN of the job run..
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The output contains the ID of the started 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.StartJobRunResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartJobRunResponse(")
append("applicationId=$applicationId,")
append("arn=$arn,")
append("jobRunId=$jobRunId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId.hashCode()
result = 31 * result + (arn.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 StartJobRunResponse
if (applicationId != other.applicationId) return false
if (arn != other.arn) return false
if (jobRunId != other.jobRunId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.StartJobRunResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This output displays the application ID on which the job run was submitted.
*/
public var applicationId: kotlin.String? = null
/**
* This output displays the ARN of the job run..
*/
public var arn: kotlin.String? = null
/**
* The output contains the ID of the started job run.
*/
public var jobRunId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrserverless.model.StartJobRunResponse) : this() {
this.applicationId = x.applicationId
this.arn = x.arn
this.jobRunId = x.jobRunId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.StartJobRunResponse = StartJobRunResponse(this)
internal fun correctErrors(): Builder {
if (applicationId == null) applicationId = ""
if (arn == null) arn = ""
if (jobRunId == null) jobRunId = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy