Class ChangeInputHintChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeInputHintChangeBuilder
- All Implemented Interfaces:
Builder<ChangeInputHintChange>
ChangeInputHintChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeInputHintChange changeInputHintChange = ChangeInputHintChange.builder()
.change("{change}")
.previousValue(TextInputHint.SINGLE_LINE)
.nextValue(TextInputHint.SINGLE_LINE)
.fieldName("{fieldName}")
.attributeName("{attributeName}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Name of the updated AttributeDefinition; only present on changes to Product Types.build()builds ChangeInputHintChange with checking for non-null required valuesbuilds ChangeInputHintChange without checking for non-null required valuesset the value to the changeName of the updated FieldDefinition; only present on changes to Types.Name of the updated AttributeDefinition; only present on changes to Product Types.value of change}Name of the updated FieldDefinition; only present on changes to Types.Value after the change.Value before the change.nextValue(TextInputHint nextValue) Value after the change.static ChangeInputHintChangeBuilderof()factory method for an instance of ChangeInputHintChangeBuilderstatic ChangeInputHintChangeBuilderof(ChangeInputHintChange template) create builder for ChangeInputHintChange instancepreviousValue(TextInputHint previousValue) Value before the change.
-
Constructor Details
-
ChangeInputHintChangeBuilder
public ChangeInputHintChangeBuilder()
-
-
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; only present on changes to Types.
- Parameters:
fieldName- value to be set- Returns:
- Builder
-
attributeName
Name of the updated AttributeDefinition; only present on changes to Product Types.
- 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
-
getFieldName
Name of the updated FieldDefinition; only present on changes to Types.
- Returns:
- fieldName
-
getAttributeName
Name of the updated AttributeDefinition; only present on changes to Product Types.
- Returns:
- attributeName
-
build
builds ChangeInputHintChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ChangeInputHintChange>- Returns:
- ChangeInputHintChange
-
buildUnchecked
builds ChangeInputHintChange without checking for non-null required values- Returns:
- ChangeInputHintChange
-
of
factory method for an instance of ChangeInputHintChangeBuilder- Returns:
- builder
-
of
create builder for ChangeInputHintChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-