Interface UpdateInstruction.Builder

    • 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.

        Parameters:
        role - The role to add or revoke for the user or the group specified in users.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Role, Role
      • role

        UpdateInstruction.Builder role​(Role role)

        The role to add or revoke for the user or the group specified in users.

        Parameters:
        role - The role to add or revoke for the user or the group specified in users.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Role, Role
      • 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 the User.Builder avoiding the need to create one manually via User.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #users(List).

        Parameters:
        users - a consumer that will call methods on User.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #users(java.util.Collection)