Class OrderSetReturnInfoActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetReturnInfoActionBuilder
- All Implemented Interfaces:
Builder<OrderSetReturnInfoAction>
public class OrderSetReturnInfoActionBuilder
extends Object
implements Builder<OrderSetReturnInfoAction>
OrderSetReturnInfoActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnInfoAction orderSetReturnInfoAction = OrderSetReturnInfoAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds OrderSetReturnInfoAction with checking for non-null required valuesbuilds OrderSetReturnInfoAction without checking for non-null required valuesgetItems()
Value to set.items
(ReturnInfoDraft... items) Value to set.items
(List<ReturnInfoDraft> items) Value to set.of()
factory method for an instance of OrderSetReturnInfoActionBuilderof
(OrderSetReturnInfoAction template) create builder for OrderSetReturnInfoAction instanceplusItems
(ReturnInfoDraft... items) Value to set.Value to set.Value to set.Value to set.
-
Constructor Details
-
OrderSetReturnInfoActionBuilder
public OrderSetReturnInfoActionBuilder()
-
-
Method Details
-
items
Value to set. If empty, any existing value is removed.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Value to set. If empty, any existing value is removed.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Value to set. If empty, any existing value is removed.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public OrderSetReturnInfoActionBuilder plusItems(Function<ReturnInfoDraftBuilder, ReturnInfoDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public OrderSetReturnInfoActionBuilder withItems(Function<ReturnInfoDraftBuilder, ReturnInfoDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
public OrderSetReturnInfoActionBuilder addItems(Function<ReturnInfoDraftBuilder, ReturnInfoDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
public OrderSetReturnInfoActionBuilder setItems(Function<ReturnInfoDraftBuilder, ReturnInfoDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
getItems
Value to set. If empty, any existing value is removed.
- Returns:
- items
-
build
builds OrderSetReturnInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetReturnInfoAction>
- Returns:
- OrderSetReturnInfoAction
-
buildUnchecked
builds OrderSetReturnInfoAction without checking for non-null required values- Returns:
- OrderSetReturnInfoAction
-
of
factory method for an instance of OrderSetReturnInfoActionBuilder- Returns:
- builder
-
of
create builder for OrderSetReturnInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-