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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeReference -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCodeReferenceBuilderbuilder()builder factory method for DiscountCodeReferencestatic DiscountCodeReferenceBuilderbuilder(DiscountCodeReference template) create builder for DiscountCodeReference instancecopyDeep()static DiscountCodeReferencedeepCopy(DiscountCodeReference template) factory method to create a deep copy of DiscountCodeReference@NotNull StringgetId()Unique identifier of the referenced DiscountCode.@Valid DiscountCodegetObj()Contains the representation of the expanded DiscountCode.static DiscountCodeReferenceof()factory methodstatic DiscountCodeReferenceof(DiscountCodeReference template) factory method to create a shallow copy DiscountCodeReferencevoidUnique identifier of the referenced DiscountCode.voidsetObj(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> 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
-
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:
getObjin interfaceIdentifiableObjHolder<DiscountCode>- Returns:
- obj
-
getId
Unique identifier of the referenced DiscountCode.
- Specified by:
getIdin interfaceIdentifiable<DiscountCode>- Specified by:
getIdin interfaceReference- Specified by:
getIdin 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
-
copyDeep
DiscountCodeReference copyDeep() -
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
-