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