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