All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.TaskRun.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

/**
 * The sampling parameters that are associated with the machine learning transform.
 */
public class TaskRun private constructor(builder: Builder) {
    /**
     * The last point in time that the requested task run was completed.
     */
    public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
    /**
     * The list of error strings associated with this 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 last point in time that the requested task run was updated.
     */
    public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
    /**
     * The names of the log group for secure logging, associated with this task run.
     */
    public val logGroupName: kotlin.String? = builder.logGroupName
    /**
     * Specifies configuration properties associated with this task run.
     */
    public val properties: aws.sdk.kotlin.services.glue.model.TaskRunProperties? = builder.properties
    /**
     * The date and time that this task run started.
     */
    public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
    /**
     * The current status of the requested task run.
     */
    public val status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = builder.status
    /**
     * The unique identifier for this task run.
     */
    public val taskRunId: kotlin.String? = builder.taskRunId
    /**
     * The unique identifier for the 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.TaskRun = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TaskRun(")
        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 TaskRun

        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.TaskRun = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The last point in time that the requested task run was completed.
         */
        public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The list of error strings associated with this 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 last point in time that the requested task run was updated.
         */
        public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The names of the log group for secure logging, associated with this task run.
         */
        public var logGroupName: kotlin.String? = null
        /**
         * Specifies configuration properties associated with this task run.
         */
        public var properties: aws.sdk.kotlin.services.glue.model.TaskRunProperties? = null
        /**
         * The date and time that this task run started.
         */
        public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The current status of the requested task run.
         */
        public var status: aws.sdk.kotlin.services.glue.model.TaskStatusType? = null
        /**
         * The unique identifier for this task run.
         */
        public var taskRunId: kotlin.String? = null
        /**
         * The unique identifier for the transform.
         */
        public var transformId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.TaskRun) : 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.TaskRun = TaskRun(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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy