Class RemoveAddressChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveAddressChangeBuilder
- All Implemented Interfaces:
Builder<RemoveAddressChange>
RemoveAddressChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveAddressChange removeAddressChange = RemoveAddressChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveAddressChange with checking for non-null required valuesbuilds RemoveAddressChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.static RemoveAddressChangeBuilder
of()
factory method for an instance of RemoveAddressChangeBuilderstatic RemoveAddressChangeBuilder
of
(RemoveAddressChange template) create builder for RemoveAddressChange instancepreviousValue
(Address previousValue) Value before the change.previousValue
(Function<AddressBuilder, AddressBuilder> builder) Value before the change.withPreviousValue
(Function<AddressBuilder, Address> builder) Value before the change.
-
Constructor Details
-
RemoveAddressChangeBuilder
public RemoveAddressChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
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 RemoveAddressChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveAddressChange>
- Returns:
- RemoveAddressChange
-
buildUnchecked
builds RemoveAddressChange without checking for non-null required values- Returns:
- RemoveAddressChange
-
of
factory method for an instance of RemoveAddressChangeBuilder- Returns:
- builder
-
of
create builder for RemoveAddressChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-