Class RemoveBillingAddressIdChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveBillingAddressIdChangeBuilder
- All Implemented Interfaces:
Builder<RemoveBillingAddressIdChange>
public class RemoveBillingAddressIdChangeBuilder
extends Object
implements Builder<RemoveBillingAddressIdChange>
RemoveBillingAddressIdChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveBillingAddressIdChange removeBillingAddressIdChange = RemoveBillingAddressIdChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddress removed frombillingAddressesIds.address(Function<AddressBuilder, AddressBuilder> builder) Address removed frombillingAddressesIds.build()builds RemoveBillingAddressIdChange with checking for non-null required valuesbuilds RemoveBillingAddressIdChange without checking for non-null required valuesset the value to the changeAddress removed frombillingAddressesIds.value of change}Value after the change.Value before the change.Value after the change.Value after the change.of()factory method for an instance of RemoveBillingAddressIdChangeBuilderof(RemoveBillingAddressIdChange template) create builder for RemoveBillingAddressIdChange instanceplusNextValue(String... nextValue) Value after the change.plusPreviousValue(String... previousValue) Value before the change.previousValue(String... previousValue) Value before the change.previousValue(List<String> previousValue) Value before the change.withAddress(Function<AddressBuilder, Address> builder) Address removed frombillingAddressesIds.
-
Constructor Details
-
RemoveBillingAddressIdChangeBuilder
public RemoveBillingAddressIdChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
plusPreviousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
plusNextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
address
Address removed from
billingAddressesIds.- Parameters:
builder- function to build the address value- Returns:
- Builder
-
withAddress
Address removed from
billingAddressesIds.- Parameters:
builder- function to build the address value- Returns:
- Builder
-
address
Address removed from
billingAddressesIds.- Parameters:
address- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getAddress
Address removed from
billingAddressesIds.- Returns:
- address
-
build
builds RemoveBillingAddressIdChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<RemoveBillingAddressIdChange>- Returns:
- RemoveBillingAddressIdChange
-
buildUnchecked
builds RemoveBillingAddressIdChange without checking for non-null required values- Returns:
- RemoveBillingAddressIdChange
-
of
factory method for an instance of RemoveBillingAddressIdChangeBuilder- Returns:
- builder
-
of
create builder for RemoveBillingAddressIdChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-