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