Interface QuoteRequestUpdate
- All Superinterfaces:
ResourceUpdate<QuoteRequestUpdate,QuoteRequestUpdateAction, QuoteRequestUpdateBuilder>
public interface QuoteRequestUpdate
extends ResourceUpdate<QuoteRequestUpdate,QuoteRequestUpdateAction,QuoteRequestUpdateBuilder>
QuoteRequestUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteRequestUpdate quoteRequestUpdate = QuoteRequestUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteRequestUpdateBuilderbuilder()builder factory method for QuoteRequestUpdatestatic QuoteRequestUpdateBuilderbuilder(QuoteRequestUpdate template) create builder for QuoteRequestUpdate instancecopyDeep()static QuoteRequestUpdatedeepCopy(QuoteRequestUpdate template) factory method to create a deep copy of QuoteRequestUpdate@NotNull @Valid List<QuoteRequestUpdateAction>Update actions to be performed on the QuoteRequest.@NotNull LongExpected version of the QuoteRequest to which the changes should be applied.static QuoteRequestUpdateof()factory methodstatic QuoteRequestUpdateof(QuoteRequestUpdate template) factory method to create a shallow copy QuoteRequestUpdatevoidsetActions(QuoteRequestUpdateAction... actions) Update actions to be performed on the QuoteRequest.voidsetActions(List<QuoteRequestUpdateAction> actions) Update actions to be performed on the QuoteRequest.voidsetVersion(Long version) Expected version of the QuoteRequest to which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithQuoteRequestUpdate(Function<QuoteRequestUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the QuoteRequest 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<QuoteRequestUpdate,QuoteRequestUpdateAction, QuoteRequestUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the QuoteRequest.
- Specified by:
getActionsin interfaceResourceUpdate<QuoteRequestUpdate,QuoteRequestUpdateAction, QuoteRequestUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the QuoteRequest 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<QuoteRequestUpdate,QuoteRequestUpdateAction, QuoteRequestUpdateBuilder> - Parameters:
version- value to be set
-
setActions
Update actions to be performed on the QuoteRequest.
- Parameters:
actions- values to be set
-
setActions
Update actions to be performed on the QuoteRequest.
- Specified by:
setActionsin interfaceResourceUpdate<QuoteRequestUpdate,QuoteRequestUpdateAction, QuoteRequestUpdateBuilder> - Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of QuoteRequestUpdate
-
of
factory method to create a shallow copy QuoteRequestUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
QuoteRequestUpdate copyDeep() -
deepCopy
factory method to create a deep copy of QuoteRequestUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestUpdate- Returns:
- builder
-
builder
create builder for QuoteRequestUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestUpdate
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
-