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