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