Class SetCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetCustomFieldChange>
SetCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCustomFieldChange setCustomFieldChange = SetCustomFieldChange.builder()
.change("{change}")
.name("{name}")
.customTypeId("{customTypeId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCustomFieldChange with checking for non-null required valuesbuilds SetCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId
(String customTypeId) id
of the referenced Type.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.static SetCustomFieldChangeBuilder
of()
factory method for an instance of SetCustomFieldChangeBuilderstatic SetCustomFieldChangeBuilder
of
(SetCustomFieldChange template) create builder for SetCustomFieldChange instancepreviousValue
(Object previousValue) Value before the change.
-
Constructor Details
-
SetCustomFieldChangeBuilder
public SetCustomFieldChangeBuilder()
-
-
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
-
nextValue
Value after the change.
- Parameters:
nextValue
- 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
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
id
of the referenced Type.- Returns:
- customTypeId
-
build
builds SetCustomFieldChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCustomFieldChange>
- Returns:
- SetCustomFieldChange
-
buildUnchecked
builds SetCustomFieldChange without checking for non-null required values- Returns:
- SetCustomFieldChange
-
of
factory method for an instance of SetCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetCustomFieldChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-