Class SetAddressCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetAddressCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetAddressCustomFieldChange>
public class SetAddressCustomFieldChangeBuilder
extends Object
implements Builder<SetAddressCustomFieldChange>
SetAddressCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetAddressCustomFieldChange setAddressCustomFieldChange = SetAddressCustomFieldChange.builder()
.change("{change}")
.address(addressBuilder -> addressBuilder)
.name("{name}")
.customTypeId("{customTypeId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAddress which was extended.address
(Function<AddressBuilder, AddressBuilder> builder) Address which was extended.build()
builds SetAddressCustomFieldChange with checking for non-null required valuesbuilds SetAddressCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId
(String customTypeId) id
of the referenced Type.Address which was extended.value of change}id
of the referenced Type.getName()
Name of the Custom Field.Value after the change.Value before the change.Name of the Custom Field.Value after the change.of()
factory method for an instance of SetAddressCustomFieldChangeBuilderof
(SetAddressCustomFieldChange template) create builder for SetAddressCustomFieldChange instancepreviousValue
(Object previousValue) Value before the change.withAddress
(Function<AddressBuilder, Address> builder) Address which was extended.
-
Constructor Details
-
SetAddressCustomFieldChangeBuilder
public SetAddressCustomFieldChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
address
Address which was extended.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
Address which was extended.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address which was extended.
- Parameters:
address
- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
customTypeId
id
of the referenced Type.- Parameters:
customTypeId
- value to be set- Returns:
- Builder
-
previousValue
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
-
getChange
value of change}- Returns:
- change
-
getAddress
Address which was extended.
- Returns:
- address
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
id
of the referenced Type.- Returns:
- customTypeId
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetAddressCustomFieldChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetAddressCustomFieldChange>
- Returns:
- SetAddressCustomFieldChange
-
buildUnchecked
builds SetAddressCustomFieldChange without checking for non-null required values- Returns:
- SetAddressCustomFieldChange
-
of
factory method for an instance of SetAddressCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetAddressCustomFieldChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-