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

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

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

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



class CreateNamespaceRequest private constructor(builder: Builder) {
    /**
     * The ID for the Amazon Web Services account that you want to create the Amazon QuickSight namespace in.
     */
    val awsAccountId: kotlin.String? = builder.awsAccountId
    /**
     * 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 that you want to use to describe the new namespace.
     */
    val namespace: kotlin.String? = builder.namespace
    /**
     * The tags that you want to associate with the namespace that you're creating.
     */
    val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateNamespaceRequest(")
        append("awsAccountId=$awsAccountId,")
        append("identityStore=$identityStore,")
        append("namespace=$namespace,")
        append("tags=$tags)")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsAccountId?.hashCode() ?: 0
        result = 31 * result + (identityStore?.hashCode() ?: 0)
        result = 31 * result + (namespace?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateNamespaceRequest

        if (awsAccountId != other.awsAccountId) return false
        if (identityStore != other.identityStore) return false
        if (namespace != other.namespace) return false
        if (tags != other.tags) return false

        return true
    }

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

    class Builder {
        /**
         * The ID for the Amazon Web Services account that you want to create the Amazon QuickSight namespace in.
         */
        var awsAccountId: kotlin.String? = 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 that you want to use to describe the new namespace.
         */
        var namespace: kotlin.String? = null
        /**
         * The tags that you want to associate with the namespace that you're creating.
         */
        var tags: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CreateNamespaceRequest) : this() {
            this.awsAccountId = x.awsAccountId
            this.identityStore = x.identityStore
            this.namespace = x.namespace
            this.tags = x.tags
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy