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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PermissionEntry.Builderrole(String role)Specifies whether the user or group has theAdmin,Editor, orViewerrole.PermissionEntry.Builderrole(Role role)Specifies whether the user or group has theAdmin,Editor, orViewerrole.default PermissionEntry.Builderuser(Consumer<User.Builder> user)A structure with the ID of the user or group with this role.PermissionEntry.Builderuser(User user)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 Detail
-
role
PermissionEntry.Builder role(String role)
Specifies whether the user or group has the
Admin,Editor, orViewerrole.
-
role
PermissionEntry.Builder role(Role role)
Specifies whether the user or group has the
Admin,Editor, orViewerrole.
-
user
PermissionEntry.Builder user(User 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
default PermissionEntry.Builder user(Consumer<User.Builder> 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.Builderavoiding the need to create one manually viaUser.builder().When the
Consumercompletes,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:
user(User)
-
-