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

commonMain.aws.sdk.kotlin.services.comprehend.model.FlywheelProperties.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 flywheel properties.
 */
public class FlywheelProperties private constructor(builder: Builder) {
    /**
     * The Amazon Resource Number (ARN) of the active model version.
     */
    public val activeModelArn: kotlin.String? = builder.activeModelArn
    /**
     * Creation time of the flywheel.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.
     */
    public val dataAccessRoleArn: kotlin.String? = builder.dataAccessRoleArn
    /**
     * Amazon S3 URI of the data lake location.
     */
    public val dataLakeS3Uri: kotlin.String? = builder.dataLakeS3Uri
    /**
     * Data security configuration.
     */
    public val dataSecurityConfig: aws.sdk.kotlin.services.comprehend.model.DataSecurityConfig? = builder.dataSecurityConfig
    /**
     * 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
    /**
     * Configuration about the model associated with a flywheel.
     */
    public val taskConfig: aws.sdk.kotlin.services.comprehend.model.TaskConfig? = builder.taskConfig

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

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

    override fun hashCode(): kotlin.Int {
        var result = activeModelArn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (dataAccessRoleArn?.hashCode() ?: 0)
        result = 31 * result + (dataLakeS3Uri?.hashCode() ?: 0)
        result = 31 * result + (dataSecurityConfig?.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)
        result = 31 * result + (taskConfig?.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 FlywheelProperties

        if (activeModelArn != other.activeModelArn) return false
        if (creationTime != other.creationTime) return false
        if (dataAccessRoleArn != other.dataAccessRoleArn) return false
        if (dataLakeS3Uri != other.dataLakeS3Uri) return false
        if (dataSecurityConfig != other.dataSecurityConfig) 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
        if (taskConfig != other.taskConfig) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Number (ARN) of the active model version.
         */
        public var activeModelArn: kotlin.String? = null
        /**
         * Creation time of the flywheel.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.
         */
        public var dataAccessRoleArn: kotlin.String? = null
        /**
         * Amazon S3 URI of the data lake location.
         */
        public var dataLakeS3Uri: kotlin.String? = null
        /**
         * Data security configuration.
         */
        public var dataSecurityConfig: aws.sdk.kotlin.services.comprehend.model.DataSecurityConfig? = 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
        /**
         * Configuration about the model associated with a flywheel.
         */
        public var taskConfig: aws.sdk.kotlin.services.comprehend.model.TaskConfig? = null

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy