Interface StateAddRolesAction

All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>, StateUpdateAction

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

     StateAddRolesAction stateAddRolesAction = StateAddRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRoles

      @NotNull @NotNull List<StateRoleEnum> getRoles()

      Value to append to the array.

      Returns:
      roles
    • setRoles

      void setRoles(StateRoleEnum... roles)

      Value to append to the array.

      Parameters:
      roles - values to be set
    • setRoles

      void setRoles(List<StateRoleEnum> roles)

      Value to append to the array.

      Parameters:
      roles - values to be set
    • of

      static StateAddRolesAction of()
      factory method
      Returns:
      instance of StateAddRolesAction
    • of

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

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

      static StateAddRolesActionBuilder builder()
      builder factory method for StateAddRolesAction
      Returns:
      builder
    • builder

      create builder for StateAddRolesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStateAddRolesAction

      default <T> T withStateAddRolesAction(Function<StateAddRolesAction,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<StateAddRolesAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference