Interface ChannelAddRolesAction

All Superinterfaces:
ChannelUpdateAction, ResourceUpdateAction<ChannelUpdateAction>
All Known Implementing Classes:
ChannelAddRolesActionImpl

public interface ChannelAddRolesAction extends ChannelUpdateAction
ChannelAddRolesAction
Example to create an instance using the builder pattern

     ChannelAddRolesAction channelAddRolesAction = ChannelAddRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRoles

      @NotNull @NotNull List<ChannelRoleEnum> getRoles()

      Value to append to the array.

      Returns:
      roles
    • setRoles

      void setRoles(ChannelRoleEnum... roles)

      Value to append to the array.

      Parameters:
      roles - values to be set
    • setRoles

      void setRoles(List<ChannelRoleEnum> roles)

      Value to append to the array.

      Parameters:
      roles - values to be set
    • of

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

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

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

      static ChannelAddRolesActionBuilder builder()
      builder factory method for ChannelAddRolesAction
      Returns:
      builder
    • builder

      create builder for ChannelAddRolesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withChannelAddRolesAction

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