Class OrderImportLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderImportLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<OrderImportLineItemStateAction>
public class OrderImportLineItemStateActionBuilder
extends Object
implements Builder<OrderImportLineItemStateAction>
OrderImportLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderImportLineItemStateAction orderImportLineItemStateAction = OrderImportLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddState
(Function<ItemStateBuilder, ItemState> builder) New status of the Line Items.build()
builds OrderImportLineItemStateAction with checking for non-null required valuesbuilds OrderImportLineItemStateAction without checking for non-null required valuesid
of the LineItem to update.key
of the LineItem to update.getState()
New status of the Line Items.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of OrderImportLineItemStateActionBuilderof
(OrderImportLineItemStateAction template) create builder for OrderImportLineItemStateAction instanceNew status of the Line Items.plusState
(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.setState
(Function<ItemStateBuilder, ItemState> builder) New status of the Line Items.New status of the Line Items.New status of the Line Items.withState
(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.
-
Constructor Details
-
OrderImportLineItemStateActionBuilder
public OrderImportLineItemStateActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
state
New status of the Line Items.
- Parameters:
state
- value to be set- Returns:
- Builder
-
state
New status of the Line Items.
- Parameters:
state
- value to be set- Returns:
- Builder
-
plusState
New status of the Line Items.
- Parameters:
state
- value to be set- Returns:
- Builder
-
plusState
public OrderImportLineItemStateActionBuilder plusState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public OrderImportLineItemStateActionBuilder withState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
addState
New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
setState
New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getState
New status of the Line Items.
- Returns:
- state
-
build
builds OrderImportLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderImportLineItemStateAction>
- Returns:
- OrderImportLineItemStateAction
-
buildUnchecked
builds OrderImportLineItemStateAction without checking for non-null required values- Returns:
- OrderImportLineItemStateAction
-
of
factory method for an instance of OrderImportLineItemStateActionBuilder- Returns:
- builder
-
of
create builder for OrderImportLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-