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