Class ProductVariantPatchRequestBuilder
java.lang.Object
com.commercetools.importapi.models.importrequests.ProductVariantPatchRequestBuilder
- All Implemented Interfaces:
Builder<ProductVariantPatchRequest>
public class ProductVariantPatchRequestBuilder
extends Object
implements Builder<ProductVariantPatchRequest>
ProductVariantPatchRequestBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantPatchRequest productVariantPatchRequest = ProductVariantPatchRequest.builder()
.plusPatches(patchesBuilder -> patchesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe product variant patches of this request.build()
builds ProductVariantPatchRequest with checking for non-null required valuesbuilds ProductVariantPatchRequest without checking for non-null required valuesThe product variant patches of this request.of()
factory method for an instance of ProductVariantPatchRequestBuilderof
(ProductVariantPatchRequest template) create builder for ProductVariantPatchRequest instancepatches
(ProductVariantPatch... patches) The product variant patches of this request.patches
(List<ProductVariantPatch> patches) The product variant patches of this request.plusPatches
(ProductVariantPatch... patches) The product variant patches of this request.The product variant patches of this request.The product variant patches of this request.The product variant patches of this request.
-
Constructor Details
-
ProductVariantPatchRequestBuilder
public ProductVariantPatchRequestBuilder()
-
-
Method Details
-
patches
The product variant patches of this request.
- Parameters:
patches
- value to be set- Returns:
- Builder
-
patches
The product variant patches of this request.
- Parameters:
patches
- value to be set- Returns:
- Builder
-
plusPatches
The product variant patches of this request.
- Parameters:
patches
- value to be set- Returns:
- Builder
-
plusPatches
public ProductVariantPatchRequestBuilder plusPatches(Function<ProductVariantPatchBuilder, ProductVariantPatchBuilder> builder) The product variant patches of this request.
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
withPatches
public ProductVariantPatchRequestBuilder withPatches(Function<ProductVariantPatchBuilder, ProductVariantPatchBuilder> builder) The product variant patches of this request.
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
addPatches
public ProductVariantPatchRequestBuilder addPatches(Function<ProductVariantPatchBuilder, ProductVariantPatch> builder) The product variant patches of this request.
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
setPatches
public ProductVariantPatchRequestBuilder setPatches(Function<ProductVariantPatchBuilder, ProductVariantPatch> builder) The product variant patches of this request.
- Parameters:
builder
- function to build the patches value- Returns:
- Builder
-
getPatches
The product variant patches of this request.
- Returns:
- patches
-
build
builds ProductVariantPatchRequest with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantPatchRequest>
- Returns:
- ProductVariantPatchRequest
-
buildUnchecked
builds ProductVariantPatchRequest without checking for non-null required values- Returns:
- ProductVariantPatchRequest
-
of
factory method for an instance of ProductVariantPatchRequestBuilder- Returns:
- builder
-
of
create builder for ProductVariantPatchRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-