Interface ZoneUpdateAction
- All Superinterfaces:
ResourceUpdateAction<ZoneUpdateAction>
- All Known Subinterfaces:
ZoneAddLocationAction
,ZoneChangeNameAction
,ZoneRemoveLocationAction
,ZoneSetDescriptionAction
,ZoneSetKeyAction
ZoneUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
ZoneUpdateAction zoneUpdateAction = ZoneUpdateAction.addLocationBuilder()
location(locationBuilder -> locationBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneAddLocationActionBuilder
builder for addLocation subtypestatic ZoneChangeNameActionBuilder
builder for changeName subtypestatic ZoneUpdateAction
deepCopy
(ZoneUpdateAction template) factory method to create a deep copy of ZoneUpdateAction@NotNull String
builder for removeLocation subtypebuilder for setDescription subtypestatic ZoneSetKeyActionBuilder
builder for setKey subtypestatic com.fasterxml.jackson.core.type.TypeReference<ZoneUpdateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withZoneUpdateAction
(Function<ZoneUpdateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ZoneUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of ZoneUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
addLocationBuilder
builder for addLocation subtype- Returns:
- builder
-
changeNameBuilder
builder for changeName subtype- Returns:
- builder
-
removeLocationBuilder
builder for removeLocation subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
withZoneUpdateAction
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
-