Interface UserContext.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UserContext.Builder,
,UserContext> SdkBuilder<UserContext.Builder,
,UserContext> SdkPojo
- Enclosing class:
UserContext
-
Method Summary
Modifier and TypeMethodDescriptiondataSourceGroups
(Collection<DataSourceGroup> dataSourceGroups) The list of data source groups you want to filter search results based on groups' access to documents in that data source.dataSourceGroups
(Consumer<DataSourceGroup.Builder>... dataSourceGroups) The list of data source groups you want to filter search results based on groups' access to documents in that data source.dataSourceGroups
(DataSourceGroup... dataSourceGroups) The list of data source groups you want to filter search results based on groups' access to documents in that data source.The list of groups you want to filter search results based on the groups' access to documents.groups
(Collection<String> groups) The list of groups you want to filter search results based on the groups' access to documents.The user context token for filtering search results for a user.The identifier of the user you want to filter search results based on their access to documents.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
token
The user context token for filtering search results for a user. It must be a JWT or a JSON token.
- Parameters:
token
- The user context token for filtering search results for a user. It must be a JWT or a JSON token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The identifier of the user you want to filter search results based on their access to documents.
- Parameters:
userId
- The identifier of the user you want to filter search results based on their access to documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The list of groups you want to filter search results based on the groups' access to documents.
- Parameters:
groups
- The list of groups you want to filter search results based on the groups' access to documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The list of groups you want to filter search results based on the groups' access to documents.
- Parameters:
groups
- The list of groups you want to filter search results based on the groups' access to documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceGroups
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
- Parameters:
dataSourceGroups
- The list of data source groups you want to filter search results based on groups' access to documents in that data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceGroups
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
- Parameters:
dataSourceGroups
- The list of data source groups you want to filter search results based on groups' access to documents in that data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceGroups
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
This is a convenience method that creates an instance of theDataSourceGroup.Builder
avoiding the need to create one manually viaDataSourceGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataSourceGroups(List<DataSourceGroup>)
.- Parameters:
dataSourceGroups
- a consumer that will call methods onDataSourceGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-