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