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

commonMain.aws.sdk.kotlin.services.comprehend.model.FlywheelSummary.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

/**
 * Flywheel summary information.
 */
public class FlywheelSummary private constructor(builder: Builder) {
    /**
     * ARN of the active model version for the flywheel.
     */
    public val activeModelArn: kotlin.String? = builder.activeModelArn
    /**
     * Creation time of the flywheel.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * Amazon S3 URI of the data lake location.
     */
    public val dataLakeS3Uri: kotlin.String? = builder.dataLakeS3Uri
    /**
     * The Amazon Resource Number (ARN) of the flywheel
     */
    public val flywheelArn: kotlin.String? = builder.flywheelArn
    /**
     * Last modified time for the flywheel.
     */
    public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
    /**
     * The most recent flywheel iteration.
     */
    public val latestFlywheelIteration: kotlin.String? = builder.latestFlywheelIteration
    /**
     * A description of the status of the flywheel.
     */
    public val message: kotlin.String? = builder.message
    /**
     * Model type of the flywheel's model.
     */
    public val modelType: aws.sdk.kotlin.services.comprehend.model.ModelType? = builder.modelType
    /**
     * The status of the flywheel.
     */
    public val status: aws.sdk.kotlin.services.comprehend.model.FlywheelStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("FlywheelSummary(")
        append("activeModelArn=$activeModelArn,")
        append("creationTime=$creationTime,")
        append("dataLakeS3Uri=$dataLakeS3Uri,")
        append("flywheelArn=$flywheelArn,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("latestFlywheelIteration=$latestFlywheelIteration,")
        append("message=$message,")
        append("modelType=$modelType,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activeModelArn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (dataLakeS3Uri?.hashCode() ?: 0)
        result = 31 * result + (flywheelArn?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
        result = 31 * result + (latestFlywheelIteration?.hashCode() ?: 0)
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (modelType?.hashCode() ?: 0)
        result = 31 * result + (status?.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 FlywheelSummary

        if (activeModelArn != other.activeModelArn) return false
        if (creationTime != other.creationTime) return false
        if (dataLakeS3Uri != other.dataLakeS3Uri) return false
        if (flywheelArn != other.flywheelArn) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (latestFlywheelIteration != other.latestFlywheelIteration) return false
        if (message != other.message) return false
        if (modelType != other.modelType) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * ARN of the active model version for the flywheel.
         */
        public var activeModelArn: kotlin.String? = null
        /**
         * Creation time of the flywheel.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Amazon S3 URI of the data lake location.
         */
        public var dataLakeS3Uri: kotlin.String? = null
        /**
         * The Amazon Resource Number (ARN) of the flywheel
         */
        public var flywheelArn: kotlin.String? = null
        /**
         * Last modified time for the flywheel.
         */
        public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The most recent flywheel iteration.
         */
        public var latestFlywheelIteration: kotlin.String? = null
        /**
         * A description of the status of the flywheel.
         */
        public var message: kotlin.String? = null
        /**
         * Model type of the flywheel's model.
         */
        public var modelType: aws.sdk.kotlin.services.comprehend.model.ModelType? = null
        /**
         * The status of the flywheel.
         */
        public var status: aws.sdk.kotlin.services.comprehend.model.FlywheelStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.FlywheelSummary) : this() {
            this.activeModelArn = x.activeModelArn
            this.creationTime = x.creationTime
            this.dataLakeS3Uri = x.dataLakeS3Uri
            this.flywheelArn = x.flywheelArn
            this.lastModifiedTime = x.lastModifiedTime
            this.latestFlywheelIteration = x.latestFlywheelIteration
            this.message = x.message
            this.modelType = x.modelType
            this.status = x.status
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy