Class AddLocalizedEnumValueChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddLocalizedEnumValueChangeBuilder
- All Implemented Interfaces:
Builder<AddLocalizedEnumValueChange>
public class AddLocalizedEnumValueChangeBuilder
extends Object
implements Builder<AddLocalizedEnumValueChange>
AddLocalizedEnumValueChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddLocalizedEnumValueChange addLocalizedEnumValueChange = AddLocalizedEnumValueChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.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 AddLocalizedEnumValueChange with checking for non-null required valuesbuilds AddLocalizedEnumValueChange 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.nextValue(AttributeLocalizedEnumValue nextValue) Value after the change.Value after the change.of()factory method for an instance of AddLocalizedEnumValueChangeBuilderof(AddLocalizedEnumValueChange template) create builder for AddLocalizedEnumValueChange instanceValue after the change.
-
Constructor Details
-
AddLocalizedEnumValueChangeBuilder
public AddLocalizedEnumValueChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
nextValue
public AddLocalizedEnumValueChangeBuilder nextValue(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValueBuilder> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public AddLocalizedEnumValueChangeBuilder withNextValue(Function<AttributeLocalizedEnumValueBuilder, AttributeLocalizedEnumValue> 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
-
getChange
value of change}- Returns:
- change
-
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 AddLocalizedEnumValueChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<AddLocalizedEnumValueChange>- Returns:
- AddLocalizedEnumValueChange
-
buildUnchecked
builds AddLocalizedEnumValueChange without checking for non-null required values- Returns:
- AddLocalizedEnumValueChange
-
of
factory method for an instance of AddLocalizedEnumValueChangeBuilder- Returns:
- builder
-
of
create builder for AddLocalizedEnumValueChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-