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