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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionReferencebuilder(ProductSelectionReference template) create builder for ProductSelectionReference instancecopyDeep()static ProductSelectionReferencedeepCopy(ProductSelectionReference template) factory method to create a deep copy of ProductSelectionReference@NotNull StringgetId()Unique identifier of the referenced ProductSelection.@Valid ProductSelectiongetObj()Contains the representation of the expanded ProductSelection.static ProductSelectionReferenceof()factory methodstatic ProductSelectionReferenceof(ProductSelectionReference template) factory method to create a shallow copy ProductSelectionReferencevoidUnique identifier of the referenced ProductSelection.voidsetObj(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> 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
-
PRODUCT_SELECTION
discriminator value for ProductSelectionReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced ProductSelection.
- Specified by:
getIdin interfaceIdentifiable<ProductSelection>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
getObj
Contains the representation of the expanded ProductSelection. Only present in responses to requests with Reference Expansion for ProductSelections.
- Specified by:
getObjin 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
-
copyDeep
ProductSelectionReference copyDeep() -
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
-