
commonMain.aws.sdk.kotlin.services.batch.model.SubmitJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
public class SubmitJobResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the job.
*/
public val jobArn: kotlin.String? = builder.jobArn
/**
* The unique identifier for the job.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The name of the job.
*/
public val jobName: kotlin.String? = builder.jobName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.SubmitJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubmitJobResponse(")
append("jobArn=$jobArn,")
append("jobId=$jobId,")
append("jobName=$jobName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobArn?.hashCode() ?: 0
result = 31 * result + (jobId?.hashCode() ?: 0)
result = 31 * result + (jobName?.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 SubmitJobResponse
if (jobArn != other.jobArn) return false
if (jobId != other.jobId) return false
if (jobName != other.jobName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.SubmitJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) for the job.
*/
public var jobArn: kotlin.String? = null
/**
* The unique identifier for the job.
*/
public var jobId: kotlin.String? = null
/**
* The name of the job.
*/
public var jobName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.SubmitJobResponse) : this() {
this.jobArn = x.jobArn
this.jobId = x.jobId
this.jobName = x.jobName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.SubmitJobResponse = SubmitJobResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy