Class SetReturnShipmentStateChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetReturnShipmentStateChangeBuilder
- All Implemented Interfaces:
Builder<SetReturnShipmentStateChange>
public class SetReturnShipmentStateChangeBuilder
extends Object
implements Builder<SetReturnShipmentStateChange>
SetReturnShipmentStateChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetReturnShipmentStateChange setReturnShipmentStateChange = SetReturnShipmentStateChange.builder()
.change("{change}")
.previousValue(ReturnShipmentState.ADVISED)
.nextValue(ReturnShipmentState.ADVISED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetReturnShipmentStateChange with checking for non-null required valuesbuilds SetReturnShipmentStateChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(ReturnShipmentState nextValue) Value after the change.of()
factory method for an instance of SetReturnShipmentStateChangeBuilderof
(SetReturnShipmentStateChange template) create builder for SetReturnShipmentStateChange instancepreviousValue
(ReturnShipmentState previousValue) Value before the change.
-
Constructor Details
-
SetReturnShipmentStateChangeBuilder
public SetReturnShipmentStateChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetReturnShipmentStateChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetReturnShipmentStateChange>
- Returns:
- SetReturnShipmentStateChange
-
buildUnchecked
builds SetReturnShipmentStateChange without checking for non-null required values- Returns:
- SetReturnShipmentStateChange
-
of
factory method for an instance of SetReturnShipmentStateChangeBuilder- Returns:
- builder
-
of
create builder for SetReturnShipmentStateChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-