Class StoreSetSupplyChannelsActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreSetSupplyChannelsActionBuilder
- All Implemented Interfaces:
Builder<StoreSetSupplyChannelsAction>
public class StoreSetSupplyChannelsActionBuilder
extends Object
implements Builder<StoreSetSupplyChannelsAction>
StoreSetSupplyChannelsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreSetSupplyChannelsAction storeSetSupplyChannelsAction = StoreSetSupplyChannelsAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()builds StoreSetSupplyChannelsAction with checking for non-null required valuesbuilds StoreSetSupplyChannelsAction without checking for non-null required valuesValue to set.of()factory method for an instance of StoreSetSupplyChannelsActionBuilderof(StoreSetSupplyChannelsAction template) create builder for StoreSetSupplyChannelsAction instanceplusSupplyChannels(ChannelResourceIdentifier... supplyChannels) Value to set.plusSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set.Value to set.supplyChannels(ChannelResourceIdentifier... supplyChannels) Value to set.supplyChannels(List<ChannelResourceIdentifier> supplyChannels) Value to set.withSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set.
-
Constructor Details
-
StoreSetSupplyChannelsActionBuilder
public StoreSetSupplyChannelsActionBuilder()
-
-
Method Details
-
supplyChannels
public StoreSetSupplyChannelsActionBuilder supplyChannels(@Nullable ChannelResourceIdentifier... supplyChannels) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
supplyChannels- value to be set- Returns:
- Builder
-
supplyChannels
public StoreSetSupplyChannelsActionBuilder supplyChannels(@Nullable List<ChannelResourceIdentifier> supplyChannels) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
supplyChannels- value to be set- Returns:
- Builder
-
plusSupplyChannels
public StoreSetSupplyChannelsActionBuilder plusSupplyChannels(@Nullable ChannelResourceIdentifier... supplyChannels) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
supplyChannels- value to be set- Returns:
- Builder
-
plusSupplyChannels
public StoreSetSupplyChannelsActionBuilder plusSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
builder- function to build the supplyChannels value- Returns:
- Builder
-
withSupplyChannels
public StoreSetSupplyChannelsActionBuilder withSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
builder- function to build the supplyChannels value- Returns:
- Builder
-
addSupplyChannels
public StoreSetSupplyChannelsActionBuilder addSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
builder- function to build the supplyChannels value- Returns:
- Builder
-
setSupplyChannels
public StoreSetSupplyChannelsActionBuilder setSupplyChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set. If not defined, the Store's
supplyChannelsare unset.- Parameters:
builder- function to build the supplyChannels value- Returns:
- Builder
-
getSupplyChannels
Value to set. If not defined, the Store's
supplyChannelsare unset.- Returns:
- supplyChannels
-
build
builds StoreSetSupplyChannelsAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StoreSetSupplyChannelsAction>- Returns:
- StoreSetSupplyChannelsAction
-
buildUnchecked
builds StoreSetSupplyChannelsAction without checking for non-null required values- Returns:
- StoreSetSupplyChannelsAction
-
of
factory method for an instance of StoreSetSupplyChannelsActionBuilder- Returns:
- builder
-
of
create builder for StoreSetSupplyChannelsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-