Interface DiscountGroupReference
- All Superinterfaces:
Reference
,ReferenceMixin
Reference to a DiscountGroup.
Example to create an instance using the builder pattern
DiscountGroupReference discountGroupReference = DiscountGroupReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountGroupReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountGroupReferencebuilder
(DiscountGroupReference template) create builder for DiscountGroupReference instancecopyDeep()
static DiscountGroupReference
deepCopy
(DiscountGroupReference template) factory method to create a deep copy of DiscountGroupReference@NotNull String
getId()
Unique identifier of the referenced DiscountGroup.@Valid DiscountGroup
getObj()
Contains the representation of the expanded DiscountGroup.static DiscountGroupReference
of()
factory methodstatic DiscountGroupReference
of
(DiscountGroupReference template) factory method to create a shallow copy DiscountGroupReferencevoid
Unique identifier of the referenced DiscountGroup.void
setObj
(DiscountGroup obj) Contains the representation of the expanded DiscountGroup.static com.fasterxml.jackson.core.type.TypeReference<DiscountGroupReference>
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_GROUP
discriminator value for DiscountGroupReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced DiscountGroup.
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
getObj
Contains the representation of the expanded DiscountGroup. Only present in responses to requests with Reference Expansion for DiscountGroups.
- Returns:
- obj
-
setId
Unique identifier of the referenced DiscountGroup.
-
setObj
Contains the representation of the expanded DiscountGroup. Only present in responses to requests with Reference Expansion for DiscountGroups.
- Parameters:
obj
- value to be set
-
of
factory method- Returns:
- instance of DiscountGroupReference
-
of
factory method to create a shallow copy DiscountGroupReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountGroupReference copyDeep() -
deepCopy
factory method to create a deep copy of DiscountGroupReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountGroupReference- Returns:
- builder
-
builder
create builder for DiscountGroupReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountGroupReference
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
-