Class RemoveLocalizedEnumValuesChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveLocalizedEnumValuesChangeBuilder
- All Implemented Interfaces:
Builder<RemoveLocalizedEnumValuesChange>
public class RemoveLocalizedEnumValuesChangeBuilder
extends Object
implements Builder<RemoveLocalizedEnumValuesChange>
RemoveLocalizedEnumValuesChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveLocalizedEnumValuesChange removeLocalizedEnumValuesChange = RemoveLocalizedEnumValuesChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.attributeName("{attributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the updated AttributeDefinition.build()
builds RemoveLocalizedEnumValuesChange with checking for non-null required valuesbuilds RemoveLocalizedEnumValuesChange without checking for non-null required valuesset the value to the changeName of the updated AttributeDefinition.value of change}Value before the change.of()
factory method for an instance of RemoveLocalizedEnumValuesChangeBuilderof
(RemoveLocalizedEnumValuesChange template) create builder for RemoveLocalizedEnumValuesChange instancepreviousValue
(LocalizedEnumValue previousValue) Value before the change.Value before the change.Value before the change.
-
Constructor Details
-
RemoveLocalizedEnumValuesChangeBuilder
public RemoveLocalizedEnumValuesChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveLocalizedEnumValuesChangeBuilder previousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public RemoveLocalizedEnumValuesChangeBuilder withPreviousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValue> 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
-
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
-
getAttributeName
Name of the updated AttributeDefinition.
- Returns:
- attributeName
-
build
builds RemoveLocalizedEnumValuesChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveLocalizedEnumValuesChange>
- Returns:
- RemoveLocalizedEnumValuesChange
-
buildUnchecked
builds RemoveLocalizedEnumValuesChange without checking for non-null required values- Returns:
- RemoveLocalizedEnumValuesChange
-
of
factory method for an instance of RemoveLocalizedEnumValuesChangeBuilder- Returns:
- builder
-
of
create builder for RemoveLocalizedEnumValuesChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-