Class StagedOrderImportCustomLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderImportCustomLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderImportCustomLineItemStateAction>
public class StagedOrderImportCustomLineItemStateActionBuilder
extends Object
implements Builder<StagedOrderImportCustomLineItemStateAction>
StagedOrderImportCustomLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderImportCustomLineItemStateAction stagedOrderImportCustomLineItemStateAction = StagedOrderImportCustomLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.build()builds StagedOrderImportCustomLineItemStateAction with checking for non-null required valuesbuilds StagedOrderImportCustomLineItemStateAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.idof the CustomLineItem to update.keyof the CustomLineItem to update.getState()New status of the Custom Line Items.of()factory method for an instance of StagedOrderImportCustomLineItemStateActionBuilderof(StagedOrderImportCustomLineItemStateAction template) create builder for StagedOrderImportCustomLineItemStateAction instanceNew status of the Custom Line Items.plusState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.setState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.New status of the Custom Line Items.New status of the Custom Line Items.withState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.
-
Constructor Details
-
StagedOrderImportCustomLineItemStateActionBuilder
public StagedOrderImportCustomLineItemStateActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderImportCustomLineItemStateActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderImportCustomLineItemStateActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
state
New status of the Custom Line Items.
- Parameters:
state- value to be set- Returns:
- Builder
-
state
New status of the Custom Line Items.
- Parameters:
state- value to be set- Returns:
- Builder
-
plusState
New status of the Custom Line Items.
- Parameters:
state- value to be set- Returns:
- Builder
-
plusState
public StagedOrderImportCustomLineItemStateActionBuilder plusState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
withState
public StagedOrderImportCustomLineItemStateActionBuilder withState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
addState
public StagedOrderImportCustomLineItemStateActionBuilder addState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
setState
public StagedOrderImportCustomLineItemStateActionBuilder setState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.
- Parameters:
builder- function to build the state value- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getState
New status of the Custom Line Items.
- Returns:
- state
-
build
builds StagedOrderImportCustomLineItemStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderImportCustomLineItemStateAction>- Returns:
- StagedOrderImportCustomLineItemStateAction
-
buildUnchecked
builds StagedOrderImportCustomLineItemStateAction without checking for non-null required values- Returns:
- StagedOrderImportCustomLineItemStateAction
-
of
factory method for an instance of StagedOrderImportCustomLineItemStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderImportCustomLineItemStateActionBuilder of(StagedOrderImportCustomLineItemStateAction template) create builder for StagedOrderImportCustomLineItemStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-