Interface ChannelSetRolesAction

All Superinterfaces:
ChannelUpdateAction, ResourceUpdateAction<ChannelUpdateAction>

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

     ChannelSetRolesAction channelSetRolesAction = ChannelSetRolesAction.builder()
             .plusRoles(rolesBuilder -> rolesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getRoles

      @NotNull @NotNull List<ChannelRoleEnum> getRoles()

      Value to set. If not specified, then InventorySupply is assigned by default.

      Returns:
      roles
    • setRoles

      void setRoles(ChannelRoleEnum... roles)

      Value to set. If not specified, then InventorySupply is assigned by default.

      Parameters:
      roles - values to be set
    • setRoles

      void setRoles(List<ChannelRoleEnum> roles)

      Value to set. If not specified, then InventorySupply is assigned by default.

      Parameters:
      roles - values to be set
    • of

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

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

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

      static ChannelSetRolesActionBuilder builder()
      builder factory method for ChannelSetRolesAction
      Returns:
      builder
    • builder

      create builder for ChannelSetRolesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withChannelSetRolesAction

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