Class StoreAddSupplyChannelActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreAddSupplyChannelActionBuilder
- All Implemented Interfaces:
Builder<StoreAddSupplyChannelAction>
public class StoreAddSupplyChannelActionBuilder
extends Object
implements Builder<StoreAddSupplyChannelAction>
StoreAddSupplyChannelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreAddSupplyChannelAction storeAddSupplyChannelAction = StoreAddSupplyChannelAction.builder()
.supplyChannel(supplyChannelBuilder -> supplyChannelBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StoreAddSupplyChannelAction with checking for non-null required valuesbuilds StoreAddSupplyChannelAction without checking for non-null required valuesValue to append.of()factory method for an instance of StoreAddSupplyChannelActionBuilderof(StoreAddSupplyChannelAction template) create builder for StoreAddSupplyChannelAction instancesupplyChannel(ChannelResourceIdentifier supplyChannel) Value to append.Value to append.Value to append.
-
Constructor Details
-
StoreAddSupplyChannelActionBuilder
public StoreAddSupplyChannelActionBuilder()
-
-
Method Details
-
supplyChannel
public StoreAddSupplyChannelActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to append.
- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public StoreAddSupplyChannelActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to append.
- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
Value to append.
- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
getSupplyChannel
Value to append.
- Returns:
- supplyChannel
-
build
builds StoreAddSupplyChannelAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StoreAddSupplyChannelAction>- Returns:
- StoreAddSupplyChannelAction
-
buildUnchecked
builds StoreAddSupplyChannelAction without checking for non-null required values- Returns:
- StoreAddSupplyChannelAction
-
of
factory method for an instance of StoreAddSupplyChannelActionBuilder- Returns:
- builder
-
of
create builder for StoreAddSupplyChannelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-