Class StagedOrderTransitionLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderTransitionLineItemStateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderTransitionLineItemStateAction>
public class StagedOrderTransitionLineItemStateActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderTransitionLineItemStateAction>
StagedOrderTransitionLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderTransitionLineItemStateAction stagedOrderTransitionLineItemStateAction = StagedOrderTransitionLineItemStateAction.builder()
.lineItemId("{lineItemId}")
.quantity(0.3)
.fromState(fromStateBuilder -> fromStateBuilder)
.toState(toStateBuilder -> toStateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactualTransitionDate
(ZonedDateTime actualTransitionDate) set the value to the actualTransitionDatebuild()
builds StagedOrderTransitionLineItemStateAction with checking for non-null required valuesbuilds StagedOrderTransitionLineItemStateAction without checking for non-null required valuesfromState
(StateResourceIdentifier fromState) ResourceIdentifier to a State.ResourceIdentifier to a State.value of actualTransitionDate}ResourceIdentifier to a State.value of lineItemId}value of quantity}ResourceIdentifier to a State.lineItemId
(String lineItemId) set the value to the lineItemIdof()
factory method for an instance of StagedOrderTransitionLineItemStateActionBuilderof
(StagedOrderTransitionLineItemStateAction template) create builder for StagedOrderTransitionLineItemStateAction instanceset the value to the quantitytoState
(StateResourceIdentifier toState) ResourceIdentifier to a State.ResourceIdentifier to a State.ResourceIdentifier to a State.ResourceIdentifier to a State.
-
Constructor Details
-
StagedOrderTransitionLineItemStateActionBuilder
-
-
Method Details
-
lineItemId
set the value to the lineItemId- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
fromState
public StagedOrderTransitionLineItemStateActionBuilder fromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
withFromState
public StagedOrderTransitionLineItemStateActionBuilder withFromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
fromState
ResourceIdentifier to a State.
- Parameters:
fromState
- value to be set- Returns:
- Builder
-
toState
public StagedOrderTransitionLineItemStateActionBuilder toState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
withToState
public StagedOrderTransitionLineItemStateActionBuilder withToState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
toState
ResourceIdentifier to a State.
- Parameters:
toState
- value to be set- Returns:
- Builder
-
actualTransitionDate
public StagedOrderTransitionLineItemStateActionBuilder actualTransitionDate(@Nullable ZonedDateTime actualTransitionDate) set the value to the actualTransitionDate- Parameters:
actualTransitionDate
- value to be set- Returns:
- Builder
-
getLineItemId
value of lineItemId}- Returns:
- lineItemId
-
getQuantity
value of quantity}- Returns:
- quantity
-
getFromState
ResourceIdentifier to a State.
- Returns:
- fromState
-
getToState
ResourceIdentifier to a State.
- Returns:
- toState
-
getActualTransitionDate
value of actualTransitionDate}- Returns:
- actualTransitionDate
-
build
builds StagedOrderTransitionLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderTransitionLineItemStateAction>
- Returns:
- StagedOrderTransitionLineItemStateAction
-
buildUnchecked
builds StagedOrderTransitionLineItemStateAction without checking for non-null required values- Returns:
- StagedOrderTransitionLineItemStateAction
-
of
factory method for an instance of StagedOrderTransitionLineItemStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderTransitionLineItemStateActionBuilder of(StagedOrderTransitionLineItemStateAction template) create builder for StagedOrderTransitionLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-