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