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