Interface StateRemoveRolesAction

All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>, StateUpdateAction

public interface StateRemoveRolesAction extends StateUpdateAction
StateRemoveRolesAction
Example to create an instance using the builder pattern

     StateRemoveRolesAction stateRemoveRolesAction = StateRemoveRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRoles

      @NotNull @NotNull List<StateRoleEnum> getRoles()

      Roles to remove from the State.

      Returns:
      roles
    • setRoles

      void setRoles(StateRoleEnum... roles)

      Roles to remove from the State.

      Parameters:
      roles - values to be set
    • setRoles

      void setRoles(List<StateRoleEnum> roles)

      Roles to remove from the State.

      Parameters:
      roles - values to be set
    • of

      factory method
      Returns:
      instance of StateRemoveRolesAction
    • of

      factory method to create a shallow copy StateRemoveRolesAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of StateRemoveRolesAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for StateRemoveRolesAction
      Returns:
      builder
    • builder

      create builder for StateRemoveRolesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStateRemoveRolesAction

      default <T> T withStateRemoveRolesAction(Function<StateRemoveRolesAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<StateRemoveRolesAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference