commonMain.aws.sdk.kotlin.services.glue.model.GetMlTaskRunResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetMlTaskRunResponse private constructor(builder: Builder) {
/**
* The date and time when this task run was completed.
*/
public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
/**
* The error strings that are associated with the task run.
*/
public val errorString: kotlin.String? = builder.errorString
/**
* The amount of time (in seconds) that the task run consumed resources.
*/
public val executionTime: kotlin.Int = builder.executionTime
/**
* The date and time when this task run was last modified.
*/
public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
/**
* The names of the log groups that are associated with the task run.
*/
public val logGroupName: kotlin.String? = builder.logGroupName
/**
* The list of properties that are associated with the task run.
*/
public val properties: aws.sdk.kotlin.services.glue.model.TaskRunProperties? = builder.properties
/**
* The date and time when this task run started.
*/
public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
/**
* The status for this task run.
*/
public val status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = builder.status
/**
* The unique run identifier associated with this run.
*/
public val taskRunId: kotlin.String? = builder.taskRunId
/**
* The unique identifier of the task run.
*/
public val transformId: kotlin.String? = builder.transformId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetMlTaskRunResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMlTaskRunResponse(")
append("completedOn=$completedOn,")
append("errorString=$errorString,")
append("executionTime=$executionTime,")
append("lastModifiedOn=$lastModifiedOn,")
append("logGroupName=$logGroupName,")
append("properties=$properties,")
append("startedOn=$startedOn,")
append("status=$status,")
append("taskRunId=$taskRunId,")
append("transformId=$transformId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = completedOn?.hashCode() ?: 0
result = 31 * result + (errorString?.hashCode() ?: 0)
result = 31 * result + (executionTime)
result = 31 * result + (lastModifiedOn?.hashCode() ?: 0)
result = 31 * result + (logGroupName?.hashCode() ?: 0)
result = 31 * result + (properties?.hashCode() ?: 0)
result = 31 * result + (startedOn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (taskRunId?.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 GetMlTaskRunResponse
if (completedOn != other.completedOn) return false
if (errorString != other.errorString) return false
if (executionTime != other.executionTime) return false
if (lastModifiedOn != other.lastModifiedOn) return false
if (logGroupName != other.logGroupName) return false
if (properties != other.properties) return false
if (startedOn != other.startedOn) return false
if (status != other.status) return false
if (taskRunId != other.taskRunId) return false
if (transformId != other.transformId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetMlTaskRunResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time when this task run was completed.
*/
public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The error strings that are associated with the task run.
*/
public var errorString: kotlin.String? = null
/**
* The amount of time (in seconds) that the task run consumed resources.
*/
public var executionTime: kotlin.Int = 0
/**
* The date and time when this task run was last modified.
*/
public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The names of the log groups that are associated with the task run.
*/
public var logGroupName: kotlin.String? = null
/**
* The list of properties that are associated with the task run.
*/
public var properties: aws.sdk.kotlin.services.glue.model.TaskRunProperties? = null
/**
* The date and time when this task run started.
*/
public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status for this task run.
*/
public var status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = null
/**
* The unique run identifier associated with this run.
*/
public var taskRunId: kotlin.String? = null
/**
* The unique identifier of the task run.
*/
public var transformId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetMlTaskRunResponse) : this() {
this.completedOn = x.completedOn
this.errorString = x.errorString
this.executionTime = x.executionTime
this.lastModifiedOn = x.lastModifiedOn
this.logGroupName = x.logGroupName
this.properties = x.properties
this.startedOn = x.startedOn
this.status = x.status
this.taskRunId = x.taskRunId
this.transformId = x.transformId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetMlTaskRunResponse = GetMlTaskRunResponse(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.TaskRunProperties] inside the given [block]
*/
public fun properties(block: aws.sdk.kotlin.services.glue.model.TaskRunProperties.Builder.() -> kotlin.Unit) {
this.properties = aws.sdk.kotlin.services.glue.model.TaskRunProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}