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

commonMain.aws.sdk.kotlin.services.glue.model.UpdateMlTransformRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateMlTransformRequest private constructor(builder: Builder) {
    /**
     * A description of the transform. The default is an empty string.
     */
    public val description: kotlin.String? = builder.description
    /**
     * This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see [Glue Versions](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions) in the developer guide.
     */
    public val glueVersion: kotlin.String? = builder.glueVersion
    /**
     * The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the [Glue pricing page](https://aws.amazon.com/glue/pricing/).
     *
     * When the `WorkerType` field is set to a value other than `Standard`, the `MaxCapacity` field is set automatically and becomes read-only.
     */
    public val maxCapacity: kotlin.Double? = builder.maxCapacity
    /**
     * The maximum number of times to retry a task for this transform after a task run fails.
     */
    public val maxRetries: kotlin.Int? = builder.maxRetries
    /**
     * The unique name that you gave the transform when you created it.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The number of workers of a defined `workerType` that are allocated when this task runs.
     */
    public val numberOfWorkers: kotlin.Int? = builder.numberOfWorkers
    /**
     * The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on the transform type.
     */
    public val parameters: aws.sdk.kotlin.services.glue.model.TransformParameters? = builder.parameters
    /**
     * The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.
     */
    public val role: kotlin.String? = builder.role
    /**
     * The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
     */
    public val timeout: kotlin.Int? = builder.timeout
    /**
     * A unique identifier that was generated when the transform was created.
     */
    public val transformId: kotlin.String? = builder.transformId
    /**
     * The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.
     * + For the `Standard` worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
     * + For the `G.1X` worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.
     * + For the `G.2X` worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
     */
    public val workerType: aws.sdk.kotlin.services.glue.model.WorkerType? = builder.workerType

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UpdateMlTransformRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateMlTransformRequest(")
        append("description=$description,")
        append("glueVersion=$glueVersion,")
        append("maxCapacity=$maxCapacity,")
        append("maxRetries=$maxRetries,")
        append("name=$name,")
        append("numberOfWorkers=$numberOfWorkers,")
        append("parameters=$parameters,")
        append("role=$role,")
        append("timeout=$timeout,")
        append("transformId=$transformId,")
        append("workerType=$workerType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (glueVersion?.hashCode() ?: 0)
        result = 31 * result + (maxCapacity?.hashCode() ?: 0)
        result = 31 * result + (maxRetries ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (numberOfWorkers ?: 0)
        result = 31 * result + (parameters?.hashCode() ?: 0)
        result = 31 * result + (role?.hashCode() ?: 0)
        result = 31 * result + (timeout ?: 0)
        result = 31 * result + (transformId?.hashCode() ?: 0)
        result = 31 * result + (workerType?.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 UpdateMlTransformRequest

        if (description != other.description) return false
        if (glueVersion != other.glueVersion) return false
        if (!(maxCapacity?.equals(other.maxCapacity) ?: (other.maxCapacity == null))) return false
        if (maxRetries != other.maxRetries) return false
        if (name != other.name) return false
        if (numberOfWorkers != other.numberOfWorkers) return false
        if (parameters != other.parameters) return false
        if (role != other.role) return false
        if (timeout != other.timeout) return false
        if (transformId != other.transformId) return false
        if (workerType != other.workerType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UpdateMlTransformRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A description of the transform. The default is an empty string.
         */
        public var description: kotlin.String? = null
        /**
         * This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see [Glue Versions](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions) in the developer guide.
         */
        public var glueVersion: kotlin.String? = null
        /**
         * The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the [Glue pricing page](https://aws.amazon.com/glue/pricing/).
         *
         * When the `WorkerType` field is set to a value other than `Standard`, the `MaxCapacity` field is set automatically and becomes read-only.
         */
        public var maxCapacity: kotlin.Double? = null
        /**
         * The maximum number of times to retry a task for this transform after a task run fails.
         */
        public var maxRetries: kotlin.Int? = null
        /**
         * The unique name that you gave the transform when you created it.
         */
        public var name: kotlin.String? = null
        /**
         * The number of workers of a defined `workerType` that are allocated when this task runs.
         */
        public var numberOfWorkers: kotlin.Int? = null
        /**
         * The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on the transform type.
         */
        public var parameters: aws.sdk.kotlin.services.glue.model.TransformParameters? = null
        /**
         * The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.
         */
        public var role: kotlin.String? = null
        /**
         * The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters `TIMEOUT` status. The default is 2,880 minutes (48 hours).
         */
        public var timeout: kotlin.Int? = null
        /**
         * A unique identifier that was generated when the transform was created.
         */
        public var transformId: kotlin.String? = null
        /**
         * The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.
         * + For the `Standard` worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
         * + For the `G.1X` worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.
         * + For the `G.2X` worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
         */
        public var workerType: aws.sdk.kotlin.services.glue.model.WorkerType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.UpdateMlTransformRequest) : this() {
            this.description = x.description
            this.glueVersion = x.glueVersion
            this.maxCapacity = x.maxCapacity
            this.maxRetries = x.maxRetries
            this.name = x.name
            this.numberOfWorkers = x.numberOfWorkers
            this.parameters = x.parameters
            this.role = x.role
            this.timeout = x.timeout
            this.transformId = x.transformId
            this.workerType = x.workerType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.UpdateMlTransformRequest = UpdateMlTransformRequest(this)

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.TransformParameters] inside the given [block]
         */
        public fun parameters(block: aws.sdk.kotlin.services.glue.model.TransformParameters.Builder.() -> kotlin.Unit) {
            this.parameters = aws.sdk.kotlin.services.glue.model.TransformParameters.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy