Class RemoveEnumValuesChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveEnumValuesChangeBuilder
- All Implemented Interfaces:
Builder<RemoveEnumValuesChange>
public class RemoveEnumValuesChangeBuilder
extends Object
implements Builder<RemoveEnumValuesChange>
RemoveEnumValuesChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveEnumValuesChange removeEnumValuesChange = RemoveEnumValuesChange.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 RemoveEnumValuesChange with checking for non-null required valuesbuilds RemoveEnumValuesChange 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 RemoveEnumValuesChangeBuilderof
(RemoveEnumValuesChange template) create builder for RemoveEnumValuesChange instancepreviousValue
(EnumValue previousValue) Value before the change.Value before the change.withPreviousValue
(Function<EnumValueBuilder, EnumValue> builder) Value before the change.
-
Constructor Details
-
RemoveEnumValuesChangeBuilder
public RemoveEnumValuesChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveEnumValuesChangeBuilder previousValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public RemoveEnumValuesChangeBuilder withPreviousValue(Function<EnumValueBuilder, EnumValue> 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 RemoveEnumValuesChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveEnumValuesChange>
- Returns:
- RemoveEnumValuesChange
-
buildUnchecked
builds RemoveEnumValuesChange without checking for non-null required values- Returns:
- RemoveEnumValuesChange
-
of
factory method for an instance of RemoveEnumValuesChangeBuilder- Returns:
- builder
-
of
create builder for RemoveEnumValuesChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-