Interface ShoppingListSetSlugAction

All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>, ShoppingListUpdateAction

public interface ShoppingListSetSlugAction extends ShoppingListUpdateAction
ShoppingListSetSlugAction
Example to create an instance using the builder pattern

     ShoppingListSetSlugAction shoppingListSetSlugAction = ShoppingListSetSlugAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getSlug

      @Valid @Valid LocalizedString getSlug()

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Returns:
      slug
    • setSlug

      void setSlug(LocalizedString slug)

      Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern ^[A-Za-z0-9_-]{2,256}+$

      Parameters:
      slug - value to be set
    • of

      factory method
      Returns:
      instance of ShoppingListSetSlugAction
    • of

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

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

      builder factory method for ShoppingListSetSlugAction
      Returns:
      builder
    • builder

      create builder for ShoppingListSetSlugAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withShoppingListSetSlugAction

      default <T> T withShoppingListSetSlugAction(Function<ShoppingListSetSlugAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • ofUnset

      static ShoppingListSetSlugAction ofUnset()
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetSlugAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference