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

commonMain.aws.sdk.kotlin.services.lookoutequipment.model.DatasetSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lookoutequipment.model

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

/**
 * Contains information about the specific data set, including name, ARN, and status.
 */
public class DatasetSummary private constructor(builder: Builder) {
    /**
     * The time at which the dataset was created in Amazon Lookout for Equipment.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The Amazon Resource Name (ARN) of the specified dataset.
     */
    public val datasetArn: kotlin.String? = builder.datasetArn
    /**
     * The name of the dataset.
     */
    public val datasetName: kotlin.String? = builder.datasetName
    /**
     * Indicates the status of the dataset.
     */
    public val status: aws.sdk.kotlin.services.lookoutequipment.model.DatasetStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("DatasetSummary(")
        append("createdAt=$createdAt,")
        append("datasetArn=$datasetArn,")
        append("datasetName=$datasetName,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (datasetArn?.hashCode() ?: 0)
        result = 31 * result + (datasetName?.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 DatasetSummary

        if (createdAt != other.createdAt) return false
        if (datasetArn != other.datasetArn) return false
        if (datasetName != other.datasetName) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time at which the dataset was created in Amazon Lookout for Equipment.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the specified dataset.
         */
        public var datasetArn: kotlin.String? = null
        /**
         * The name of the dataset.
         */
        public var datasetName: kotlin.String? = null
        /**
         * Indicates the status of the dataset.
         */
        public var status: aws.sdk.kotlin.services.lookoutequipment.model.DatasetStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.DatasetSummary) : this() {
            this.createdAt = x.createdAt
            this.datasetArn = x.datasetArn
            this.datasetName = x.datasetName
            this.status = x.status
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy