Class OrderPatchImportRequestBuilder
java.lang.Object
com.commercetools.importapi.models.importrequests.OrderPatchImportRequestBuilder
- All Implemented Interfaces:
Builder<OrderPatchImportRequest>
public class OrderPatchImportRequestBuilder
extends Object
implements Builder<OrderPatchImportRequest>
OrderPatchImportRequestBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderPatchImportRequest orderPatchImportRequest = OrderPatchImportRequest.builder()
.plusPatches(patchesBuilder -> patchesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe order patches of this requestbuild()
builds OrderPatchImportRequest with checking for non-null required valuesbuilds OrderPatchImportRequest without checking for non-null required valuesThe order patches of this requestof()
factory method for an instance of OrderPatchImportRequestBuilderof
(OrderPatchImportRequest template) create builder for OrderPatchImportRequest instancepatches
(OrderPatchImport... patches) The order patches of this requestpatches
(List<OrderPatchImport> patches) The order patches of this requestplusPatches
(OrderPatchImport... patches) The order patches of this requestThe order patches of this requestThe order patches of this requestThe order patches of this request
-
Constructor Details
-
OrderPatchImportRequestBuilder
public OrderPatchImportRequestBuilder()
-
-
Method Details
-
patches
The order patches of this request
- Parameters:
patches
- value to be set- Returns:
- Builder
-
patches
The order patches of this request
- Parameters:
patches
- value to be set- Returns:
- Builder
-
plusPatches
The order patches of this request
- Parameters:
patches
- value to be set- Returns:
- Builder
-
plusPatches
public OrderPatchImportRequestBuilder plusPatches(Function<OrderPatchImportBuilder, OrderPatchImportBuilder> builder) The order patches of this request
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
withPatches
public OrderPatchImportRequestBuilder withPatches(Function<OrderPatchImportBuilder, OrderPatchImportBuilder> builder) The order patches of this request
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
addPatches
public OrderPatchImportRequestBuilder addPatches(Function<OrderPatchImportBuilder, OrderPatchImport> builder) The order patches of this request
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
setPatches
public OrderPatchImportRequestBuilder setPatches(Function<OrderPatchImportBuilder, OrderPatchImport> builder) The order patches of this request
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
getPatches
The order patches of this request
- Returns:
- patches
-
build
builds OrderPatchImportRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderPatchImportRequest>
- Returns:
- OrderPatchImportRequest
-
buildUnchecked
builds OrderPatchImportRequest without checking for non-null required values- Returns:
- OrderPatchImportRequest
-
of
factory method for an instance of OrderPatchImportRequestBuilder- Returns:
- builder
-
of
create builder for OrderPatchImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-