Class CounterDraftBuilder
java.lang.Object
com.commercetools.api.models.recurring_order.CounterDraftBuilder
- All Implemented Interfaces:
Builder<CounterDraft>
CounterDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CounterDraft counterDraft = CounterDraft.builder()
.totalToSkip(1)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CounterDraft with checking for non-null required valuesbuilds CounterDraft without checking for non-null required valuesNumber of Orders that will be skipped.static CounterDraftBuilder
of()
factory method for an instance of CounterDraftBuilderstatic CounterDraftBuilder
of
(CounterDraft template) create builder for CounterDraft instancetotalToSkip
(Integer totalToSkip) Number of Orders that will be skipped.
-
Constructor Details
-
CounterDraftBuilder
public CounterDraftBuilder()
-
-
Method Details
-
totalToSkip
Number of Orders that will be skipped.
- Parameters:
totalToSkip
- value to be set- Returns:
- Builder
-
getTotalToSkip
Number of Orders that will be skipped.
- Returns:
- totalToSkip
-
build
builds CounterDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<CounterDraft>
- Returns:
- CounterDraft
-
buildUnchecked
builds CounterDraft without checking for non-null required values- Returns:
- CounterDraft
-
of
factory method for an instance of CounterDraftBuilder- Returns:
- builder
-
of
create builder for CounterDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-