Interface ZoneUpdate
- All Superinterfaces:
ResourceUpdate<ZoneUpdate,
ZoneUpdateAction, ZoneUpdateBuilder>
ZoneUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneUpdate zoneUpdate = ZoneUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneUpdateBuilder
builder()
builder factory method for ZoneUpdatestatic ZoneUpdateBuilder
builder
(ZoneUpdate template) create builder for ZoneUpdate instancestatic ZoneUpdate
deepCopy
(ZoneUpdate template) factory method to create a deep copy of ZoneUpdate@NotNull @Valid List<ZoneUpdateAction>
Update actions to be performed on the Zone.@NotNull Long
Expected version of the Zone on which the changes should be applied.static ZoneUpdate
of()
factory methodstatic ZoneUpdate
of
(ZoneUpdate template) factory method to create a shallow copy ZoneUpdatevoid
setActions
(ZoneUpdateAction... actions) Update actions to be performed on the Zone.void
setActions
(List<ZoneUpdateAction> actions) Update actions to be performed on the Zone.void
setVersion
(Long version) Expected version of the Zone on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ZoneUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withZoneUpdate
(Function<ZoneUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Zone on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<ZoneUpdate,
ZoneUpdateAction, ZoneUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Zone.
- Specified by:
getActions
in interfaceResourceUpdate<ZoneUpdate,
ZoneUpdateAction, ZoneUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Zone on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<ZoneUpdate,
ZoneUpdateAction, ZoneUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the Zone.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the Zone.
- Specified by:
setActions
in interfaceResourceUpdate<ZoneUpdate,
ZoneUpdateAction, ZoneUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ZoneUpdate
-
of
factory method to create a shallow copy ZoneUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ZoneUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ZoneUpdate- Returns:
- builder
-
builder
create builder for ZoneUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withZoneUpdate
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
-