Interface DirectDiscountReference
- All Superinterfaces:
Reference
,ReferenceMixin
- All Known Implementing Classes:
DirectDiscountReferenceImpl
Reference to a DirectDiscount.
Example to create an instance using the builder pattern
DirectDiscountReference directDiscountReference = DirectDiscountReference.builder()
.id("{id}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DirectDiscountReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DirectDiscountReferencebuilder
(DirectDiscountReference template) create builder for DirectDiscountReference instancestatic DirectDiscountReference
deepCopy
(DirectDiscountReference template) factory method to create a deep copy of DirectDiscountReference@NotNull String
getId()
Unique identifier of the referenced DirectDiscount.static DirectDiscountReference
of()
factory methodstatic DirectDiscountReference
of
(DirectDiscountReference template) factory method to create a shallow copy DirectDiscountReferencevoid
Unique identifier of the referenced DirectDiscount.static com.fasterxml.jackson.core.type.TypeReference<DirectDiscountReference>
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
-
DIRECT_DISCOUNT
discriminator value for DirectDiscountReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced DirectDiscount.
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setId
Unique identifier of the referenced DirectDiscount.
-
of
factory method- Returns:
- instance of DirectDiscountReference
-
of
factory method to create a shallow copy DirectDiscountReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DirectDiscountReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DirectDiscountReference- Returns:
- builder
-
builder
create builder for DirectDiscountReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDirectDiscountReference
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
-