Class OrderImportRequestBuilder
java.lang.Object
com.commercetools.importapi.models.importrequests.OrderImportRequestBuilder
- All Implemented Interfaces:
Builder<OrderImportRequest>
OrderImportRequestBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderImportRequest orderImportRequest = OrderImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddResources
(Function<OrderImportBuilder, OrderImport> builder) The order import resources of this request.build()
builds OrderImportRequest with checking for non-null required valuesbuilds OrderImportRequest without checking for non-null required valuesThe order import resources of this request.static OrderImportRequestBuilder
of()
factory method for an instance of OrderImportRequestBuilderstatic OrderImportRequestBuilder
of
(OrderImportRequest template) create builder for OrderImportRequest instanceplusResources
(OrderImport... resources) The order import resources of this request.The order import resources of this request.resources
(OrderImport... resources) The order import resources of this request.resources
(List<OrderImport> resources) The order import resources of this request.setResources
(Function<OrderImportBuilder, OrderImport> builder) The order import resources of this request.The order import resources of this request.
-
Constructor Details
-
OrderImportRequestBuilder
public OrderImportRequestBuilder()
-
-
Method Details
-
resources
The order import resources of this request.
- Parameters:
resources
- value to be set- Returns:
- Builder
-
resources
The order import resources of this request.
- Parameters:
resources
- value to be set- Returns:
- Builder
-
plusResources
The order import resources of this request.
- Parameters:
resources
- value to be set- Returns:
- Builder
-
plusResources
public OrderImportRequestBuilder plusResources(Function<OrderImportBuilder, OrderImportBuilder> builder) The order import resources of this request.
- Parameters:
builder
- function to build the resources value- Returns:
- Builder
-
withResources
public OrderImportRequestBuilder withResources(Function<OrderImportBuilder, OrderImportBuilder> builder) The order import resources of this request.
- Parameters:
builder
- function to build the resources value- Returns:
- Builder
-
addResources
The order import resources of this request.
- Parameters:
builder
- function to build the resources value- Returns:
- Builder
-
setResources
The order import resources of this request.
- Parameters:
builder
- function to build the resources value- Returns:
- Builder
-
getResources
The order import resources of this request.
- Returns:
- resources
-
build
builds OrderImportRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderImportRequest>
- Returns:
- OrderImportRequest
-
buildUnchecked
builds OrderImportRequest without checking for non-null required values- Returns:
- OrderImportRequest
-
of
factory method for an instance of OrderImportRequestBuilder- Returns:
- builder
-
of
create builder for OrderImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-