Class SetParcelCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetParcelCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetParcelCustomFieldChange>
public class SetParcelCustomFieldChangeBuilder
extends Object
implements Builder<SetParcelCustomFieldChange>
SetParcelCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetParcelCustomFieldChange setParcelCustomFieldChange = SetParcelCustomFieldChange.builder()
.change("{change}")
.parcel(parcelBuilder -> parcelBuilder)
.customTypeId("{customTypeId}")
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetParcelCustomFieldChange with checking for non-null required valuesbuilds SetParcelCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId(String customTypeId) idof the referenced Type.value of change}idof the referenced Type.getName()Name of the Custom Field.Value after the change.Information about the updated Parcel.Value before the change.Name of the Custom Field.Value after the change.of()factory method for an instance of SetParcelCustomFieldChangeBuilderof(SetParcelCustomFieldChange template) create builder for SetParcelCustomFieldChange instanceparcel(ParcelChangeValue parcel) Information about the updated Parcel.Information about the updated Parcel.previousValue(Object previousValue) Value before the change.Information about the updated Parcel.
-
Constructor Details
-
SetParcelCustomFieldChangeBuilder
public SetParcelCustomFieldChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
parcel
public SetParcelCustomFieldChangeBuilder parcel(Function<ParcelChangeValueBuilder, ParcelChangeValueBuilder> builder) Information about the updated Parcel.
- Parameters:
builder- function to build the parcel value- Returns:
- Builder
-
withParcel
public SetParcelCustomFieldChangeBuilder withParcel(Function<ParcelChangeValueBuilder, ParcelChangeValue> builder) Information about the updated Parcel.
- Parameters:
builder- function to build the parcel value- Returns:
- Builder
-
parcel
Information about the updated Parcel.
- Parameters:
parcel- value to be set- Returns:
- Builder
-
customTypeId
idof the referenced Type.- Parameters:
customTypeId- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- 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
-
getParcel
Information about the updated Parcel.
- Returns:
- parcel
-
getCustomTypeId
idof the referenced Type.- Returns:
- customTypeId
-
getName
Name of the Custom Field.
- Returns:
- name
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetParcelCustomFieldChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetParcelCustomFieldChange>- Returns:
- SetParcelCustomFieldChange
-
buildUnchecked
builds SetParcelCustomFieldChange without checking for non-null required values- Returns:
- SetParcelCustomFieldChange
-
of
factory method for an instance of SetParcelCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetParcelCustomFieldChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-