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

commonMain.aws.sdk.kotlin.services.quicksight.model.NamespaceInfoV2.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.quicksight.model



/**
 * The error type.
 */
class NamespaceInfoV2 private constructor(builder: Builder) {
    /**
     * The namespace ARN.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The namespace Amazon Web Services Region.
     */
    val capacityRegion: kotlin.String? = builder.capacityRegion
    /**
     * The creation status of a namespace that is not yet completely created.
     */
    val creationStatus: aws.sdk.kotlin.services.quicksight.model.NamespaceStatus? = builder.creationStatus
    /**
     * The identity store used for the namespace.
     */
    val identityStore: aws.sdk.kotlin.services.quicksight.model.IdentityStore? = builder.identityStore
    /**
     * The name of the error.
     */
    val name: kotlin.String? = builder.name
    /**
     * An error that occurred when the namespace was created.
     */
    val namespaceError: aws.sdk.kotlin.services.quicksight.model.NamespaceError? = builder.namespaceError

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

    override fun toString(): kotlin.String = buildString {
        append("NamespaceInfoV2(")
        append("arn=$arn,")
        append("capacityRegion=$capacityRegion,")
        append("creationStatus=$creationStatus,")
        append("identityStore=$identityStore,")
        append("name=$name,")
        append("namespaceError=$namespaceError)")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (capacityRegion?.hashCode() ?: 0)
        result = 31 * result + (creationStatus?.hashCode() ?: 0)
        result = 31 * result + (identityStore?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (namespaceError?.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 NamespaceInfoV2

        if (arn != other.arn) return false
        if (capacityRegion != other.capacityRegion) return false
        if (creationStatus != other.creationStatus) return false
        if (identityStore != other.identityStore) return false
        if (name != other.name) return false
        if (namespaceError != other.namespaceError) return false

        return true
    }

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

    class Builder {
        /**
         * The namespace ARN.
         */
        var arn: kotlin.String? = null
        /**
         * The namespace Amazon Web Services Region.
         */
        var capacityRegion: kotlin.String? = null
        /**
         * The creation status of a namespace that is not yet completely created.
         */
        var creationStatus: aws.sdk.kotlin.services.quicksight.model.NamespaceStatus? = null
        /**
         * The identity store used for the namespace.
         */
        var identityStore: aws.sdk.kotlin.services.quicksight.model.IdentityStore? = null
        /**
         * The name of the error.
         */
        var name: kotlin.String? = null
        /**
         * An error that occurred when the namespace was created.
         */
        var namespaceError: aws.sdk.kotlin.services.quicksight.model.NamespaceError? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.NamespaceInfoV2) : this() {
            this.arn = x.arn
            this.capacityRegion = x.capacityRegion
            this.creationStatus = x.creationStatus
            this.identityStore = x.identityStore
            this.name = x.name
            this.namespaceError = x.namespaceError
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy