Class ChangeLocalizedEnumValueLabelChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeLocalizedEnumValueLabelChangeBuilder
- All Implemented Interfaces:
Builder<ChangeLocalizedEnumValueLabelChange>
public class ChangeLocalizedEnumValueLabelChangeBuilder
extends Object
implements Builder<ChangeLocalizedEnumValueLabelChange>
ChangeLocalizedEnumValueLabelChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeLocalizedEnumValueLabelChange changeLocalizedEnumValueLabelChange = ChangeLocalizedEnumValueLabelChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.fieldName("{fieldName}")
.attributeName("{attributeName}")
.valueKey("{valueKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the updated AttributeDefinition; only present on changes to Product Types.build()
builds ChangeLocalizedEnumValueLabelChange with checking for non-null required valuesbuilds ChangeLocalizedEnumValueLabelChange 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.Key of the updated values.nextValue
(LocalizedString nextValue) Value after the change.Value after the change.of()
factory method for an instance of ChangeLocalizedEnumValueLabelChangeBuilderof
(ChangeLocalizedEnumValueLabelChange template) create builder for ChangeLocalizedEnumValueLabelChange instancepreviousValue
(LocalizedString previousValue) Value before the change.Value before the change.Key of the updated values.Value after the change.Value before the change.
-
Constructor Details
-
ChangeLocalizedEnumValueLabelChangeBuilder
public ChangeLocalizedEnumValueLabelChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public ChangeLocalizedEnumValueLabelChangeBuilder previousValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangeLocalizedEnumValueLabelChangeBuilder withPreviousValue(Function<LocalizedStringBuilder, LocalizedString> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
public ChangeLocalizedEnumValueLabelChangeBuilder nextValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangeLocalizedEnumValueLabelChangeBuilder withNextValue(Function<LocalizedStringBuilder, LocalizedString> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- 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
-
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; only present on changes to Types.
- Returns:
- fieldName
-
getAttributeName
Name of the updated AttributeDefinition; only present on changes to Product Types.
- Returns:
- attributeName
-
getValueKey
Key of the updated values.
- Returns:
- valueKey
-
build
builds ChangeLocalizedEnumValueLabelChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeLocalizedEnumValueLabelChange>
- Returns:
- ChangeLocalizedEnumValueLabelChange
-
buildUnchecked
builds ChangeLocalizedEnumValueLabelChange without checking for non-null required values- Returns:
- ChangeLocalizedEnumValueLabelChange
-
of
factory method for an instance of ChangeLocalizedEnumValueLabelChangeBuilder- Returns:
- builder
-
of
public static ChangeLocalizedEnumValueLabelChangeBuilder of(ChangeLocalizedEnumValueLabelChange template) create builder for ChangeLocalizedEnumValueLabelChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-