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()