Class StoreReferenceBuilder
java.lang.Object
com.commercetools.api.models.store.StoreReferenceBuilder
- All Implemented Interfaces:
Builder<StoreReference>
StoreReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreReference storeReference = StoreReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StoreReference with checking for non-null required valuesbuilds StoreReference without checking for non-null required valuesgetId()Unique ID of the referenced Store.getObj()Contains the representation of the expanded Store.Unique ID of the referenced Store.Contains the representation of the expanded Store.obj(Function<StoreBuilder, StoreBuilder> builder) Contains the representation of the expanded Store.static StoreReferenceBuilderof()factory method for an instance of StoreReferenceBuilderstatic StoreReferenceBuilderof(StoreReference template) create builder for StoreReference instancewithObj(Function<StoreBuilder, Store> builder) Contains the representation of the expanded Store.
-
Constructor Details
-
StoreReferenceBuilder
public StoreReferenceBuilder()
-
-
Method Details
-
id
Unique ID of the referenced Store.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique ID of the referenced Store.
- Returns:
- id
-
getObj
Contains the representation of the expanded Store. Only present in responses to requests with Reference Expansion for Stores.
- Returns:
- obj
-
build
builds StoreReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<StoreReference>- Returns:
- StoreReference
-
buildUnchecked
builds StoreReference without checking for non-null required values- Returns:
- StoreReference
-
of
factory method for an instance of StoreReferenceBuilder- Returns:
- builder
-
of
create builder for StoreReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-