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 ZoneUpdateBuilderbuilder()builder factory method for ZoneUpdatestatic ZoneUpdateBuilderbuilder(ZoneUpdate template) create builder for ZoneUpdate instancecopyDeep()static ZoneUpdatedeepCopy(ZoneUpdate template) factory method to create a deep copy of ZoneUpdate@NotNull @Valid List<ZoneUpdateAction>Update actions to be performed on the Zone.@NotNull LongExpected version of the Zone on which the changes should be applied.static ZoneUpdateof()factory methodstatic ZoneUpdateof(ZoneUpdate template) factory method to create a shallow copy ZoneUpdatevoidsetActions(ZoneUpdateAction... actions) Update actions to be performed on the Zone.voidsetActions(List<ZoneUpdateAction> actions) Update actions to be performed on the Zone.voidsetVersion(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> TwithZoneUpdate(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:
getVersionin interfaceResourceUpdate<ZoneUpdate,ZoneUpdateAction, ZoneUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Zone.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
ZoneUpdate copyDeep() -
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
-