commonMain.aws.sdk.kotlin.services.emrserverless.model.GetDashboardForJobRunRequest.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 GetDashboardForJobRunRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
/**
* An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to the attempt of the latest job.
*/
public val attempt: kotlin.Int? = builder.attempt
/**
* 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.GetDashboardForJobRunRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDashboardForJobRunRequest(")
append("applicationId=$applicationId,")
append("attempt=$attempt,")
append("jobRunId=$jobRunId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId.hashCode()
result = 31 * result + (attempt ?: 0)
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 GetDashboardForJobRunRequest
if (applicationId != other.applicationId) return false
if (attempt != other.attempt) return false
if (jobRunId != other.jobRunId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrserverless.model.GetDashboardForJobRunRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* An optimal parameter that indicates the amount of attempts for the job. If not specified, this value defaults to the attempt of the latest job.
*/
public var attempt: kotlin.Int? = 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.GetDashboardForJobRunRequest) : this() {
this.applicationId = x.applicationId
this.attempt = x.attempt
this.jobRunId = x.jobRunId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrserverless.model.GetDashboardForJobRunRequest = GetDashboardForJobRunRequest(this)
internal fun correctErrors(): Builder {
if (applicationId == null) applicationId = ""
if (jobRunId == null) jobRunId = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy