Class RemoveAttributeDefinitionChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveAttributeDefinitionChangeBuilder
- All Implemented Interfaces:
Builder<RemoveAttributeDefinitionChange>
public class RemoveAttributeDefinitionChangeBuilder
extends Object
implements Builder<RemoveAttributeDefinitionChange>
RemoveAttributeDefinitionChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveAttributeDefinitionChange removeAttributeDefinitionChange = RemoveAttributeDefinitionChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveAttributeDefinitionChange with checking for non-null required valuesbuilds RemoveAttributeDefinitionChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.of()
factory method for an instance of RemoveAttributeDefinitionChangeBuilderof
(RemoveAttributeDefinitionChange template) create builder for RemoveAttributeDefinitionChange instancepreviousValue
(AttributeDefinition previousValue) Value before the change.Value before the change.Value before the change.
-
Constructor Details
-
RemoveAttributeDefinitionChangeBuilder
public RemoveAttributeDefinitionChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveAttributeDefinitionChangeBuilder previousValue(Function<AttributeDefinitionBuilder, AttributeDefinitionBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public RemoveAttributeDefinitionChangeBuilder withPreviousValue(Function<AttributeDefinitionBuilder, AttributeDefinition> 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
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds RemoveAttributeDefinitionChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveAttributeDefinitionChange>
- Returns:
- RemoveAttributeDefinitionChange
-
buildUnchecked
builds RemoveAttributeDefinitionChange without checking for non-null required values- Returns:
- RemoveAttributeDefinitionChange
-
of
factory method for an instance of RemoveAttributeDefinitionChangeBuilder- Returns:
- builder
-
of
create builder for RemoveAttributeDefinitionChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-