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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountReference -
Method Summary
Modifier and TypeMethodDescriptionstatic CartDiscountReferenceBuilder
builder()
builder factory method for CartDiscountReferencestatic CartDiscountReferenceBuilder
builder
(CartDiscountReference template) create builder for CartDiscountReference instancestatic CartDiscountReference
deepCopy
(CartDiscountReference template) factory method to create a deep copy of CartDiscountReference@NotNull String
getId()
Unique identifier of the referenced CartDiscount.@Valid CartDiscount
getObj()
Contains the representation of the expanded CartDiscount.static CartDiscountReference
of()
factory methodstatic CartDiscountReference
of
(CartDiscountReference template) factory method to create a shallow copy CartDiscountReferencevoid
Unique identifier of the referenced CartDiscount.void
setObj
(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> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods 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:
getObj
in interfaceIdentifiableObjHolder<CartDiscount>
- Returns:
- obj
-
getId
Unique identifier of the referenced CartDiscount.
- Specified by:
getId
in interfaceIdentifiable<CartDiscount>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-