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

commonMain.aws.sdk.kotlin.services.finspace.model.GetKxDataviewResponse.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.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class GetKxDataviewResponse private constructor(builder: Builder) {
    /**
     * The current active changeset versions of the database on the given dataview.
     */
    public val activeVersions: List? = builder.activeVersions
    /**
     * The option to specify whether you want to apply all the future additions and corrections automatically to the dataview when new changesets are ingested. The default value is false.
     */
    public val autoUpdate: kotlin.Boolean = builder.autoUpdate
    /**
     * The identifier of the availability zones.
     */
    public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
    /**
     * The number of availability zones you want to assign per volume. Currently, FinSpace only supports `SINGLE` for volumes. This places dataview in a single AZ.
     */
    public val azMode: aws.sdk.kotlin.services.finspace.model.KxAzMode? = builder.azMode
    /**
     * A unique identifier of the changeset that you want to use to ingest data.
     */
    public val changesetId: kotlin.String? = builder.changesetId
    /**
     * The timestamp at which the dataview 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 createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The name of the database where you created the dataview.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * A unique identifier for the dataview.
     */
    public val dataviewName: kotlin.String? = builder.dataviewName
    /**
     * A description of the dataview.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A unique identifier for the kdb environment, from where you want to retrieve the dataview details.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * The last time that the dataview was updated 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 lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTimestamp
    /**
     * Returns True if the dataview is created as writeable and False otherwise.
     */
    public val readWrite: kotlin.Boolean = builder.readWrite
    /**
     * The configuration that contains the database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment.
     */
    public val segmentConfigurations: List? = builder.segmentConfigurations
    /**
     * The status of dataview creation.
     * + `CREATING` – The dataview creation is in progress.
     * + `UPDATING` – The dataview is in the process of being updated.
     * + `ACTIVE` – The dataview is active.
     */
    public val status: aws.sdk.kotlin.services.finspace.model.KxDataviewStatus? = builder.status
    /**
     * The error message when a failed state occurs.
     */
    public val statusReason: kotlin.String? = builder.statusReason

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

    override fun toString(): kotlin.String = buildString {
        append("GetKxDataviewResponse(")
        append("activeVersions=$activeVersions,")
        append("autoUpdate=$autoUpdate,")
        append("availabilityZoneId=$availabilityZoneId,")
        append("azMode=$azMode,")
        append("changesetId=$changesetId,")
        append("createdTimestamp=$createdTimestamp,")
        append("databaseName=$databaseName,")
        append("dataviewName=$dataviewName,")
        append("description=$description,")
        append("environmentId=$environmentId,")
        append("lastModifiedTimestamp=$lastModifiedTimestamp,")
        append("readWrite=$readWrite,")
        append("segmentConfigurations=$segmentConfigurations,")
        append("status=$status,")
        append("statusReason=$statusReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = activeVersions?.hashCode() ?: 0
        result = 31 * result + (autoUpdate.hashCode())
        result = 31 * result + (availabilityZoneId?.hashCode() ?: 0)
        result = 31 * result + (azMode?.hashCode() ?: 0)
        result = 31 * result + (changesetId?.hashCode() ?: 0)
        result = 31 * result + (createdTimestamp?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (dataviewName?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (environmentId?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTimestamp?.hashCode() ?: 0)
        result = 31 * result + (readWrite.hashCode())
        result = 31 * result + (segmentConfigurations?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusReason?.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 GetKxDataviewResponse

        if (activeVersions != other.activeVersions) return false
        if (autoUpdate != other.autoUpdate) return false
        if (availabilityZoneId != other.availabilityZoneId) return false
        if (azMode != other.azMode) return false
        if (changesetId != other.changesetId) return false
        if (createdTimestamp != other.createdTimestamp) return false
        if (databaseName != other.databaseName) return false
        if (dataviewName != other.dataviewName) return false
        if (description != other.description) return false
        if (environmentId != other.environmentId) return false
        if (lastModifiedTimestamp != other.lastModifiedTimestamp) return false
        if (readWrite != other.readWrite) return false
        if (segmentConfigurations != other.segmentConfigurations) return false
        if (status != other.status) return false
        if (statusReason != other.statusReason) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The current active changeset versions of the database on the given dataview.
         */
        public var activeVersions: List? = null
        /**
         * The option to specify whether you want to apply all the future additions and corrections automatically to the dataview when new changesets are ingested. The default value is false.
         */
        public var autoUpdate: kotlin.Boolean = false
        /**
         * The identifier of the availability zones.
         */
        public var availabilityZoneId: kotlin.String? = null
        /**
         * The number of availability zones you want to assign per volume. Currently, FinSpace only supports `SINGLE` for volumes. This places dataview in a single AZ.
         */
        public var azMode: aws.sdk.kotlin.services.finspace.model.KxAzMode? = null
        /**
         * A unique identifier of the changeset that you want to use to ingest data.
         */
        public var changesetId: kotlin.String? = null
        /**
         * The timestamp at which the dataview 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 createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the database where you created the dataview.
         */
        public var databaseName: kotlin.String? = null
        /**
         * A unique identifier for the dataview.
         */
        public var dataviewName: kotlin.String? = null
        /**
         * A description of the dataview.
         */
        public var description: kotlin.String? = null
        /**
         * A unique identifier for the kdb environment, from where you want to retrieve the dataview details.
         */
        public var environmentId: kotlin.String? = null
        /**
         * The last time that the dataview was updated 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 lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Returns True if the dataview is created as writeable and False otherwise.
         */
        public var readWrite: kotlin.Boolean = false
        /**
         * The configuration that contains the database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment.
         */
        public var segmentConfigurations: List? = null
        /**
         * The status of dataview creation.
         * + `CREATING` – The dataview creation is in progress.
         * + `UPDATING` – The dataview is in the process of being updated.
         * + `ACTIVE` – The dataview is active.
         */
        public var status: aws.sdk.kotlin.services.finspace.model.KxDataviewStatus? = null
        /**
         * The error message when a failed state occurs.
         */
        public var statusReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.GetKxDataviewResponse) : this() {
            this.activeVersions = x.activeVersions
            this.autoUpdate = x.autoUpdate
            this.availabilityZoneId = x.availabilityZoneId
            this.azMode = x.azMode
            this.changesetId = x.changesetId
            this.createdTimestamp = x.createdTimestamp
            this.databaseName = x.databaseName
            this.dataviewName = x.dataviewName
            this.description = x.description
            this.environmentId = x.environmentId
            this.lastModifiedTimestamp = x.lastModifiedTimestamp
            this.readWrite = x.readWrite
            this.segmentConfigurations = x.segmentConfigurations
            this.status = x.status
            this.statusReason = x.statusReason
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy