commonMain.aws.sdk.kotlin.services.datapipeline.model.ReportTaskRunnerHeartbeatRequest.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 parameters for ReportTaskRunnerHeartbeat.
*/
public class ReportTaskRunnerHeartbeatRequest private constructor(builder: Builder) {
/**
* The public DNS name of the task runner.
*/
public val hostname: kotlin.String? = builder.hostname
/**
* The ID of the task runner. This value should be unique across your AWS account. In the case of AWS Data Pipeline Task Runner launched on a resource managed by AWS Data Pipeline, the web service provides a unique identifier when it launches the application. If you have written a custom task runner, you should assign a unique identifier for the task runner.
*/
public val taskrunnerId: kotlin.String? = builder.taskrunnerId
/**
* The type of task the task runner is configured to accept and process. The worker group is set as a field on objects in the pipeline when they are created. You can only specify a single value for `workerGroup`. There are no wildcard values permitted in `workerGroup`; the string must be an exact, case-sensitive, match.
*/
public val workerGroup: kotlin.String? = builder.workerGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.ReportTaskRunnerHeartbeatRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportTaskRunnerHeartbeatRequest(")
append("hostname=$hostname,")
append("taskrunnerId=$taskrunnerId,")
append("workerGroup=$workerGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = hostname?.hashCode() ?: 0
result = 31 * result + (taskrunnerId?.hashCode() ?: 0)
result = 31 * result + (workerGroup?.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 ReportTaskRunnerHeartbeatRequest
if (hostname != other.hostname) return false
if (taskrunnerId != other.taskrunnerId) return false
if (workerGroup != other.workerGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.ReportTaskRunnerHeartbeatRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The public DNS name of the task runner.
*/
public var hostname: kotlin.String? = null
/**
* The ID of the task runner. This value should be unique across your AWS account. In the case of AWS Data Pipeline Task Runner launched on a resource managed by AWS Data Pipeline, the web service provides a unique identifier when it launches the application. If you have written a custom task runner, you should assign a unique identifier for the task runner.
*/
public var taskrunnerId: kotlin.String? = null
/**
* The type of task the task runner is configured to accept and process. The worker group is set as a field on objects in the pipeline when they are created. You can only specify a single value for `workerGroup`. There are no wildcard values permitted in `workerGroup`; the string must be an exact, case-sensitive, match.
*/
public var workerGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.ReportTaskRunnerHeartbeatRequest) : this() {
this.hostname = x.hostname
this.taskrunnerId = x.taskrunnerId
this.workerGroup = x.workerGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.ReportTaskRunnerHeartbeatRequest = ReportTaskRunnerHeartbeatRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy