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