Class QuoteRequestUpdateBuilder
java.lang.Object
com.commercetools.api.models.quote_request.QuoteRequestUpdateBuilder
- All Implemented Interfaces:
Builder<QuoteRequestUpdate>
QuoteRequestUpdateBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(QuoteRequestUpdateAction... actions) Update actions to be performed on the QuoteRequest.actions
(List<QuoteRequestUpdateAction> actions) Update actions to be performed on the QuoteRequest.build()
builds QuoteRequestUpdate with checking for non-null required valuesbuilds QuoteRequestUpdate without checking for non-null required valuesUpdate actions to be performed on the QuoteRequest.Expected version of the QuoteRequest to which the changes should be applied.static QuoteRequestUpdateBuilder
of()
factory method for an instance of QuoteRequestUpdateBuilderstatic QuoteRequestUpdateBuilder
of
(QuoteRequestUpdate template) create builder for QuoteRequestUpdate instanceplusActions
(QuoteRequestUpdateAction... actions) Update actions to be performed on the QuoteRequest.plusActions
(Function<QuoteRequestUpdateActionBuilder, Builder<? extends QuoteRequestUpdateAction>> builder) Update actions to be performed on the QuoteRequest.Expected version of the QuoteRequest to which the changes should be applied.withActions
(Function<QuoteRequestUpdateActionBuilder, Builder<? extends QuoteRequestUpdateAction>> builder) Update actions to be performed on the QuoteRequest.
-
Constructor Details
-
QuoteRequestUpdateBuilder
public QuoteRequestUpdateBuilder()
-
-
Method Details
-
version
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.
- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the QuoteRequest.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the QuoteRequest.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the QuoteRequest.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public QuoteRequestUpdateBuilder plusActions(Function<QuoteRequestUpdateActionBuilder, Builder<? extends QuoteRequestUpdateAction>> builder) Update actions to be performed on the QuoteRequest.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public QuoteRequestUpdateBuilder withActions(Function<QuoteRequestUpdateActionBuilder, Builder<? extends QuoteRequestUpdateAction>> builder) Update actions to be performed on the QuoteRequest.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
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.
- Returns:
- version
-
getActions
Update actions to be performed on the QuoteRequest.
- Returns:
- actions
-
build
builds QuoteRequestUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteRequestUpdate>
- Returns:
- QuoteRequestUpdate
-
buildUnchecked
builds QuoteRequestUpdate without checking for non-null required values- Returns:
- QuoteRequestUpdate
-
of
factory method for an instance of QuoteRequestUpdateBuilder- Returns:
- builder
-
of
create builder for QuoteRequestUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-