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