Interface UpdateInstruction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UpdateInstruction.Builder,UpdateInstruction>,SdkBuilder<UpdateInstruction.Builder,UpdateInstruction>,SdkPojo
- Enclosing class:
- UpdateInstruction
public static interface UpdateInstruction.Builder extends SdkPojo, CopyableBuilder<UpdateInstruction.Builder,UpdateInstruction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateInstruction.Builderaction(String action)Specifies whether this update is to add or revoke role permissions.UpdateInstruction.Builderaction(UpdateAction action)Specifies whether this update is to add or revoke role permissions.UpdateInstruction.Builderrole(String role)The role to add or revoke for the user or the group specified inusers.UpdateInstruction.Builderrole(Role role)The role to add or revoke for the user or the group specified inusers.UpdateInstruction.Builderusers(Collection<User> users)A structure that specifies the user or group to add or revoke the role for.UpdateInstruction.Builderusers(Consumer<User.Builder>... users)A structure that specifies the user or group to add or revoke the role for.UpdateInstruction.Builderusers(User... users)A structure that specifies the user or group to add or revoke the role for.-
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
-
action
UpdateInstruction.Builder action(String action)
Specifies whether this update is to add or revoke role permissions.
- Parameters:
action- Specifies whether this update is to add or revoke role permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UpdateAction,UpdateAction
-
action
UpdateInstruction.Builder action(UpdateAction action)
Specifies whether this update is to add or revoke role permissions.
- Parameters:
action- Specifies whether this update is to add or revoke role permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UpdateAction,UpdateAction
-
role
UpdateInstruction.Builder role(String role)
The role to add or revoke for the user or the group specified in
users.
-
role
UpdateInstruction.Builder role(Role role)
The role to add or revoke for the user or the group specified in
users.
-
users
UpdateInstruction.Builder users(Collection<User> users)
A structure that specifies the user or group to add or revoke the role for.
- Parameters:
users- A structure that specifies the user or group to add or revoke the role for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
users
UpdateInstruction.Builder users(User... users)
A structure that specifies the user or group to add or revoke the role for.
- Parameters:
users- A structure that specifies the user or group to add or revoke the role for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
users
UpdateInstruction.Builder users(Consumer<User.Builder>... users)
A structure that specifies the user or group to add or revoke the role for.
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 to#users(List.) - Parameters:
users- 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:
#users(java.util.Collection)
-
-