Interface VariantReference
- All Superinterfaces:
Reference,ReferenceMixin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantReferenceBuilderbuilder()builder factory method for VariantReferencestatic VariantReferenceBuilderbuilder(VariantReference template) create builder for VariantReference instancecopyDeep()static VariantReferencedeepCopy(VariantReference template) factory method to create a deep copy of VariantReference@NotNull StringgetId()Unique identifier of the referenced Variant.@Valid VariantgetObj()Contains the representation of the expanded Variant.static VariantReferenceof()factory methodstatic VariantReferenceof(VariantReference template) factory method to create a shallow copy VariantReferencevoidUnique identifier of the referenced Variant.voidContains the representation of the expanded Variant.static tools.jackson.core.type.TypeReference<VariantReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantReference(Function<VariantReference, T> helper) accessor 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
-
VARIANT
discriminator value for VariantReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Variant. Only present in responses to requests with Reference Expansion for Variants.
- Returns:
- obj
-
getId
Unique identifier of the referenced Variant.
- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Variant. Only present in responses to requests with Reference Expansion for Variants.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Variant.
-
of
factory method- Returns:
- instance of VariantReference
-
of
factory method to create a shallow copy VariantReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantReference copyDeep() -
deepCopy
factory method to create a deep copy of VariantReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantReference- Returns:
- builder
-
builder
create builder for VariantReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantReference
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
-