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

commonMain.aws.sdk.kotlin.services.finspace.model.CreateKxEnvironmentResponse.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 CreateKxEnvironmentResponse private constructor(builder: Builder) {
    /**
     * The timestamp at which the kdb environment was created in FinSpace.
     */
    public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
    /**
     * A description for the kdb environment.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ARN identifier of the environment.
     */
    public val environmentArn: kotlin.String? = builder.environmentArn
    /**
     * A unique identifier for the kdb environment.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * The KMS key ID to encrypt your data in the FinSpace environment.
     */
    public val kmsKeyId: kotlin.String? = builder.kmsKeyId
    /**
     * The name of the kdb environment.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The status of the kdb environment.
     */
    public val status: aws.sdk.kotlin.services.finspace.model.EnvironmentStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("CreateKxEnvironmentResponse(")
        append("creationTimestamp=$creationTimestamp,")
        append("description=$description,")
        append("environmentArn=$environmentArn,")
        append("environmentId=$environmentId,")
        append("kmsKeyId=$kmsKeyId,")
        append("name=$name,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTimestamp?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (environmentArn?.hashCode() ?: 0)
        result = 31 * result + (environmentId?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyId?.hashCode() ?: 0)
        result = 31 * result + (name?.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 CreateKxEnvironmentResponse

        if (creationTimestamp != other.creationTimestamp) return false
        if (description != other.description) return false
        if (environmentArn != other.environmentArn) return false
        if (environmentId != other.environmentId) return false
        if (kmsKeyId != other.kmsKeyId) return false
        if (name != other.name) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp at which the kdb environment was created in FinSpace.
         */
        public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A description for the kdb environment.
         */
        public var description: kotlin.String? = null
        /**
         * The ARN identifier of the environment.
         */
        public var environmentArn: kotlin.String? = null
        /**
         * A unique identifier for the kdb environment.
         */
        public var environmentId: kotlin.String? = null
        /**
         * The KMS key ID to encrypt your data in the FinSpace environment.
         */
        public var kmsKeyId: kotlin.String? = null
        /**
         * The name of the kdb environment.
         */
        public var name: kotlin.String? = null
        /**
         * The status of the kdb environment.
         */
        public var status: aws.sdk.kotlin.services.finspace.model.EnvironmentStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.CreateKxEnvironmentResponse) : this() {
            this.creationTimestamp = x.creationTimestamp
            this.description = x.description
            this.environmentArn = x.environmentArn
            this.environmentId = x.environmentId
            this.kmsKeyId = x.kmsKeyId
            this.name = x.name
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy