Interface StagedQuoteUpdate
- All Superinterfaces:
ResourceUpdate<StagedQuoteUpdate,
StagedQuoteUpdateAction, StagedQuoteUpdateBuilder>
- All Known Implementing Classes:
StagedQuoteUpdateImpl
public interface StagedQuoteUpdate
extends ResourceUpdate<StagedQuoteUpdate,StagedQuoteUpdateAction,StagedQuoteUpdateBuilder>
StagedQuoteUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteUpdate stagedQuoteUpdate = StagedQuoteUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StagedQuoteUpdateBuilder
builder()
builder factory method for StagedQuoteUpdatestatic StagedQuoteUpdateBuilder
builder
(StagedQuoteUpdate template) create builder for StagedQuoteUpdate instancestatic StagedQuoteUpdate
deepCopy
(StagedQuoteUpdate template) factory method to create a deep copy of StagedQuoteUpdate@NotNull @Valid List<StagedQuoteUpdateAction>
Update actions to be performed on the StagedQuote.@NotNull Long
Expected version of the StagedQuote to which the changes should be applied.static StagedQuoteUpdate
of()
factory methodstatic StagedQuoteUpdate
of
(StagedQuoteUpdate template) factory method to create a shallow copy StagedQuoteUpdatevoid
setActions
(StagedQuoteUpdateAction... actions) Update actions to be performed on the StagedQuote.void
setActions
(List<StagedQuoteUpdateAction> actions) Update actions to be performed on the StagedQuote.void
setVersion
(Long version) Expected version of the StagedQuote to which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedQuoteUpdate
(Function<StagedQuoteUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the StagedQuote to which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<StagedQuoteUpdate,
StagedQuoteUpdateAction, StagedQuoteUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the StagedQuote.
- Specified by:
getActions
in interfaceResourceUpdate<StagedQuoteUpdate,
StagedQuoteUpdateAction, StagedQuoteUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the StagedQuote to which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<StagedQuoteUpdate,
StagedQuoteUpdateAction, StagedQuoteUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the StagedQuote.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the StagedQuote.
- Specified by:
setActions
in interfaceResourceUpdate<StagedQuoteUpdate,
StagedQuoteUpdateAction, StagedQuoteUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of StagedQuoteUpdate
-
of
factory method to create a shallow copy StagedQuoteUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StagedQuoteUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedQuoteUpdate- Returns:
- builder
-
builder
create builder for StagedQuoteUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedQuoteUpdate
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
-