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