/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateAccessControlConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the index for an access control configuration. *
*/ private String indexId; /** ** The identifier of the access control configuration you want to update. *
*/ private String id; /** ** A new name for the access control configuration. *
*/ private String name; /** ** A new description for the access control configuration. *
*/ private String description; /** ** 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. *
*/ private java.util.List* The updated list of principal lists * that define the hierarchy for which documents users should have access to. *
*/ private java.util.List* The identifier of the index for an access control configuration. *
* * @param indexId * The identifier of the index for an access control configuration. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** ** The identifier of the index for an access control configuration. *
* * @return The identifier of the index for an access control configuration. */ public String getIndexId() { return this.indexId; } /** ** The identifier of the index for an access control configuration. *
* * @param indexId * The identifier of the index for an access control configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** ** The identifier of the access control configuration you want to update. *
* * @param id * The identifier of the access control configuration you want to update. */ public void setId(String id) { this.id = id; } /** ** The identifier of the access control configuration you want to update. *
* * @return The identifier of the access control configuration you want to update. */ public String getId() { return this.id; } /** ** The identifier of the access control configuration you want to update. *
* * @param id * The identifier of the access control configuration you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withId(String id) { setId(id); return this; } /** ** A new name for the access control configuration. *
* * @param name * A new name for the access control configuration. */ public void setName(String name) { this.name = name; } /** ** A new name for the access control configuration. *
* * @return A new name for the access control configuration. */ public String getName() { return this.name; } /** ** A new name for the access control configuration. *
* * @param name * A new name for the access control configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withName(String name) { setName(name); return this; } /** ** A new description for the access control configuration. *
* * @param description * A new description for the access control configuration. */ public void setDescription(String description) { this.description = description; } /** ** A new description for the access control configuration. *
* * @return A new description for the access control configuration. */ public String getDescription() { return this.description; } /** ** A new description for the access control configuration. *
* * @param description * A new description for the access control configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withDescription(String description) { setDescription(description); return this; } /** ** 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. *
* * @return 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 java.util.List* 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. *
* * @param accessControlList * 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 void setAccessControlList(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAccessControlList(java.util.Collection)} or {@link #withAccessControlList(java.util.Collection)} if * you want to override the existing values. *
* * @param accessControlList * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withAccessControlList(Principal... accessControlList) { if (this.accessControlList == null) { setAccessControlList(new java.util.ArrayList* 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. *
* * @param accessControlList * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withAccessControlList(java.util.Collection* The updated list of principal lists * that define the hierarchy for which documents users should have access to. *
* * @return The updated list of principal lists that define * the hierarchy for which documents users should have access to. */ public java.util.List* The updated list of principal lists * that define the hierarchy for which documents users should have access to. *
* * @param hierarchicalAccessControlList * The updated list of principal lists that define the * hierarchy for which documents users should have access to. */ public void setHierarchicalAccessControlList(java.util.Collection* The updated list of principal lists * that define the hierarchy for which documents users should have access to. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setHierarchicalAccessControlList(java.util.Collection)} or * {@link #withHierarchicalAccessControlList(java.util.Collection)} if you want to override the existing values. *
* * @param hierarchicalAccessControlList * The updated list of principal lists that define the * hierarchy for which documents users should have access to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withHierarchicalAccessControlList(HierarchicalPrincipal... hierarchicalAccessControlList) { if (this.hierarchicalAccessControlList == null) { setHierarchicalAccessControlList(new java.util.ArrayList* The updated list of principal lists * that define the hierarchy for which documents users should have access to. *
* * @param hierarchicalAccessControlList * The updated list of principal lists that define the * hierarchy for which documents users should have access to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAccessControlConfigurationRequest withHierarchicalAccessControlList(java.util.Collection