Class BusinessUnitAddStoreActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitAddStoreActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddStoreAction>
public class BusinessUnitAddStoreActionBuilder
extends Object
implements Builder<BusinessUnitAddStoreAction>
BusinessUnitAddStoreActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAddStoreAction businessUnitAddStoreAction = BusinessUnitAddStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitAddStoreAction with checking for non-null required valuesbuilds BusinessUnitAddStoreAction without checking for non-null required valuesgetStore()
Store to add.of()
factory method for an instance of BusinessUnitAddStoreActionBuilderof
(BusinessUnitAddStoreAction template) create builder for BusinessUnitAddStoreAction instancestore
(StoreResourceIdentifier store) Store to add.Store to add.Store to add.
-
Constructor Details
-
BusinessUnitAddStoreActionBuilder
public BusinessUnitAddStoreActionBuilder()
-
-
Method Details
-
store
public BusinessUnitAddStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Store to add.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public BusinessUnitAddStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Store to add.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
Store to add.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
Store to add.
- Returns:
- store
-
build
builds BusinessUnitAddStoreAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAddStoreAction>
- Returns:
- BusinessUnitAddStoreAction
-
buildUnchecked
builds BusinessUnitAddStoreAction without checking for non-null required values- Returns:
- BusinessUnitAddStoreAction
-
of
factory method for an instance of BusinessUnitAddStoreActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitAddStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-