Interface DiscountCodeChangeGroupsAction

All Superinterfaces:
DiscountCodeUpdateAction, ResourceUpdateAction<DiscountCodeUpdateAction>

public interface DiscountCodeChangeGroupsAction extends DiscountCodeUpdateAction
DiscountCodeChangeGroupsAction
Example to create an instance using the builder pattern

     DiscountCodeChangeGroupsAction discountCodeChangeGroupsAction = DiscountCodeChangeGroupsAction.builder()
             .plusGroups(groupsBuilder -> groupsBuilder)
             .build()
 
  • Field Details

    • CHANGE_GROUPS

      static final String CHANGE_GROUPS
      discriminator value for DiscountCodeChangeGroupsAction
      See Also:
  • Method Details

    • getGroups

      @NotNull @NotNull List<String> getGroups()

      New value to set. An empty array removes the DiscountCode from all groups.

      Returns:
      groups
    • setGroups

      void setGroups(String... groups)

      New value to set. An empty array removes the DiscountCode from all groups.

      Parameters:
      groups - values to be set
    • setGroups

      void setGroups(List<String> groups)

      New value to set. An empty array removes the DiscountCode from all groups.

      Parameters:
      groups - values to be set
    • of

      factory method
      Returns:
      instance of DiscountCodeChangeGroupsAction
    • of

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

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

      builder factory method for DiscountCodeChangeGroupsAction
      Returns:
      builder
    • builder

      create builder for DiscountCodeChangeGroupsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeChangeGroupsAction

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