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