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