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