Interface PrincipalPermissions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PrincipalPermissions.Builder,
,PrincipalPermissions> SdkBuilder<PrincipalPermissions.Builder,
,PrincipalPermissions> SdkPojo
- Enclosing class:
PrincipalPermissions
public static interface PrincipalPermissions.Builder
extends SdkPojo, CopyableBuilder<PrincipalPermissions.Builder,PrincipalPermissions>
-
Method Summary
Modifier and TypeMethodDescriptionpermissions
(Collection<Permission> permissions) The permissions that are granted to the principal.permissions
(Permission... permissions) The permissions that are granted to the principal.permissionsWithStrings
(String... permissions) The permissions that are granted to the principal.permissionsWithStrings
(Collection<String> permissions) The permissions that are granted to the principal.default PrincipalPermissions.Builder
principal
(Consumer<DataLakePrincipal.Builder> principal) The principal who is granted permissions.principal
(DataLakePrincipal principal) The principal who is granted permissions.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
-
principal
The principal who is granted permissions.
- Parameters:
principal
- The principal who is granted permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal who is granted permissions.
This is a convenience method that creates an instance of theDataLakePrincipal.Builder
avoiding the need to create one manually viaDataLakePrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(DataLakePrincipal)
.- Parameters:
principal
- a consumer that will call methods onDataLakePrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permissionsWithStrings
The permissions that are granted to the principal.
- Parameters:
permissions
- The permissions that are granted to the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsWithStrings
The permissions that are granted to the principal.
- Parameters:
permissions
- The permissions that are granted to the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
The permissions that are granted to the principal.
- Parameters:
permissions
- The permissions that are granted to the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
The permissions that are granted to the principal.
- Parameters:
permissions
- The permissions that are granted to the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-