Interface ZoneAddLocationAction
- All Superinterfaces:
ResourceUpdateAction<ZoneUpdateAction>
,ZoneUpdateAction
ZoneAddLocationAction
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ZoneAddLocationAction -
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneAddLocationActionBuilder
builder()
builder factory method for ZoneAddLocationActionstatic ZoneAddLocationActionBuilder
builder
(ZoneAddLocationAction template) create builder for ZoneAddLocationAction instancestatic ZoneAddLocationAction
deepCopy
(ZoneAddLocationAction template) factory method to create a deep copy of ZoneAddLocationAction@NotNull @Valid Location
Location to be added to the Zone.static ZoneAddLocationAction
of()
factory methodstatic ZoneAddLocationAction
of
(ZoneAddLocationAction template) factory method to create a shallow copy ZoneAddLocationActionvoid
setLocation
(Location location) Location to be added to the Zone.static com.fasterxml.jackson.core.type.TypeReference<ZoneAddLocationAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.zone.ZoneUpdateAction
getAction, withZoneUpdateAction
-
Field Details
-
ADD_LOCATION
discriminator value for ZoneAddLocationAction- See Also:
-
-
Method Details
-
getLocation
Location to be added to the Zone.
- Returns:
- location
-
setLocation
Location to be added to the Zone.
- Parameters:
location
- value to be set
-
of
factory method- Returns:
- instance of ZoneAddLocationAction
-
of
factory method to create a shallow copy ZoneAddLocationAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ZoneAddLocationAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ZoneAddLocationAction- Returns:
- builder
-
builder
create builder for ZoneAddLocationAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withZoneAddLocationAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-