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