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

commonMain.aws.sdk.kotlin.services.finspacedata.model.Dataset.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.finspacedata.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The structure for a Dataset.
 */
public class Dataset private constructor(builder: Builder) {
    /**
     * The unique resource identifier for a Dataset.
     */
    public val alias: kotlin.String? = builder.alias
    /**
     * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
     */
    public val createTime: kotlin.Long = builder.createTime
    /**
     * The ARN identifier of the Dataset.
     */
    public val datasetArn: kotlin.String? = builder.datasetArn
    /**
     * Description for a Dataset.
     */
    public val datasetDescription: kotlin.String? = builder.datasetDescription
    /**
     * An identifier for a Dataset.
     */
    public val datasetId: kotlin.String? = builder.datasetId
    /**
     * Display title for a Dataset.
     */
    public val datasetTitle: kotlin.String? = builder.datasetTitle
    /**
     * The format in which Dataset data is structured.
     * + `TABULAR` – Data is structured in a tabular format.
     * + `NON_TABULAR` – Data is structured in a non-tabular format.
     */
    public val kind: aws.sdk.kotlin.services.finspacedata.model.DatasetKind? = builder.kind
    /**
     * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
     */
    public val lastModifiedTime: kotlin.Long = builder.lastModifiedTime
    /**
     * Contact information for a Dataset owner.
     */
    public val ownerInfo: aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo? = builder.ownerInfo
    /**
     * Definition for a schema on a tabular Dataset.
     */
    public val schemaDefinition: aws.sdk.kotlin.services.finspacedata.model.SchemaUnion? = builder.schemaDefinition

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

    override fun toString(): kotlin.String = buildString {
        append("Dataset(")
        append("alias=$alias,")
        append("createTime=$createTime,")
        append("datasetArn=$datasetArn,")
        append("datasetDescription=$datasetDescription,")
        append("datasetId=$datasetId,")
        append("datasetTitle=$datasetTitle,")
        append("kind=$kind,")
        append("lastModifiedTime=$lastModifiedTime,")
        append("ownerInfo=$ownerInfo,")
        append("schemaDefinition=$schemaDefinition")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = alias?.hashCode() ?: 0
        result = 31 * result + (createTime.hashCode())
        result = 31 * result + (datasetArn?.hashCode() ?: 0)
        result = 31 * result + (datasetDescription?.hashCode() ?: 0)
        result = 31 * result + (datasetId?.hashCode() ?: 0)
        result = 31 * result + (datasetTitle?.hashCode() ?: 0)
        result = 31 * result + (kind?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTime.hashCode())
        result = 31 * result + (ownerInfo?.hashCode() ?: 0)
        result = 31 * result + (schemaDefinition?.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 Dataset

        if (alias != other.alias) return false
        if (createTime != other.createTime) return false
        if (datasetArn != other.datasetArn) return false
        if (datasetDescription != other.datasetDescription) return false
        if (datasetId != other.datasetId) return false
        if (datasetTitle != other.datasetTitle) return false
        if (kind != other.kind) return false
        if (lastModifiedTime != other.lastModifiedTime) return false
        if (ownerInfo != other.ownerInfo) return false
        if (schemaDefinition != other.schemaDefinition) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique resource identifier for a Dataset.
         */
        public var alias: kotlin.String? = null
        /**
         * The timestamp at which the Dataset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
         */
        public var createTime: kotlin.Long = 0L
        /**
         * The ARN identifier of the Dataset.
         */
        public var datasetArn: kotlin.String? = null
        /**
         * Description for a Dataset.
         */
        public var datasetDescription: kotlin.String? = null
        /**
         * An identifier for a Dataset.
         */
        public var datasetId: kotlin.String? = null
        /**
         * Display title for a Dataset.
         */
        public var datasetTitle: kotlin.String? = null
        /**
         * The format in which Dataset data is structured.
         * + `TABULAR` – Data is structured in a tabular format.
         * + `NON_TABULAR` – Data is structured in a non-tabular format.
         */
        public var kind: aws.sdk.kotlin.services.finspacedata.model.DatasetKind? = null
        /**
         * The last time that the Dataset was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
         */
        public var lastModifiedTime: kotlin.Long = 0L
        /**
         * Contact information for a Dataset owner.
         */
        public var ownerInfo: aws.sdk.kotlin.services.finspacedata.model.DatasetOwnerInfo? = null
        /**
         * Definition for a schema on a tabular Dataset.
         */
        public var schemaDefinition: aws.sdk.kotlin.services.finspacedata.model.SchemaUnion? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.Dataset) : this() {
            this.alias = x.alias
            this.createTime = x.createTime
            this.datasetArn = x.datasetArn
            this.datasetDescription = x.datasetDescription
            this.datasetId = x.datasetId
            this.datasetTitle = x.datasetTitle
            this.kind = x.kind
            this.lastModifiedTime = x.lastModifiedTime
            this.ownerInfo = x.ownerInfo
            this.schemaDefinition = x.schemaDefinition
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy