commonMain.aws.sdk.kotlin.services.datasync.model.DeleteTaskRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* DeleteTask
*/
public class DeleteTaskRequest private constructor(builder: Builder) {
/**
* Specifies the Amazon Resource Name (ARN) of the task that you want to delete.
*/
public val taskArn: kotlin.String? = builder.taskArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DeleteTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteTaskRequest(")
append("taskArn=$taskArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = taskArn?.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 DeleteTaskRequest
if (taskArn != other.taskArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DeleteTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the Amazon Resource Name (ARN) of the task that you want to delete.
*/
public var taskArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DeleteTaskRequest) : this() {
this.taskArn = x.taskArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DeleteTaskRequest = DeleteTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy