Interface PriceKeyReference
- All Superinterfaces:
KeyReference
References a price by key.
Example to create an instance using the builder pattern
PriceKeyReference priceKeyReference = PriceKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PriceKeyReferenceBuilder
builder()
builder factory method for PriceKeyReferencestatic PriceKeyReferenceBuilder
builder
(PriceKeyReference template) create builder for PriceKeyReference instancestatic PriceKeyReference
deepCopy
(PriceKeyReference template) factory method to create a deep copy of PriceKeyReferencestatic PriceKeyReference
of()
factory methodstatic PriceKeyReference
of
(PriceKeyReference template) factory method to create a shallow copy PriceKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<PriceKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPriceKeyReference
(Function<PriceKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
PRICE
discriminator value for PriceKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of PriceKeyReference
-
of
factory method to create a shallow copy PriceKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PriceKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PriceKeyReference- Returns:
- builder
-
builder
create builder for PriceKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPriceKeyReference
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
-