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

commonMain.aws.sdk.kotlin.services.comprehend.model.FlywheelIterationProperties.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.comprehend.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The configuration properties of a flywheel iteration.
 */
public class FlywheelIterationProperties private constructor(builder: Builder) {
    /**
     * The creation start time of the flywheel iteration.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The completion time of this flywheel iteration.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The ARN of the evaluated model associated with this flywheel iteration.
     */
    public val evaluatedModelArn: kotlin.String? = builder.evaluatedModelArn
    /**
     * The evaluation metrics associated with the evaluated model.
     */
    public val evaluatedModelMetrics: aws.sdk.kotlin.services.comprehend.model.FlywheelModelEvaluationMetrics? = builder.evaluatedModelMetrics
    /**
     *
     */
    public val evaluationManifestS3Prefix: kotlin.String? = builder.evaluationManifestS3Prefix
    /**
     *
     */
    public val flywheelArn: kotlin.String? = builder.flywheelArn
    /**
     *
     */
    public val flywheelIterationId: kotlin.String? = builder.flywheelIterationId
    /**
     * A description of the status of the flywheel iteration.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The status of the flywheel iteration.
     */
    public val status: aws.sdk.kotlin.services.comprehend.model.FlywheelIterationStatus? = builder.status
    /**
     * The ARN of the trained model associated with this flywheel iteration.
     */
    public val trainedModelArn: kotlin.String? = builder.trainedModelArn
    /**
     * The metrics associated with the trained model.
     */
    public val trainedModelMetrics: aws.sdk.kotlin.services.comprehend.model.FlywheelModelEvaluationMetrics? = builder.trainedModelMetrics

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

    override fun toString(): kotlin.String = buildString {
        append("FlywheelIterationProperties(")
        append("creationTime=$creationTime,")
        append("endTime=$endTime,")
        append("evaluatedModelArn=$evaluatedModelArn,")
        append("evaluatedModelMetrics=$evaluatedModelMetrics,")
        append("evaluationManifestS3Prefix=$evaluationManifestS3Prefix,")
        append("flywheelArn=$flywheelArn,")
        append("flywheelIterationId=$flywheelIterationId,")
        append("message=$message,")
        append("status=$status,")
        append("trainedModelArn=$trainedModelArn,")
        append("trainedModelMetrics=$trainedModelMetrics")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (evaluatedModelArn?.hashCode() ?: 0)
        result = 31 * result + (evaluatedModelMetrics?.hashCode() ?: 0)
        result = 31 * result + (evaluationManifestS3Prefix?.hashCode() ?: 0)
        result = 31 * result + (flywheelArn?.hashCode() ?: 0)
        result = 31 * result + (flywheelIterationId?.hashCode() ?: 0)
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (trainedModelArn?.hashCode() ?: 0)
        result = 31 * result + (trainedModelMetrics?.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 FlywheelIterationProperties

        if (creationTime != other.creationTime) return false
        if (endTime != other.endTime) return false
        if (evaluatedModelArn != other.evaluatedModelArn) return false
        if (evaluatedModelMetrics != other.evaluatedModelMetrics) return false
        if (evaluationManifestS3Prefix != other.evaluationManifestS3Prefix) return false
        if (flywheelArn != other.flywheelArn) return false
        if (flywheelIterationId != other.flywheelIterationId) return false
        if (message != other.message) return false
        if (status != other.status) return false
        if (trainedModelArn != other.trainedModelArn) return false
        if (trainedModelMetrics != other.trainedModelMetrics) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The creation start time of the flywheel iteration.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The completion time of this flywheel iteration.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN of the evaluated model associated with this flywheel iteration.
         */
        public var evaluatedModelArn: kotlin.String? = null
        /**
         * The evaluation metrics associated with the evaluated model.
         */
        public var evaluatedModelMetrics: aws.sdk.kotlin.services.comprehend.model.FlywheelModelEvaluationMetrics? = null
        /**
         *
         */
        public var evaluationManifestS3Prefix: kotlin.String? = null
        /**
         *
         */
        public var flywheelArn: kotlin.String? = null
        /**
         *
         */
        public var flywheelIterationId: kotlin.String? = null
        /**
         * A description of the status of the flywheel iteration.
         */
        public var message: kotlin.String? = null
        /**
         * The status of the flywheel iteration.
         */
        public var status: aws.sdk.kotlin.services.comprehend.model.FlywheelIterationStatus? = null
        /**
         * The ARN of the trained model associated with this flywheel iteration.
         */
        public var trainedModelArn: kotlin.String? = null
        /**
         * The metrics associated with the trained model.
         */
        public var trainedModelMetrics: aws.sdk.kotlin.services.comprehend.model.FlywheelModelEvaluationMetrics? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.FlywheelIterationProperties) : this() {
            this.creationTime = x.creationTime
            this.endTime = x.endTime
            this.evaluatedModelArn = x.evaluatedModelArn
            this.evaluatedModelMetrics = x.evaluatedModelMetrics
            this.evaluationManifestS3Prefix = x.evaluationManifestS3Prefix
            this.flywheelArn = x.flywheelArn
            this.flywheelIterationId = x.flywheelIterationId
            this.message = x.message
            this.status = x.status
            this.trainedModelArn = x.trainedModelArn
            this.trainedModelMetrics = x.trainedModelMetrics
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy