Interface ShoppingListResourceIdentifier
- All Superinterfaces:
Identifiable<ShoppingList>
,ResourceIdentifier
,WithKey
public interface ShoppingListResourceIdentifier
extends ResourceIdentifier, Identifiable<ShoppingList>
ResourceIdentifier to a ShoppingList. Either id
or key
is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
ShoppingListResourceIdentifier shoppingListResourceIdentifier = ShoppingListResourceIdentifier.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListResourceIdentifierbuilder
(ShoppingListResourceIdentifier template) create builder for ShoppingListResourceIdentifier instancedeepCopy
(ShoppingListResourceIdentifier template) factory method to create a deep copy of ShoppingListResourceIdentifiergetId()
Unique identifier of the referenced ShoppingList.getKey()
User-defined unique identifier of the referenced ShoppingList.of()
factory methodof
(ShoppingListResourceIdentifier template) factory method to create a shallow copy ShoppingListResourceIdentifiervoid
Unique identifier of the referenced ShoppingList.void
User-defined unique identifier of the referenced ShoppingList.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListResourceIdentifier>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
SHOPPING_LIST
discriminator value for ShoppingListResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced ShoppingList. Required if
key
is absent.- Specified by:
getId
in interfaceIdentifiable<ShoppingList>
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced ShoppingList. Required if
id
is absent.- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Unique identifier of the referenced ShoppingList. Required if
key
is absent.- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the referenced ShoppingList. Required if
id
is absent.- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListResourceIdentifier
-
of
factory method to create a shallow copy ShoppingListResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListResourceIdentifier deepCopy(@Nullable ShoppingListResourceIdentifier template) factory method to create a deep copy of ShoppingListResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListResourceIdentifier- Returns:
- builder
-
builder
create builder for ShoppingListResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListResourceIdentifier
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<ShoppingListResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-