Interface HierarchicalPrincipal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HierarchicalPrincipal.Builder,
,HierarchicalPrincipal> SdkBuilder<HierarchicalPrincipal.Builder,
,HierarchicalPrincipal> SdkPojo
- Enclosing class:
HierarchicalPrincipal
public static interface HierarchicalPrincipal.Builder
extends SdkPojo, CopyableBuilder<HierarchicalPrincipal.Builder,HierarchicalPrincipal>
-
Method Summary
Modifier and TypeMethodDescriptionprincipalList
(Collection<Principal> principalList) A list of principal lists that define the hierarchy for which documents users should have access to.principalList
(Consumer<Principal.Builder>... principalList) A list of principal lists that define the hierarchy for which documents users should have access to.principalList
(Principal... principalList) A list of principal lists that define the hierarchy for which documents users should have access to.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
-
principalList
A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.
- Parameters:
principalList
- A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalList
A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.
- Parameters:
principalList
- A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalList
A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.
This is a convenience method that creates an instance of thePrincipal.Builder
avoiding the need to create one manually viaPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipalList(List<Principal>)
.- Parameters:
principalList
- a consumer that will call methods onPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-