Interface QuoteUpdate
- All Superinterfaces:
ResourceUpdate<QuoteUpdate,
QuoteUpdateAction, QuoteUpdateBuilder>
public interface QuoteUpdate
extends ResourceUpdate<QuoteUpdate,QuoteUpdateAction,QuoteUpdateBuilder>
QuoteUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteUpdate quoteUpdate = QuoteUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteUpdateBuilder
builder()
builder factory method for QuoteUpdatestatic QuoteUpdateBuilder
builder
(QuoteUpdate template) create builder for QuoteUpdate instancestatic QuoteUpdate
deepCopy
(QuoteUpdate template) factory method to create a deep copy of QuoteUpdate@NotNull @Valid List<QuoteUpdateAction>
Update actions to be performed on the Quote.@NotNull Long
Expected version of the Quote to which the changes should be applied.static QuoteUpdate
of()
factory methodstatic QuoteUpdate
of
(QuoteUpdate template) factory method to create a shallow copy QuoteUpdatevoid
setActions
(QuoteUpdateAction... actions) Update actions to be performed on the Quote.void
setActions
(List<QuoteUpdateAction> 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<QuoteUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQuoteUpdate
(Function<QuoteUpdate, 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<QuoteUpdate,
QuoteUpdateAction, QuoteUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Quote.
- Specified by:
getActions
in interfaceResourceUpdate<QuoteUpdate,
QuoteUpdateAction, QuoteUpdateBuilder> - 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<QuoteUpdate,
QuoteUpdateAction, QuoteUpdateBuilder> - 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<QuoteUpdate,
QuoteUpdateAction, QuoteUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of QuoteUpdate
-
of
factory method to create a shallow copy QuoteUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of QuoteUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteUpdate- Returns:
- builder
-
builder
create builder for QuoteUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteUpdate
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
-