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