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