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