Class StagedOrderImportLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderImportLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderImportLineItemStateAction>
public class StagedOrderImportLineItemStateActionBuilder
extends Object
implements Builder<StagedOrderImportLineItemStateAction>
StagedOrderImportLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderImportLineItemStateAction stagedOrderImportLineItemStateAction = StagedOrderImportLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddState
(Function<ItemStateBuilder, ItemState> builder) New status of the Line Items.build()
builds StagedOrderImportLineItemStateAction with checking for non-null required valuesbuilds StagedOrderImportLineItemStateAction 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 StagedOrderImportLineItemStateActionBuilderof
(StagedOrderImportLineItemStateAction template) create builder for StagedOrderImportLineItemStateAction 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
-
StagedOrderImportLineItemStateActionBuilder
public StagedOrderImportLineItemStateActionBuilder()
-
-
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 StagedOrderImportLineItemStateActionBuilder plusState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public StagedOrderImportLineItemStateActionBuilder withState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
addState
public StagedOrderImportLineItemStateActionBuilder addState(Function<ItemStateBuilder, ItemState> builder) New status of the Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
setState
public StagedOrderImportLineItemStateActionBuilder setState(Function<ItemStateBuilder, ItemState> builder) 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 StagedOrderImportLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderImportLineItemStateAction>
- Returns:
- StagedOrderImportLineItemStateAction
-
buildUnchecked
builds StagedOrderImportLineItemStateAction without checking for non-null required values- Returns:
- StagedOrderImportLineItemStateAction
-
of
factory method for an instance of StagedOrderImportLineItemStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderImportLineItemStateActionBuilder of(StagedOrderImportLineItemStateAction template) create builder for StagedOrderImportLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-