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