commonMain.aws.sdk.kotlin.services.glue.model.GetMlTaskRunsRequest.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
public class GetMlTaskRunsRequest private constructor(builder: Builder) {
/**
* The filter criteria, in the `TaskRunFilterCriteria` structure, for the task run.
*/
public val filter: aws.sdk.kotlin.services.glue.model.TaskRunFilterCriteria? = builder.filter
/**
* The maximum number of results to return.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* A token for pagination of the results. The default is empty.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The sorting criteria, in the `TaskRunSortCriteria` structure, for the task run.
*/
public val sort: aws.sdk.kotlin.services.glue.model.TaskRunSortCriteria? = builder.sort
/**
* The unique identifier of the machine learning transform.
*/
public val transformId: kotlin.String? = builder.transformId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetMlTaskRunsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMlTaskRunsRequest(")
append("filter=$filter,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("sort=$sort,")
append("transformId=$transformId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filter?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (sort?.hashCode() ?: 0)
result = 31 * result + (transformId?.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 GetMlTaskRunsRequest
if (filter != other.filter) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (sort != other.sort) return false
if (transformId != other.transformId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetMlTaskRunsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The filter criteria, in the `TaskRunFilterCriteria` structure, for the task run.
*/
public var filter: aws.sdk.kotlin.services.glue.model.TaskRunFilterCriteria? = null
/**
* The maximum number of results to return.
*/
public var maxResults: kotlin.Int? = null
/**
* A token for pagination of the results. The default is empty.
*/
public var nextToken: kotlin.String? = null
/**
* The sorting criteria, in the `TaskRunSortCriteria` structure, for the task run.
*/
public var sort: aws.sdk.kotlin.services.glue.model.TaskRunSortCriteria? = null
/**
* The unique identifier of the machine learning transform.
*/
public var transformId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetMlTaskRunsRequest) : this() {
this.filter = x.filter
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.sort = x.sort
this.transformId = x.transformId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetMlTaskRunsRequest = GetMlTaskRunsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.TaskRunFilterCriteria] inside the given [block]
*/
public fun filter(block: aws.sdk.kotlin.services.glue.model.TaskRunFilterCriteria.Builder.() -> kotlin.Unit) {
this.filter = aws.sdk.kotlin.services.glue.model.TaskRunFilterCriteria.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.TaskRunSortCriteria] inside the given [block]
*/
public fun sort(block: aws.sdk.kotlin.services.glue.model.TaskRunSortCriteria.Builder.() -> kotlin.Unit) {
this.sort = aws.sdk.kotlin.services.glue.model.TaskRunSortCriteria.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}