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

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.GetTrainingDatasetResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cleanroomsml.model

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

public class GetTrainingDatasetResponse private constructor(builder: Builder) {
    /**
     * The time at which the training dataset was created.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
    /**
     * The description of the training dataset.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the training dataset.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The IAM role used to read the training data.
     */
    public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
    /**
     * The status of the training dataset.
     */
    public val status: aws.sdk.kotlin.services.cleanroomsml.model.TrainingDatasetStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
    /**
     * The tags that are assigned to this training dataset.
     */
    public val tags: Map? = builder.tags
    /**
     * Metadata about the requested training data.
     */
    public val trainingData: List = requireNotNull(builder.trainingData) { "A non-null value must be provided for trainingData" }
    /**
     * The Amazon Resource Name (ARN) of the training dataset.
     */
    public val trainingDatasetArn: kotlin.String = requireNotNull(builder.trainingDatasetArn) { "A non-null value must be provided for trainingDatasetArn" }
    /**
     * The most recent time at which the training dataset was updated.
     */
    public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetTrainingDatasetResponse(")
        append("createTime=$createTime,")
        append("description=$description,")
        append("name=$name,")
        append("roleArn=$roleArn,")
        append("status=$status,")
        append("tags=$tags,")
        append("trainingData=$trainingData,")
        append("trainingDatasetArn=$trainingDatasetArn,")
        append("updateTime=$updateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createTime.hashCode()
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        result = 31 * result + (roleArn.hashCode())
        result = 31 * result + (status.hashCode())
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (trainingData.hashCode())
        result = 31 * result + (trainingDatasetArn.hashCode())
        result = 31 * result + (updateTime.hashCode())
        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 GetTrainingDatasetResponse

        if (createTime != other.createTime) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (roleArn != other.roleArn) return false
        if (status != other.status) return false
        if (tags != other.tags) return false
        if (trainingData != other.trainingData) return false
        if (trainingDatasetArn != other.trainingDatasetArn) return false
        if (updateTime != other.updateTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time at which the training dataset was created.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the training dataset.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the training dataset.
         */
        public var name: kotlin.String? = null
        /**
         * The IAM role used to read the training data.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The status of the training dataset.
         */
        public var status: aws.sdk.kotlin.services.cleanroomsml.model.TrainingDatasetStatus? = null
        /**
         * The tags that are assigned to this training dataset.
         */
        public var tags: Map? = null
        /**
         * Metadata about the requested training data.
         */
        public var trainingData: List? = null
        /**
         * The Amazon Resource Name (ARN) of the training dataset.
         */
        public var trainingDatasetArn: kotlin.String? = null
        /**
         * The most recent time at which the training dataset was updated.
         */
        public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.GetTrainingDatasetResponse) : this() {
            this.createTime = x.createTime
            this.description = x.description
            this.name = x.name
            this.roleArn = x.roleArn
            this.status = x.status
            this.tags = x.tags
            this.trainingData = x.trainingData
            this.trainingDatasetArn = x.trainingDatasetArn
            this.updateTime = x.updateTime
        }

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

        internal fun correctErrors(): Builder {
            if (createTime == null) createTime = Instant.fromEpochSeconds(0)
            if (name == null) name = ""
            if (roleArn == null) roleArn = ""
            if (status == null) status = TrainingDatasetStatus.SdkUnknown("no value provided")
            if (trainingData == null) trainingData = emptyList()
            if (trainingDatasetArn == null) trainingDatasetArn = ""
            if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy