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