Class ChannelSetAddressActionBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelSetAddressActionBuilder
- All Implemented Interfaces:
Builder<ChannelSetAddressAction>
public class ChannelSetAddressActionBuilder
extends Object
implements Builder<ChannelSetAddressAction>
ChannelSetAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelSetAddressAction channelSetAddressAction = ChannelSetAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.build()
builds ChannelSetAddressAction with checking for non-null required valuesbuilds ChannelSetAddressAction without checking for non-null required valuesValue to set.of()
factory method for an instance of ChannelSetAddressActionBuilderof
(ChannelSetAddressAction template) create builder for ChannelSetAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
ChannelSetAddressActionBuilder
public ChannelSetAddressActionBuilder()
-
-
Method Details
-
address
public ChannelSetAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set. If empty, any existing value will be removed.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Value to set. If empty, any existing value will be removed.
- Returns:
- address
-
build
builds ChannelSetAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelSetAddressAction>
- Returns:
- ChannelSetAddressAction
-
buildUnchecked
builds ChannelSetAddressAction without checking for non-null required values- Returns:
- ChannelSetAddressAction
-
of
factory method for an instance of ChannelSetAddressActionBuilder- Returns:
- builder
-
of
create builder for ChannelSetAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-