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