Interface CartDiscountReference
- All Superinterfaces:
Identifiable<CartDiscount>,IdentifiableObjHolder<CartDiscount>,Reference,ReferenceMixin
public interface CartDiscountReference
extends Reference, Identifiable<CartDiscount>, IdentifiableObjHolder<CartDiscount>
Reference to a CartDiscount.
Example to create an instance using the builder pattern
CartDiscountReference cartDiscountReference = CartDiscountReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountReference -
Method Summary
Modifier and TypeMethodDescriptionstatic CartDiscountReferenceBuilderbuilder()builder factory method for CartDiscountReferencestatic CartDiscountReferenceBuilderbuilder(CartDiscountReference template) create builder for CartDiscountReference instancecopyDeep()static CartDiscountReferencedeepCopy(CartDiscountReference template) factory method to create a deep copy of CartDiscountReference@NotNull StringgetId()Unique identifier of the referenced CartDiscount.@Valid CartDiscountgetObj()Contains the representation of the expanded CartDiscount.static CartDiscountReferenceof()factory methodstatic CartDiscountReferenceof(CartDiscountReference template) factory method to create a shallow copy CartDiscountReferencevoidUnique identifier of the referenced CartDiscount.voidsetObj(CartDiscount obj) Contains the representation of the expanded CartDiscount.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
CART_DISCOUNT
discriminator value for CartDiscountReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded CartDiscount. Only present in responses to requests with Reference Expansion for CartDiscounts.
- Specified by:
getObjin interfaceIdentifiableObjHolder<CartDiscount>- Returns:
- obj
-
getId
Unique identifier of the referenced CartDiscount.
- Specified by:
getIdin interfaceIdentifiable<CartDiscount>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded CartDiscount. Only present in responses to requests with Reference Expansion for CartDiscounts.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced CartDiscount.
-
of
factory method- Returns:
- instance of CartDiscountReference
-
of
factory method to create a shallow copy CartDiscountReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartDiscountReference copyDeep() -
deepCopy
factory method to create a deep copy of CartDiscountReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountReference- Returns:
- builder
-
builder
create builder for CartDiscountReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountReference
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
-