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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ZoneAddLocationAction -
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneAddLocationActionBuilderbuilder()builder factory method for ZoneAddLocationActionstatic ZoneAddLocationActionBuilderbuilder(ZoneAddLocationAction template) create builder for ZoneAddLocationAction instancecopyDeep()static ZoneAddLocationActiondeepCopy(ZoneAddLocationAction template) factory method to create a deep copy of ZoneAddLocationAction@NotNull @Valid LocationLocation to be added to the Zone.static ZoneAddLocationActionof()factory methodstatic ZoneAddLocationActionof(ZoneAddLocationAction template) factory method to create a shallow copy ZoneAddLocationActionvoidsetLocation(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
ZoneAddLocationAction copyDeep()- Specified by:
copyDeepin interfaceZoneUpdateAction
-
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
-