Class ChangeEnumValueLabelChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeEnumValueLabelChangeBuilder
- All Implemented Interfaces:
Builder<ChangeEnumValueLabelChange>
public class ChangeEnumValueLabelChangeBuilder
extends Object
implements Builder<ChangeEnumValueLabelChange>
ChangeEnumValueLabelChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeEnumValueLabelChange changeEnumValueLabelChange = ChangeEnumValueLabelChange.builder()
.change("{change}")
.previousValue("{previousValue}")
.nextValue("{nextValue}")
.fieldName("{fieldName}")
.valueKey("{valueKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChangeEnumValueLabelChange with checking for non-null required valuesbuilds ChangeEnumValueLabelChange without checking for non-null required valuesset the value to the changeName of the updated FieldDefinition.value of change}Name of the updated FieldDefinition.Value after the change.Value before the change.Key of the updated values.Value after the change.of()
factory method for an instance of ChangeEnumValueLabelChangeBuilderof
(ChangeEnumValueLabelChange template) create builder for ChangeEnumValueLabelChange instancepreviousValue
(String previousValue) Value before the change.Key of the updated values.
-
Constructor Details
-
ChangeEnumValueLabelChangeBuilder
public ChangeEnumValueLabelChangeBuilder()
-
-
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
-
fieldName
Name of the updated FieldDefinition.
- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
valueKey
Key of the updated values.
- Parameters:
valueKey
- 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
-
getFieldName
Name of the updated FieldDefinition.
- Returns:
- fieldName
-
getValueKey
Key of the updated values.
- Returns:
- valueKey
-
build
builds ChangeEnumValueLabelChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeEnumValueLabelChange>
- Returns:
- ChangeEnumValueLabelChange
-
buildUnchecked
builds ChangeEnumValueLabelChange without checking for non-null required values- Returns:
- ChangeEnumValueLabelChange
-
of
factory method for an instance of ChangeEnumValueLabelChangeBuilder- Returns:
- builder
-
of
create builder for ChangeEnumValueLabelChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-