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

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

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

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



class CreateNamespaceResponse private constructor(builder: Builder) {
    /**
     * The ARN of the Amazon QuickSight namespace you created.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is set to the region that you run CreateNamespace in.
     */
    val capacityRegion: kotlin.String? = builder.capacityRegion
    /**
     * The status of the creation of the namespace. This is an asynchronous process. A status of `CREATED` means that your namespace is ready to use. If an error occurs, it indicates if the process is `retryable` or `non-retryable`. In the case of a non-retryable error, refer to the error message for follow-up tasks.
     */
    val creationStatus: aws.sdk.kotlin.services.quicksight.model.NamespaceStatus? = builder.creationStatus
    /**
     * Specifies the type of your user identity directory. Currently, this supports users with an identity type of `QUICKSIGHT`.
     */
    val identityStore: aws.sdk.kotlin.services.quicksight.model.IdentityStore? = builder.identityStore
    /**
     * The name of the new namespace that you created.
     */
    val name: kotlin.String? = builder.name
    /**
     * The Amazon Web Services request ID for this operation.
     */
    val requestId: kotlin.String? = builder.requestId
    /**
     * The HTTP status of the request.
     */
    val status: kotlin.Int = builder.status

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

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

    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 + (requestId?.hashCode() ?: 0)
        result = 31 * result + (status)
        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 CreateNamespaceResponse

        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 (requestId != other.requestId) return false
        if (status != other.status) return false

        return true
    }

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

    class Builder {
        /**
         * The ARN of the Amazon QuickSight namespace you created.
         */
        var arn: kotlin.String? = null
        /**
         * The Amazon Web Services Region; that you want to use for the free SPICE capacity for the new namespace. This is set to the region that you run CreateNamespace in.
         */
        var capacityRegion: kotlin.String? = null
        /**
         * The status of the creation of the namespace. This is an asynchronous process. A status of `CREATED` means that your namespace is ready to use. If an error occurs, it indicates if the process is `retryable` or `non-retryable`. In the case of a non-retryable error, refer to the error message for follow-up tasks.
         */
        var creationStatus: aws.sdk.kotlin.services.quicksight.model.NamespaceStatus? = null
        /**
         * Specifies the type of your user identity directory. Currently, this supports users with an identity type of `QUICKSIGHT`.
         */
        var identityStore: aws.sdk.kotlin.services.quicksight.model.IdentityStore? = null
        /**
         * The name of the new namespace that you created.
         */
        var name: kotlin.String? = null
        /**
         * The Amazon Web Services request ID for this operation.
         */
        var requestId: kotlin.String? = null
        /**
         * The HTTP status of the request.
         */
        var status: kotlin.Int = 0

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy