Interface StoreResourceIdentifier
- All Superinterfaces:
Identifiable<Store>
,ResourceIdentifier
,WithKey
ResourceIdentifier to a Store. Either id
or key
is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
StoreResourceIdentifier storeResourceIdentifier = StoreResourceIdentifier.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreResourceIdentifierbuilder
(StoreResourceIdentifier template) create builder for StoreResourceIdentifier instancestatic StoreResourceIdentifier
deepCopy
(StoreResourceIdentifier template) factory method to create a deep copy of StoreResourceIdentifiergetId()
Unique ID of the referenced Store.getKey()
Unique key of the referenced Store.static StoreResourceIdentifier
of()
factory methodstatic StoreResourceIdentifier
of
(StoreResourceIdentifier template) factory method to create a shallow copy StoreResourceIdentifiervoid
Unique ID of the referenced Store.void
Unique key of the referenced Store.static com.fasterxml.jackson.core.type.TypeReference<StoreResourceIdentifier>
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
-
STORE
discriminator value for StoreResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique ID of the referenced Store. Required if
key
is absent.- Specified by:
getId
in interfaceIdentifiable<Store>
- Specified by:
getId
in interfaceResourceIdentifier
- Returns:
- id
-
getKey
String getKey()Unique key of the referenced Store. Required if
id
is absent.- Specified by:
getKey
in interfaceResourceIdentifier
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setId
Unique ID of the referenced Store. Required if
key
is absent.- Specified by:
setId
in interfaceResourceIdentifier
- Parameters:
id
- value to be set
-
setKey
Unique key of the referenced Store. Required if
id
is absent.- Specified by:
setKey
in interfaceResourceIdentifier
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of StoreResourceIdentifier
-
of
factory method to create a shallow copy StoreResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StoreResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreResourceIdentifier- Returns:
- builder
-
builder
create builder for StoreResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreResourceIdentifier
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
-