Interface KeyReference
- All Known Subinterfaces:
CartDiscountKeyReference
,CartKeyReference
,CategoryKeyReference
,ChannelKeyReference
,CustomerGroupKeyReference
,CustomerKeyReference
,CustomObjectKeyReference
,DiscountCodeKeyReference
,OrderKeyReference
,PaymentKeyReference
,PriceKeyReference
,ProductDiscountKeyReference
,ProductKeyReference
,ProductTypeKeyReference
,ProductVariantKeyReference
,ShippingMethodKeyReference
,StateKeyReference
,StoreKeyReference
,TaxCategoryKeyReference
,TypeKeyReference
public interface KeyReference
References a resource by key.
Example to create a subtype instance using the builder pattern
KeyReference keyReference = KeyReference.cartDiscountBuilder()
key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartKeyReferenceBuilder
builder for cart subtypebuilder for cartDiscount subtypestatic CategoryKeyReferenceBuilder
builder for category subtypestatic ChannelKeyReferenceBuilder
builder for channel subtypestatic CustomerKeyReferenceBuilder
builder for customer subtypebuilder for customerGroup subtypestatic KeyReference
deepCopy
(KeyReference template) factory method to create a deep copy of KeyReferencebuilder for discountCode subtype@NotNull String
getKey()
@NotNull ReferenceType
The type of the referenced resource.builder for keyValueDocument subtypestatic OrderKeyReferenceBuilder
builder for order subtypestatic PaymentKeyReferenceBuilder
builder for payment subtypestatic PriceKeyReferenceBuilder
builder for price subtypestatic ProductKeyReferenceBuilder
builder for product subtypebuilder for productDiscount subtypebuilder for productType subtypebuilder for productVariant subtypevoid
set keybuilder for shippingMethod subtypestatic StateKeyReferenceBuilder
builder for state subtypestatic StoreKeyReferenceBuilder
builder for store subtypebuilder for taxCategory subtypestatic TypeKeyReferenceBuilder
builder for type subtypestatic com.fasterxml.jackson.core.type.TypeReference<KeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withKeyReference
(Function<KeyReference, T> helper) accessor map function
-
Method Details
-
getKey
- Returns:
- key
-
getTypeId
The type of the referenced resource.
- Returns:
- typeId
-
setKey
set key- Parameters:
key
- value to be set
-
deepCopy
factory method to create a deep copy of KeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
cartDiscountBuilder
builder for cartDiscount subtype- Returns:
- builder
-
cartBuilder
builder for cart subtype- Returns:
- builder
-
categoryBuilder
builder for category subtype- Returns:
- builder
-
channelBuilder
builder for channel subtype- Returns:
- builder
-
keyValueDocumentBuilder
builder for keyValueDocument subtype- Returns:
- builder
-
customerGroupBuilder
builder for customerGroup subtype- Returns:
- builder
-
customerBuilder
builder for customer subtype- Returns:
- builder
-
discountCodeBuilder
builder for discountCode subtype- Returns:
- builder
-
orderBuilder
builder for order subtype- Returns:
- builder
-
paymentBuilder
builder for payment subtype- Returns:
- builder
-
priceBuilder
builder for price subtype- Returns:
- builder
-
productDiscountBuilder
builder for productDiscount subtype- Returns:
- builder
-
productBuilder
builder for product subtype- Returns:
- builder
-
productTypeBuilder
builder for productType subtype- Returns:
- builder
-
productVariantBuilder
builder for productVariant subtype- Returns:
- builder
-
shippingMethodBuilder
builder for shippingMethod subtype- Returns:
- builder
-
stateBuilder
builder for state subtype- Returns:
- builder
-
storeBuilder
builder for store subtype- Returns:
- builder
-
taxCategoryBuilder
builder for taxCategory subtype- Returns:
- builder
-
typeBuilder
builder for type subtype- Returns:
- builder
-
withKeyReference
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
-