Class ZoneRemoveLocationActionBuilder
java.lang.Object
com.commercetools.api.models.zone.ZoneRemoveLocationActionBuilder
- All Implemented Interfaces:
Builder<ZoneRemoveLocationAction>
public class ZoneRemoveLocationActionBuilder
extends Object
implements Builder<ZoneRemoveLocationAction>
ZoneRemoveLocationActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneRemoveLocationAction zoneRemoveLocationAction = ZoneRemoveLocationAction.builder()
.location(locationBuilder -> locationBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ZoneRemoveLocationAction with checking for non-null required valuesbuilds ZoneRemoveLocationAction without checking for non-null required valuesLocation to be removed from the Zone.Location to be removed from the Zone.location
(Function<LocationBuilder, LocationBuilder> builder) Location to be removed from the Zone.of()
factory method for an instance of ZoneRemoveLocationActionBuilderof
(ZoneRemoveLocationAction template) create builder for ZoneRemoveLocationAction instancewithLocation
(Function<LocationBuilder, Location> builder) Location to be removed from the Zone.
-
Constructor Details
-
ZoneRemoveLocationActionBuilder
public ZoneRemoveLocationActionBuilder()
-
-
Method Details
-
location
Location to be removed from the Zone.
- Parameters:
builder
- function to build the location value- Returns:
- Builder
-
withLocation
Location to be removed from the Zone.
- Parameters:
builder
- function to build the location value- Returns:
- Builder
-
location
Location to be removed from the Zone.
- Parameters:
location
- value to be set- Returns:
- Builder
-
getLocation
Location to be removed from the Zone.
- Returns:
- location
-
build
builds ZoneRemoveLocationAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ZoneRemoveLocationAction>
- Returns:
- ZoneRemoveLocationAction
-
buildUnchecked
builds ZoneRemoveLocationAction without checking for non-null required values- Returns:
- ZoneRemoveLocationAction
-
of
factory method for an instance of ZoneRemoveLocationActionBuilder- Returns:
- builder
-
of
create builder for ZoneRemoveLocationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-