Class TaxCategoryUpdateBuilder
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryUpdateBuilder
- All Implemented Interfaces:
Builder<TaxCategoryUpdate>
TaxCategoryUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryUpdate taxCategoryUpdate = TaxCategoryUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(TaxCategoryUpdateAction... actions) Update actions to be performed on the TaxCategory.actions
(List<TaxCategoryUpdateAction> actions) Update actions to be performed on the TaxCategory.build()
builds TaxCategoryUpdate with checking for non-null required valuesbuilds TaxCategoryUpdate without checking for non-null required valuesUpdate actions to be performed on the TaxCategory.Expected version of the TaxCategory on which the changes should be applied.static TaxCategoryUpdateBuilder
of()
factory method for an instance of TaxCategoryUpdateBuilderstatic TaxCategoryUpdateBuilder
of
(TaxCategoryUpdate template) create builder for TaxCategoryUpdate instanceplusActions
(TaxCategoryUpdateAction... actions) Update actions to be performed on the TaxCategory.plusActions
(Function<TaxCategoryUpdateActionBuilder, Builder<? extends TaxCategoryUpdateAction>> builder) Update actions to be performed on the TaxCategory.Expected version of the TaxCategory on which the changes should be applied.withActions
(Function<TaxCategoryUpdateActionBuilder, Builder<? extends TaxCategoryUpdateAction>> builder) Update actions to be performed on the TaxCategory.
-
Constructor Details
-
TaxCategoryUpdateBuilder
public TaxCategoryUpdateBuilder()
-
-
Method Details
-
version
Expected version of the TaxCategory on 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 TaxCategory.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the TaxCategory.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the TaxCategory.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public TaxCategoryUpdateBuilder plusActions(Function<TaxCategoryUpdateActionBuilder, Builder<? extends TaxCategoryUpdateAction>> builder) Update actions to be performed on the TaxCategory.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public TaxCategoryUpdateBuilder withActions(Function<TaxCategoryUpdateActionBuilder, Builder<? extends TaxCategoryUpdateAction>> builder) Update actions to be performed on the TaxCategory.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
Expected version of the TaxCategory on 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 TaxCategory.
- Returns:
- actions
-
build
builds TaxCategoryUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<TaxCategoryUpdate>
- Returns:
- TaxCategoryUpdate
-
buildUnchecked
builds TaxCategoryUpdate without checking for non-null required values- Returns:
- TaxCategoryUpdate
-
of
factory method for an instance of TaxCategoryUpdateBuilder- Returns:
- builder
-
of
create builder for TaxCategoryUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-