Interface ProductSelectionResourceIdentifier
- All Superinterfaces:
Identifiable<ProductSelection>,ResourceIdentifier,WithKey
public interface ProductSelectionResourceIdentifier
extends ResourceIdentifier, Identifiable<ProductSelection>
ResourceIdentifier to a ProductSelection. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
ProductSelectionResourceIdentifier productSelectionResourceIdentifier = ProductSelectionResourceIdentifier.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionResourceIdentifierbuilder(ProductSelectionResourceIdentifier template) create builder for ProductSelectionResourceIdentifier instancecopyDeep()deepCopy(ProductSelectionResourceIdentifier template) factory method to create a deep copy of ProductSelectionResourceIdentifiergetId()Unique identifier of the referenced ProductSelection.getKey()User-defined unique identifier of the referenced ProductSelection.of()factory methodof(ProductSelectionResourceIdentifier template) factory method to create a shallow copy ProductSelectionResourceIdentifiervoidUnique identifier of the referenced ProductSelection.voidUser-defined unique identifier of the referenced ProductSelection.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionResourceIdentifier>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
PRODUCT_SELECTION
discriminator value for ProductSelectionResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced ProductSelection. Required if
keyis absent.- Specified by:
getIdin interfaceIdentifiable<ProductSelection>- Specified by:
getIdin interfaceResourceIdentifier- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced ProductSelection. Required if
idis absent.- Specified by:
getKeyin interfaceResourceIdentifier- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setId
Unique identifier of the referenced ProductSelection. Required if
keyis absent.- Specified by:
setIdin interfaceResourceIdentifier- Parameters:
id- value to be set
-
setKey
User-defined unique identifier of the referenced ProductSelection. Required if
idis absent.- Specified by:
setKeyin interfaceResourceIdentifier- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionResourceIdentifier
-
of
factory method to create a shallow copy ProductSelectionResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSelectionResourceIdentifier copyDeep()- Specified by:
copyDeepin interfaceResourceIdentifier
-
deepCopy
@Nullable static ProductSelectionResourceIdentifier deepCopy(@Nullable ProductSelectionResourceIdentifier template) factory method to create a deep copy of ProductSelectionResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionResourceIdentifier- Returns:
- builder
-
builder
static ProductSelectionResourceIdentifierBuilder builder(ProductSelectionResourceIdentifier template) create builder for ProductSelectionResourceIdentifier instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionResourceIdentifier
default <T> T withProductSelectionResourceIdentifier(Function<ProductSelectionResourceIdentifier, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-