Interface StateSetRolesAction

All Superinterfaces:
ResourceUpdateAction<StateUpdateAction>, StateUpdateAction
All Known Implementing Classes:
StateSetRolesActionImpl

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

     StateSetRolesAction stateSetRolesAction = StateSetRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRoles

      @NotNull @NotNull List<StateRoleEnum> getRoles()

      Value to set. If empty, any existing value will be removed.

      Returns:
      roles
    • setRoles

      void setRoles(StateRoleEnum... roles)

      Value to set. If empty, any existing value will be removed.

      Parameters:
      roles - values to be set
    • setRoles

      void setRoles(List<StateRoleEnum> roles)

      Value to set. If empty, any existing value will be removed.

      Parameters:
      roles - values to be set
    • of

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

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

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

      static StateSetRolesActionBuilder builder()
      builder factory method for StateSetRolesAction
      Returns:
      builder
    • builder

      create builder for StateSetRolesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStateSetRolesAction

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