
commonMain.aws.sdk.kotlin.services.braket.model.GetJobRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.braket.model
public class GetJobRequest private constructor(builder: Builder) {
/**
* A list of attributes to return information for.
*/
public val additionalAttributeNames: List? = builder.additionalAttributeNames
/**
* The ARN of the job to retrieve.
*/
public val jobArn: kotlin.String = requireNotNull(builder.jobArn) { "A non-null value must be provided for jobArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.braket.model.GetJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetJobRequest(")
append("additionalAttributeNames=$additionalAttributeNames,")
append("jobArn=$jobArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalAttributeNames?.hashCode() ?: 0
result = 31 * result + (jobArn.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 GetJobRequest
if (additionalAttributeNames != other.additionalAttributeNames) return false
if (jobArn != other.jobArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.braket.model.GetJobRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A list of attributes to return information for.
*/
public var additionalAttributeNames: List? = null
/**
* The ARN of the job to retrieve.
*/
public var jobArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.braket.model.GetJobRequest) : this() {
this.additionalAttributeNames = x.additionalAttributeNames
this.jobArn = x.jobArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.braket.model.GetJobRequest = GetJobRequest(this)
internal fun correctErrors(): Builder {
if (jobArn == null) jobArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy