Interface ProductReference
- All Superinterfaces:
Reference
ProductReference
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductReference productReference = ProductReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductReferenceBuilder
builder()
builder factory method for ProductReferencestatic ProductReferenceBuilder
builder
(ProductReference template) create builder for ProductReference instancestatic ProductReference
deepCopy
(ProductReference template) factory method to create a deep copy of ProductReferencestatic ProductReference
of()
factory methodstatic ProductReference
of
(ProductReference template) factory method to create a shallow copy ProductReferencestatic com.fasterxml.jackson.core.type.TypeReference<ProductReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductReference
(Function<ProductReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.ml.models.common.Reference
getId, getTypeId, setId, withReference
-
Field Details
-
PRODUCT
discriminator value for ProductReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of ProductReference
-
of
factory method to create a shallow copy ProductReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductReference- Returns:
- builder
-
builder
create builder for ProductReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductReference
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
-