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