commonMain.aws.sdk.kotlin.services.glue.model.TaskRunProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration properties for the task run.
*/
public class TaskRunProperties private constructor(builder: Builder) {
/**
* The configuration properties for an exporting labels task run.
*/
public val exportLabelsTaskRunProperties: aws.sdk.kotlin.services.glue.model.ExportLabelsTaskRunProperties? = builder.exportLabelsTaskRunProperties
/**
* The configuration properties for a find matches task run.
*/
public val findMatchesTaskRunProperties: aws.sdk.kotlin.services.glue.model.FindMatchesTaskRunProperties? = builder.findMatchesTaskRunProperties
/**
* The configuration properties for an importing labels task run.
*/
public val importLabelsTaskRunProperties: aws.sdk.kotlin.services.glue.model.ImportLabelsTaskRunProperties? = builder.importLabelsTaskRunProperties
/**
* The configuration properties for a labeling set generation task run.
*/
public val labelingSetGenerationTaskRunProperties: aws.sdk.kotlin.services.glue.model.LabelingSetGenerationTaskRunProperties? = builder.labelingSetGenerationTaskRunProperties
/**
* The type of task run.
*/
public val taskType: aws.sdk.kotlin.services.glue.model.TaskType? = builder.taskType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TaskRunProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TaskRunProperties(")
append("exportLabelsTaskRunProperties=$exportLabelsTaskRunProperties,")
append("findMatchesTaskRunProperties=$findMatchesTaskRunProperties,")
append("importLabelsTaskRunProperties=$importLabelsTaskRunProperties,")
append("labelingSetGenerationTaskRunProperties=$labelingSetGenerationTaskRunProperties,")
append("taskType=$taskType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exportLabelsTaskRunProperties?.hashCode() ?: 0
result = 31 * result + (findMatchesTaskRunProperties?.hashCode() ?: 0)
result = 31 * result + (importLabelsTaskRunProperties?.hashCode() ?: 0)
result = 31 * result + (labelingSetGenerationTaskRunProperties?.hashCode() ?: 0)
result = 31 * result + (taskType?.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 TaskRunProperties
if (exportLabelsTaskRunProperties != other.exportLabelsTaskRunProperties) return false
if (findMatchesTaskRunProperties != other.findMatchesTaskRunProperties) return false
if (importLabelsTaskRunProperties != other.importLabelsTaskRunProperties) return false
if (labelingSetGenerationTaskRunProperties != other.labelingSetGenerationTaskRunProperties) return false
if (taskType != other.taskType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TaskRunProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration properties for an exporting labels task run.
*/
public var exportLabelsTaskRunProperties: aws.sdk.kotlin.services.glue.model.ExportLabelsTaskRunProperties? = null
/**
* The configuration properties for a find matches task run.
*/
public var findMatchesTaskRunProperties: aws.sdk.kotlin.services.glue.model.FindMatchesTaskRunProperties? = null
/**
* The configuration properties for an importing labels task run.
*/
public var importLabelsTaskRunProperties: aws.sdk.kotlin.services.glue.model.ImportLabelsTaskRunProperties? = null
/**
* The configuration properties for a labeling set generation task run.
*/
public var labelingSetGenerationTaskRunProperties: aws.sdk.kotlin.services.glue.model.LabelingSetGenerationTaskRunProperties? = null
/**
* The type of task run.
*/
public var taskType: aws.sdk.kotlin.services.glue.model.TaskType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TaskRunProperties) : this() {
this.exportLabelsTaskRunProperties = x.exportLabelsTaskRunProperties
this.findMatchesTaskRunProperties = x.findMatchesTaskRunProperties
this.importLabelsTaskRunProperties = x.importLabelsTaskRunProperties
this.labelingSetGenerationTaskRunProperties = x.labelingSetGenerationTaskRunProperties
this.taskType = x.taskType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TaskRunProperties = TaskRunProperties(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.ExportLabelsTaskRunProperties] inside the given [block]
*/
public fun exportLabelsTaskRunProperties(block: aws.sdk.kotlin.services.glue.model.ExportLabelsTaskRunProperties.Builder.() -> kotlin.Unit) {
this.exportLabelsTaskRunProperties = aws.sdk.kotlin.services.glue.model.ExportLabelsTaskRunProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.FindMatchesTaskRunProperties] inside the given [block]
*/
public fun findMatchesTaskRunProperties(block: aws.sdk.kotlin.services.glue.model.FindMatchesTaskRunProperties.Builder.() -> kotlin.Unit) {
this.findMatchesTaskRunProperties = aws.sdk.kotlin.services.glue.model.FindMatchesTaskRunProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.ImportLabelsTaskRunProperties] inside the given [block]
*/
public fun importLabelsTaskRunProperties(block: aws.sdk.kotlin.services.glue.model.ImportLabelsTaskRunProperties.Builder.() -> kotlin.Unit) {
this.importLabelsTaskRunProperties = aws.sdk.kotlin.services.glue.model.ImportLabelsTaskRunProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.LabelingSetGenerationTaskRunProperties] inside the given [block]
*/
public fun labelingSetGenerationTaskRunProperties(block: aws.sdk.kotlin.services.glue.model.LabelingSetGenerationTaskRunProperties.Builder.() -> kotlin.Unit) {
this.labelingSetGenerationTaskRunProperties = aws.sdk.kotlin.services.glue.model.LabelingSetGenerationTaskRunProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}