Interface PermissionEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PermissionEntry.Builder,
,PermissionEntry> SdkBuilder<PermissionEntry.Builder,
,PermissionEntry> SdkPojo
- Enclosing class:
PermissionEntry
public static interface PermissionEntry.Builder
extends SdkPojo, CopyableBuilder<PermissionEntry.Builder,PermissionEntry>
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the user or group has theAdmin
,Editor
, orViewer
role.Specifies whether the user or group has theAdmin
,Editor
, orViewer
role.default PermissionEntry.Builder
user
(Consumer<User.Builder> user) A structure with the ID of the user or group with this role.A structure with the ID of the user or group with this role.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
-
role
Specifies whether the user or group has the
Admin
,Editor
, orViewer
role.- Parameters:
role
- Specifies whether the user or group has theAdmin
,Editor
, orViewer
role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
Specifies whether the user or group has the
Admin
,Editor
, orViewer
role.- Parameters:
role
- Specifies whether the user or group has theAdmin
,Editor
, orViewer
role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
user
A structure with the ID of the user or group with this role.
- Parameters:
user
- A structure with the ID of the user or group with this role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
A structure with the ID of the user or group with this role.
This is a convenience method that creates an instance of theUser.Builder
avoiding the need to create one manually viaUser.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(User)
.- Parameters:
user
- a consumer that will call methods onUser.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-