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 QuoteUpdateBuilderbuilder()builder factory method for QuoteUpdatestatic QuoteUpdateBuilderbuilder(QuoteUpdate template) create builder for QuoteUpdate instancecopyDeep()static QuoteUpdatedeepCopy(QuoteUpdate template) factory method to create a deep copy of QuoteUpdate@NotNull @Valid List<QuoteUpdateAction>Update actions to be performed on the Quote.@NotNull LongExpected version of the Quote to which the changes should be applied.static QuoteUpdateof()factory methodstatic QuoteUpdateof(QuoteUpdate template) factory method to create a shallow copy QuoteUpdatevoidsetActions(QuoteUpdateAction... actions) Update actions to be performed on the Quote.voidsetActions(List<QuoteUpdateAction> actions) Update actions to be performed on the Quote.voidsetVersion(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> TwithQuoteUpdate(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:
getVersionin interfaceResourceUpdate<QuoteUpdate,QuoteUpdateAction, QuoteUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Quote.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
QuoteUpdate copyDeep() -
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
-