Class RemoveAssociateChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveAssociateChangeBuilder
- All Implemented Interfaces:
Builder<RemoveAssociateChange>
RemoveAssociateChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveAssociateChange removeAssociateChange = RemoveAssociateChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveAssociateChange with checking for non-null required valuesbuilds RemoveAssociateChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.static RemoveAssociateChangeBuilder
of()
factory method for an instance of RemoveAssociateChangeBuilderstatic RemoveAssociateChangeBuilder
of
(RemoveAssociateChange template) create builder for RemoveAssociateChange instancepreviousValue
(Associate previousValue) Value before the change.Value before the change.withPreviousValue
(Function<AssociateBuilder, Associate> builder) Value before the change.
-
Constructor Details
-
RemoveAssociateChangeBuilder
public RemoveAssociateChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveAssociateChangeBuilder previousValue(Function<AssociateBuilder, AssociateBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds RemoveAssociateChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveAssociateChange>
- Returns:
- RemoveAssociateChange
-
buildUnchecked
builds RemoveAssociateChange without checking for non-null required values- Returns:
- RemoveAssociateChange
-
of
factory method for an instance of RemoveAssociateChangeBuilder- Returns:
- builder
-
of
create builder for RemoveAssociateChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-