Struct aws_sdk_kendra::operation::update_access_control_configuration::builders::UpdateAccessControlConfigurationInputBuilder
source · #[non_exhaustive]pub struct UpdateAccessControlConfigurationInputBuilder { /* private fields */ }Expand description
A builder for UpdateAccessControlConfigurationInput.
Implementations§
source§impl UpdateAccessControlConfigurationInputBuilder
impl UpdateAccessControlConfigurationInputBuilder
sourcepub fn index_id(self, input: impl Into<String>) -> Self
pub fn index_id(self, input: impl Into<String>) -> Self
The identifier of the index for an access control configuration.
This field is required.sourcepub fn set_index_id(self, input: Option<String>) -> Self
pub fn set_index_id(self, input: Option<String>) -> Self
The identifier of the index for an access control configuration.
sourcepub fn get_index_id(&self) -> &Option<String>
pub fn get_index_id(&self) -> &Option<String>
The identifier of the index for an access control configuration.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the access control configuration you want to update.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier of the access control configuration you want to update.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The identifier of the access control configuration you want to update.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A new name for the access control configuration.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A new name for the access control configuration.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A new description for the access control configuration.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A new description for the access control configuration.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A new description for the access control configuration.
sourcepub fn access_control_list(self, input: Principal) -> Self
pub fn access_control_list(self, input: Principal) -> Self
Appends an item to access_control_list.
To override the contents of this collection use set_access_control_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.
sourcepub fn set_access_control_list(self, input: Option<Vec<Principal>>) -> Self
pub fn set_access_control_list(self, input: Option<Vec<Principal>>) -> Self
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.
sourcepub fn get_access_control_list(&self) -> &Option<Vec<Principal>>
pub fn get_access_control_list(&self) -> &Option<Vec<Principal>>
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.
sourcepub fn hierarchical_access_control_list(
self,
input: HierarchicalPrincipal,
) -> Self
pub fn hierarchical_access_control_list( self, input: HierarchicalPrincipal, ) -> Self
Appends an item to hierarchical_access_control_list.
To override the contents of this collection use set_hierarchical_access_control_list.
The updated list of principal lists that define the hierarchy for which documents users should have access to.
sourcepub fn set_hierarchical_access_control_list(
self,
input: Option<Vec<HierarchicalPrincipal>>,
) -> Self
pub fn set_hierarchical_access_control_list( self, input: Option<Vec<HierarchicalPrincipal>>, ) -> Self
The updated list of principal lists that define the hierarchy for which documents users should have access to.
sourcepub fn get_hierarchical_access_control_list(
&self,
) -> &Option<Vec<HierarchicalPrincipal>>
pub fn get_hierarchical_access_control_list( &self, ) -> &Option<Vec<HierarchicalPrincipal>>
The updated list of principal lists that define the hierarchy for which documents users should have access to.
sourcepub fn build(self) -> Result<UpdateAccessControlConfigurationInput, BuildError>
pub fn build(self) -> Result<UpdateAccessControlConfigurationInput, BuildError>
Consumes the builder and constructs a UpdateAccessControlConfigurationInput.
source§impl UpdateAccessControlConfigurationInputBuilder
impl UpdateAccessControlConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateAccessControlConfigurationOutput, SdkError<UpdateAccessControlConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateAccessControlConfigurationOutput, SdkError<UpdateAccessControlConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateAccessControlConfigurationInputBuilder
impl Clone for UpdateAccessControlConfigurationInputBuilder
source§fn clone(&self) -> UpdateAccessControlConfigurationInputBuilder
fn clone(&self) -> UpdateAccessControlConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateAccessControlConfigurationInputBuilder
impl Default for UpdateAccessControlConfigurationInputBuilder
source§fn default() -> UpdateAccessControlConfigurationInputBuilder
fn default() -> UpdateAccessControlConfigurationInputBuilder
source§impl PartialEq for UpdateAccessControlConfigurationInputBuilder
impl PartialEq for UpdateAccessControlConfigurationInputBuilder
source§fn eq(&self, other: &UpdateAccessControlConfigurationInputBuilder) -> bool
fn eq(&self, other: &UpdateAccessControlConfigurationInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateAccessControlConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateAccessControlConfigurationInputBuilder
impl RefUnwindSafe for UpdateAccessControlConfigurationInputBuilder
impl Send for UpdateAccessControlConfigurationInputBuilder
impl Sync for UpdateAccessControlConfigurationInputBuilder
impl Unpin for UpdateAccessControlConfigurationInputBuilder
impl UnwindSafe for UpdateAccessControlConfigurationInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more