Interface DiscountCodeReference
- All Superinterfaces:
Identifiable<DiscountCode>
,IdentifiableObjHolder<DiscountCode>
,Reference
,ReferenceMixin
public interface DiscountCodeReference
extends Reference, Identifiable<DiscountCode>, IdentifiableObjHolder<DiscountCode>
Reference to a DiscountCode.
Example to create an instance using the builder pattern
DiscountCodeReference discountCodeReference = DiscountCodeReference.builder()
.id("{id}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeReference -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCodeReferenceBuilder
builder()
builder factory method for DiscountCodeReferencestatic DiscountCodeReferenceBuilder
builder
(DiscountCodeReference template) create builder for DiscountCodeReference instancestatic DiscountCodeReference
deepCopy
(DiscountCodeReference template) factory method to create a deep copy of DiscountCodeReference@NotNull String
getId()
Unique identifier of the referenced DiscountCode.@Valid DiscountCode
getObj()
Contains the representation of the expanded DiscountCode.static DiscountCodeReference
of()
factory methodstatic DiscountCodeReference
of
(DiscountCodeReference template) factory method to create a shallow copy DiscountCodeReferencevoid
Unique identifier of the referenced DiscountCode.void
setObj
(DiscountCode obj) Contains the representation of the expanded DiscountCode.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeReference>
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
-
DISCOUNT_CODE
discriminator value for DiscountCodeReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded DiscountCode. Only present in responses to requests with Reference Expansion for DiscountCodes.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<DiscountCode>
- Returns:
- obj
-
getId
Unique identifier of the referenced DiscountCode.
- Specified by:
getId
in interfaceIdentifiable<DiscountCode>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded DiscountCode. Only present in responses to requests with Reference Expansion for DiscountCodes.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced DiscountCode.
-
of
factory method- Returns:
- instance of DiscountCodeReference
-
of
factory method to create a shallow copy DiscountCodeReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DiscountCodeReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeReference- Returns:
- builder
-
builder
create builder for DiscountCodeReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeReference
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
-