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

commonMain.aws.sdk.kotlin.services.kendra.model.UpdateAccessControlConfigurationRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kendra.model



public class UpdateAccessControlConfigurationRequest private constructor(builder: Builder) {
    /**
     * Information you want to update on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
     */
    public val accessControlList: List? = builder.accessControlList
    /**
     * A new description for the access control configuration.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The updated list of [principal](https://docs.aws.amazon.com/kendra/latest/dg/API_Principal.html) lists that define the hierarchy for which documents users should have access to.
     */
    public val hierarchicalAccessControlList: List? = builder.hierarchicalAccessControlList
    /**
     * The identifier of the access control configuration you want to update.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The identifier of the index for an access control configuration.
     */
    public val indexId: kotlin.String? = builder.indexId
    /**
     * A new name for the access control configuration.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAccessControlConfigurationRequest(")
        append("accessControlList=$accessControlList,")
        append("description=$description,")
        append("hierarchicalAccessControlList=$hierarchicalAccessControlList,")
        append("id=$id,")
        append("indexId=$indexId,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessControlList?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (hierarchicalAccessControlList?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (indexId?.hashCode() ?: 0)
        result = 31 * result + (name?.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 UpdateAccessControlConfigurationRequest

        if (accessControlList != other.accessControlList) return false
        if (description != other.description) return false
        if (hierarchicalAccessControlList != other.hierarchicalAccessControlList) return false
        if (id != other.id) return false
        if (indexId != other.indexId) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * Information you want to update on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
         */
        public var accessControlList: List? = null
        /**
         * A new description for the access control configuration.
         */
        public var description: kotlin.String? = null
        /**
         * The updated list of [principal](https://docs.aws.amazon.com/kendra/latest/dg/API_Principal.html) lists that define the hierarchy for which documents users should have access to.
         */
        public var hierarchicalAccessControlList: List? = null
        /**
         * The identifier of the access control configuration you want to update.
         */
        public var id: kotlin.String? = null
        /**
         * The identifier of the index for an access control configuration.
         */
        public var indexId: kotlin.String? = null
        /**
         * A new name for the access control configuration.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kendra.model.UpdateAccessControlConfigurationRequest) : this() {
            this.accessControlList = x.accessControlList
            this.description = x.description
            this.hierarchicalAccessControlList = x.hierarchicalAccessControlList
            this.id = x.id
            this.indexId = x.indexId
            this.name = x.name
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy