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