Interface ProductLabel

All Superinterfaces:
Label

public interface ProductLabel extends Label
ProductLabel
Example to create an instance using the builder pattern

     ProductLabel productLabel = ProductLabel.builder()
             .slug(slugBuilder -> slugBuilder)
             .name(nameBuilder -> nameBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface Label
      Returns:
      type
    • getSlug

      @NotNull @Valid @NotNull @Valid LocalizedString getSlug()

      User-defined identifier used in a deep-link URL for the Product.

      Returns:
      slug
    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()

      Name of the Product.

      Returns:
      name
    • setSlug

      void setSlug(LocalizedString slug)

      User-defined identifier used in a deep-link URL for the Product.

      Parameters:
      slug - value to be set
    • setName

      void setName(LocalizedString name)

      Name of the Product.

      Parameters:
      name - value to be set
    • of

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

      static ProductLabel of(ProductLabel template)
      factory method to create a shallow copy ProductLabel
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static ProductLabel deepCopy(@Nullable ProductLabel template)
      factory method to create a deep copy of ProductLabel
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ProductLabelBuilder builder()
      builder factory method for ProductLabel
      Returns:
      builder
    • builder

      static ProductLabelBuilder builder(ProductLabel template)
      create builder for ProductLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductLabel

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