Interface ChannelUpdate
- All Superinterfaces:
ResourceUpdate<ChannelUpdate,
ChannelUpdateAction, ChannelUpdateBuilder>
public interface ChannelUpdate
extends ResourceUpdate<ChannelUpdate,ChannelUpdateAction,ChannelUpdateBuilder>
ChannelUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelUpdate channelUpdate = ChannelUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelUpdateBuilder
builder()
builder factory method for ChannelUpdatestatic ChannelUpdateBuilder
builder
(ChannelUpdate template) create builder for ChannelUpdate instancestatic ChannelUpdate
deepCopy
(ChannelUpdate template) factory method to create a deep copy of ChannelUpdate@NotNull @Valid List<ChannelUpdateAction>
Update actions to be performed on the Channel.@NotNull Long
Expected version of the Channel on which the changes should be applied.static ChannelUpdate
of()
factory methodstatic ChannelUpdate
of
(ChannelUpdate template) factory method to create a shallow copy ChannelUpdatevoid
setActions
(ChannelUpdateAction... actions) Update actions to be performed on the Channel.void
setActions
(List<ChannelUpdateAction> actions) Update actions to be performed on the Channel.void
setVersion
(Long version) Expected version of the Channel on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ChannelUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withChannelUpdate
(Function<ChannelUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Channel 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<ChannelUpdate,
ChannelUpdateAction, ChannelUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Channel.
- Specified by:
getActions
in interfaceResourceUpdate<ChannelUpdate,
ChannelUpdateAction, ChannelUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Channel 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<ChannelUpdate,
ChannelUpdateAction, ChannelUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the Channel.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the Channel.
- Specified by:
setActions
in interfaceResourceUpdate<ChannelUpdate,
ChannelUpdateAction, ChannelUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ChannelUpdate
-
of
factory method to create a shallow copy ChannelUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ChannelUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChannelUpdate- Returns:
- builder
-
builder
create builder for ChannelUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChannelUpdate
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
-