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

commonMain.aws.sdk.kotlin.services.finspace.model.GetKxDatabaseResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.finspace.model

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

public class GetKxDatabaseResponse private constructor(builder: Builder) {
    /**
     * The timestamp at which the database is 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 createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The ARN identifier of the database.
     */
    public val databaseArn: kotlin.String? = builder.databaseArn
    /**
     * The name of the kdb database for which the information is retrieved.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * A description of the database.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A unique identifier for the kdb environment.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * A unique identifier for the changeset.
     */
    public val lastCompletedChangesetId: kotlin.String? = builder.lastCompletedChangesetId
    /**
     * The last time that the database 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 lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTimestamp
    /**
     * The total number of bytes in the database.
     */
    public val numBytes: kotlin.Long = builder.numBytes
    /**
     * The total number of changesets in the database.
     */
    public val numChangesets: kotlin.Int = builder.numChangesets
    /**
     * The total number of files in the database.
     */
    public val numFiles: kotlin.Int = builder.numFiles

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

    override fun toString(): kotlin.String = buildString {
        append("GetKxDatabaseResponse(")
        append("createdTimestamp=$createdTimestamp,")
        append("databaseArn=$databaseArn,")
        append("databaseName=$databaseName,")
        append("description=$description,")
        append("environmentId=$environmentId,")
        append("lastCompletedChangesetId=$lastCompletedChangesetId,")
        append("lastModifiedTimestamp=$lastModifiedTimestamp,")
        append("numBytes=$numBytes,")
        append("numChangesets=$numChangesets,")
        append("numFiles=$numFiles")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTimestamp?.hashCode() ?: 0
        result = 31 * result + (databaseArn?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (environmentId?.hashCode() ?: 0)
        result = 31 * result + (lastCompletedChangesetId?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTimestamp?.hashCode() ?: 0)
        result = 31 * result + (numBytes.hashCode())
        result = 31 * result + (numChangesets)
        result = 31 * result + (numFiles)
        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 GetKxDatabaseResponse

        if (createdTimestamp != other.createdTimestamp) return false
        if (databaseArn != other.databaseArn) return false
        if (databaseName != other.databaseName) return false
        if (description != other.description) return false
        if (environmentId != other.environmentId) return false
        if (lastCompletedChangesetId != other.lastCompletedChangesetId) return false
        if (lastModifiedTimestamp != other.lastModifiedTimestamp) return false
        if (numBytes != other.numBytes) return false
        if (numChangesets != other.numChangesets) return false
        if (numFiles != other.numFiles) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp at which the database is 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 createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN identifier of the database.
         */
        public var databaseArn: kotlin.String? = null
        /**
         * The name of the kdb database for which the information is retrieved.
         */
        public var databaseName: kotlin.String? = null
        /**
         * A description of the database.
         */
        public var description: kotlin.String? = null
        /**
         * A unique identifier for the kdb environment.
         */
        public var environmentId: kotlin.String? = null
        /**
         * A unique identifier for the changeset.
         */
        public var lastCompletedChangesetId: kotlin.String? = null
        /**
         * The last time that the database 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 lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The total number of bytes in the database.
         */
        public var numBytes: kotlin.Long = 0L
        /**
         * The total number of changesets in the database.
         */
        public var numChangesets: kotlin.Int = 0
        /**
         * The total number of files in the database.
         */
        public var numFiles: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.GetKxDatabaseResponse) : this() {
            this.createdTimestamp = x.createdTimestamp
            this.databaseArn = x.databaseArn
            this.databaseName = x.databaseName
            this.description = x.description
            this.environmentId = x.environmentId
            this.lastCompletedChangesetId = x.lastCompletedChangesetId
            this.lastModifiedTimestamp = x.lastModifiedTimestamp
            this.numBytes = x.numBytes
            this.numChangesets = x.numChangesets
            this.numFiles = x.numFiles
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy