Class OrderTransitionCustomLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderTransitionCustomLineItemStateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderTransitionCustomLineItemStateAction>
public class OrderTransitionCustomLineItemStateActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<OrderTransitionCustomLineItemStateAction>
OrderTransitionCustomLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderTransitionCustomLineItemStateAction orderTransitionCustomLineItemStateAction = OrderTransitionCustomLineItemStateAction.builder()
.customLineItemId("{customLineItemId}")
.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 OrderTransitionCustomLineItemStateAction with checking for non-null required valuesbuilds OrderTransitionCustomLineItemStateAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) set the value to the customLineItemIdfromState
(StateResourceIdentifier fromState) ResourceIdentifier to a State.ResourceIdentifier to a State.value of actualTransitionDate}value of customLineItemId}ResourceIdentifier to a State.value of quantity}ResourceIdentifier to a State.of()
factory method for an instance of OrderTransitionCustomLineItemStateActionBuilderof
(OrderTransitionCustomLineItemStateAction template) create builder for OrderTransitionCustomLineItemStateAction 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
-
OrderTransitionCustomLineItemStateActionBuilder
-
-
Method Details
-
customLineItemId
set the value to the customLineItemId- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
fromState
public OrderTransitionCustomLineItemStateActionBuilder fromState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the fromState value- Returns:
- Builder
-
withFromState
public OrderTransitionCustomLineItemStateActionBuilder 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 OrderTransitionCustomLineItemStateActionBuilder toState(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the toState value- Returns:
- Builder
-
withToState
public OrderTransitionCustomLineItemStateActionBuilder 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 OrderTransitionCustomLineItemStateActionBuilder actualTransitionDate(@Nullable ZonedDateTime actualTransitionDate) set the value to the actualTransitionDate- Parameters:
actualTransitionDate
- value to be set- Returns:
- Builder
-
getCustomLineItemId
value of customLineItemId}- Returns:
- customLineItemId
-
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 OrderTransitionCustomLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<OrderTransitionCustomLineItemStateAction>
- Returns:
- OrderTransitionCustomLineItemStateAction
-
buildUnchecked
builds OrderTransitionCustomLineItemStateAction without checking for non-null required values- Returns:
- OrderTransitionCustomLineItemStateAction
-
of
factory method for an instance of OrderTransitionCustomLineItemStateActionBuilder- Returns:
- builder
-
of
public static OrderTransitionCustomLineItemStateActionBuilder of(OrderTransitionCustomLineItemStateAction template) create builder for OrderTransitionCustomLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-