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 QuoteRequestUpdateBuilder
builder()
builder factory method for QuoteRequestUpdatestatic QuoteRequestUpdateBuilder
builder
(QuoteRequestUpdate template) create builder for QuoteRequestUpdate instancestatic QuoteRequestUpdate
deepCopy
(QuoteRequestUpdate template) factory method to create a deep copy of QuoteRequestUpdate@NotNull @Valid List<QuoteRequestUpdateAction>
Update actions to be performed on the QuoteRequest.@NotNull Long
Expected version of the QuoteRequest to which the changes should be applied.static QuoteRequestUpdate
of()
factory methodstatic QuoteRequestUpdate
of
(QuoteRequestUpdate template) factory method to create a shallow copy QuoteRequestUpdatevoid
setActions
(QuoteRequestUpdateAction... actions) Update actions to be performed on the QuoteRequest.void
setActions
(List<QuoteRequestUpdateAction> actions) Update actions to be performed on the QuoteRequest.void
setVersion
(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> T
withQuoteRequestUpdate
(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:
getVersion
in interfaceResourceUpdate<QuoteRequestUpdate,
QuoteRequestUpdateAction, QuoteRequestUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the QuoteRequest.
- Specified by:
getActions
in 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:
setVersion
in 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:
setActions
in 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
-
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
-