Class CategoryAddStoreActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategoryAddStoreActionBuilder
- All Implemented Interfaces:
Builder<CategoryAddStoreAction>
public class CategoryAddStoreActionBuilder
extends Object
implements Builder<CategoryAddStoreAction>
CategoryAddStoreActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryAddStoreAction categoryAddStoreAction = CategoryAddStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CategoryAddStoreAction with checking for non-null required valuesbuilds CategoryAddStoreAction without checking for non-null required valuesgetStore()Value to add to the Category'sstores.of()factory method for an instance of CategoryAddStoreActionBuilderof(CategoryAddStoreAction template) create builder for CategoryAddStoreAction instancestore(StoreResourceIdentifier store) Value to add to the Category'sstores.Value to add to the Category'sstores.Value to add to the Category'sstores.
-
Constructor Details
-
CategoryAddStoreActionBuilder
public CategoryAddStoreActionBuilder()
-
-
Method Details
-
store
public CategoryAddStoreActionBuilder store(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifierBuilder> builder) Value to add to the Category's
stores.When called through an in-Store endpoint, the caller must have permission for the referenced Store.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
withStore
public CategoryAddStoreActionBuilder withStore(Function<StoreResourceIdentifierBuilder, StoreResourceIdentifier> builder) Value to add to the Category's
stores.When called through an in-Store endpoint, the caller must have permission for the referenced Store.
- Parameters:
builder- function to build the store value- Returns:
- Builder
-
store
Value to add to the Category's
stores.When called through an in-Store endpoint, the caller must have permission for the referenced Store.
- Parameters:
store- value to be set- Returns:
- Builder
-
getStore
Value to add to the Category's
stores.When called through an in-Store endpoint, the caller must have permission for the referenced Store.
- Returns:
- store
-
build
builds CategoryAddStoreAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CategoryAddStoreAction>- Returns:
- CategoryAddStoreAction
-
buildUnchecked
builds CategoryAddStoreAction without checking for non-null required values- Returns:
- CategoryAddStoreAction
-
of
factory method for an instance of CategoryAddStoreActionBuilder- Returns:
- builder
-
of
create builder for CategoryAddStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-