Interface ProductLabel
- All Superinterfaces:
Label
ProductLabel
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductLabel productLabel = ProductLabel.builder()
.slug(slugBuilder -> slugBuilder)
.name(nameBuilder -> nameBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductLabelBuilderbuilder()builder factory method for ProductLabelstatic ProductLabelBuilderbuilder(ProductLabel template) create builder for ProductLabel instancecopyDeep()static ProductLabeldeepCopy(ProductLabel template) factory method to create a deep copy of ProductLabel@NotNull @Valid LocalizedStringgetName()Name of the Product.@NotNull @Valid LocalizedStringgetSlug()User-defined identifier used in a deep-link URL for the Product.@NotNull StringgetType()static ProductLabelof()factory methodstatic ProductLabelof(ProductLabel template) factory method to create a shallow copy ProductLabelvoidsetName(LocalizedString name) Name of the Product.voidsetSlug(LocalizedString slug) User-defined identifier used in a deep-link URL for the Product.static com.fasterxml.jackson.core.type.TypeReference<ProductLabel>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductLabel(Function<ProductLabel, T> helper) accessor map function
-
Field Details
-
PRODUCT_LABEL
discriminator value for ProductLabel- See Also:
-
-
Method Details
-
getType
-
getSlug
User-defined identifier used in a deep-link URL for the Product.
- Returns:
- slug
-
getName
Name of the Product.
- Returns:
- name
-
setSlug
User-defined identifier used in a deep-link URL for the Product.
- Parameters:
slug- value to be set
-
setName
Name of the Product.
- Parameters:
name- value to be set
-
of
factory method- Returns:
- instance of ProductLabel
-
of
factory method to create a shallow copy ProductLabel- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductLabel copyDeep() -
deepCopy
factory method to create a deep copy of ProductLabel- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductLabel- Returns:
- builder
-
builder
create builder for ProductLabel instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductLabel
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-