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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductLabelBuilder
builder()
builder factory method for ProductLabelstatic ProductLabelBuilder
builder
(ProductLabel template) create builder for ProductLabel instancestatic ProductLabel
deepCopy
(ProductLabel template) factory method to create a deep copy of ProductLabel@NotNull @Valid LocalizedString
getName()
Name of the Product.@NotNull @Valid LocalizedString
getSlug()
User-defined identifier used in a deep-link URL for the Product.@NotNull String
getType()
static ProductLabel
of()
factory methodstatic ProductLabel
of
(ProductLabel template) factory method to create a shallow copy ProductLabelvoid
setName
(LocalizedString name) Name of the Product.void
setSlug
(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> T
withProductLabel
(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
-
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
-