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