Interface StoreReference
- All Superinterfaces:
Identifiable<Store>
,IdentifiableObjHolder<Store>
,Reference
,ReferenceMixin
public interface StoreReference
extends Reference, Identifiable<Store>, IdentifiableObjHolder<Store>
Reference to a Store.
Example to create an instance using the builder pattern
StoreReference storeReference = StoreReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreReferenceBuilder
builder()
builder factory method for StoreReferencestatic StoreReferenceBuilder
builder
(StoreReference template) create builder for StoreReference instancestatic StoreReference
deepCopy
(StoreReference template) factory method to create a deep copy of StoreReference@NotNull String
getId()
Unique ID of the referenced Store.@Valid Store
getObj()
Contains the representation of the expanded Store.static StoreReference
of()
factory methodstatic StoreReference
of
(StoreReference template) factory method to create a shallow copy StoreReferencevoid
Unique ID of the referenced Store.void
Contains the representation of the expanded Store.static com.fasterxml.jackson.core.type.TypeReference<StoreReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStoreReference
(Function<StoreReference, T> helper) 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
-
STORE
discriminator value for StoreReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Store>
- Returns:
- obj
-
getId
Unique ID of the referenced Store.
- Specified by:
getId
in interfaceIdentifiable<Store>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Parameters:
obj
- value to be set
-
setId
Unique ID of the referenced Store.
-
of
factory method- Returns:
- instance of StoreReference
-
of
factory method to create a shallow copy StoreReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StoreReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreReference- Returns:
- builder
-
builder
create builder for StoreReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreReference
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
-