commonMain.aws.sdk.kotlin.services.datapipeline.model.PollForTaskResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datapipeline-jvm Show documentation
Show all versions of datapipeline-jvm Show documentation
The AWS SDK for Kotlin client for Data Pipeline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the output of PollForTask.
*/
public class PollForTaskResponse private constructor(builder: Builder) {
/**
* The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is `taskId`, which contains an identifier for the task being assigned. The calling task runner uses `taskId` in subsequent calls to ReportTaskProgress and SetTaskStatus.
*/
public val taskObject: aws.sdk.kotlin.services.datapipeline.model.TaskObject? = builder.taskObject
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.PollForTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PollForTaskResponse(")
append("taskObject=$taskObject")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = taskObject?.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 PollForTaskResponse
if (taskObject != other.taskObject) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.PollForTaskResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The information needed to complete the task that is being assigned to the task runner. One of the fields returned in this object is `taskId`, which contains an identifier for the task being assigned. The calling task runner uses `taskId` in subsequent calls to ReportTaskProgress and SetTaskStatus.
*/
public var taskObject: aws.sdk.kotlin.services.datapipeline.model.TaskObject? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.PollForTaskResponse) : this() {
this.taskObject = x.taskObject
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.PollForTaskResponse = PollForTaskResponse(this)
/**
* construct an [aws.sdk.kotlin.services.datapipeline.model.TaskObject] inside the given [block]
*/
public fun taskObject(block: aws.sdk.kotlin.services.datapipeline.model.TaskObject.Builder.() -> kotlin.Unit) {
this.taskObject = aws.sdk.kotlin.services.datapipeline.model.TaskObject.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy