Class OrderImportCustomLineItemStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderImportCustomLineItemStateActionBuilder
- All Implemented Interfaces:
Builder<OrderImportCustomLineItemStateAction>
public class OrderImportCustomLineItemStateActionBuilder
extends Object
implements Builder<OrderImportCustomLineItemStateAction>
OrderImportCustomLineItemStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderImportCustomLineItemStateAction orderImportCustomLineItemStateAction = OrderImportCustomLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddState
(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.build()
builds OrderImportCustomLineItemStateAction with checking for non-null required valuesbuilds OrderImportCustomLineItemStateAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.id
of the CustomLineItem to update.key
of the CustomLineItem to update.getState()
New status of the Custom Line Items.of()
factory method for an instance of OrderImportCustomLineItemStateActionBuilderof
(OrderImportCustomLineItemStateAction template) create builder for OrderImportCustomLineItemStateAction 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
-
OrderImportCustomLineItemStateActionBuilder
public OrderImportCustomLineItemStateActionBuilder()
-
-
Method Details
-
customLineItemId
public OrderImportCustomLineItemStateActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderImportCustomLineItemStateActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is 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 OrderImportCustomLineItemStateActionBuilder plusState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public OrderImportCustomLineItemStateActionBuilder withState(Function<ItemStateBuilder, ItemStateBuilder> builder) New status of the Custom Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
addState
public OrderImportCustomLineItemStateActionBuilder addState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
setState
public OrderImportCustomLineItemStateActionBuilder setState(Function<ItemStateBuilder, ItemState> builder) New status of the Custom Line Items.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getState
New status of the Custom Line Items.
- Returns:
- state
-
build
builds OrderImportCustomLineItemStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderImportCustomLineItemStateAction>
- Returns:
- OrderImportCustomLineItemStateAction
-
buildUnchecked
builds OrderImportCustomLineItemStateAction without checking for non-null required values- Returns:
- OrderImportCustomLineItemStateAction
-
of
factory method for an instance of OrderImportCustomLineItemStateActionBuilder- Returns:
- builder
-
of
public static OrderImportCustomLineItemStateActionBuilder of(OrderImportCustomLineItemStateAction template) create builder for OrderImportCustomLineItemStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-