Package com.commercetools.api.models.me
Class MyOrderFromQuoteDraftBuilder
java.lang.Object
com.commercetools.api.models.me.MyOrderFromQuoteDraftBuilder
- All Implemented Interfaces:
Builder<MyOrderFromQuoteDraft>
MyOrderFromQuoteDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyOrderFromQuoteDraft myOrderFromQuoteDraft = MyOrderFromQuoteDraft.builder()
.id("{id}")
.version(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyOrderFromQuoteDraft with checking for non-null required valuesbuilds MyOrderFromQuoteDraft without checking for non-null required valuesgetId()
id
of the Quote from which the Order is created.Set totrue
, if thequoteState
of the referenced Quote should be set toAccepted
.Currentversion
of the Quote from which the Order is created.id
of the Quote from which the Order is created.static MyOrderFromQuoteDraftBuilder
of()
factory method for an instance of MyOrderFromQuoteDraftBuilderstatic MyOrderFromQuoteDraftBuilder
of
(MyOrderFromQuoteDraft template) create builder for MyOrderFromQuoteDraft instancequoteStateToAccepted
(Boolean quoteStateToAccepted) Set totrue
, if thequoteState
of the referenced Quote should be set toAccepted
.Currentversion
of the Quote from which the Order is created.
-
Constructor Details
-
MyOrderFromQuoteDraftBuilder
public MyOrderFromQuoteDraftBuilder()
-
-
Method Details
-
id
id
of the Quote from which the Order is created.- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current
version
of the Quote from which the Order is created.- Parameters:
version
- value to be set- Returns:
- Builder
-
quoteStateToAccepted
Set to
true
, if thequoteState
of the referenced Quote should be set toAccepted
.- Parameters:
quoteStateToAccepted
- value to be set- Returns:
- Builder
-
getId
id
of the Quote from which the Order is created.- Returns:
- id
-
getVersion
Current
version
of the Quote from which the Order is created.- Returns:
- version
-
getQuoteStateToAccepted
Set to
true
, if thequoteState
of the referenced Quote should be set toAccepted
.- Returns:
- quoteStateToAccepted
-
build
builds MyOrderFromQuoteDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyOrderFromQuoteDraft>
- Returns:
- MyOrderFromQuoteDraft
-
buildUnchecked
builds MyOrderFromQuoteDraft without checking for non-null required values- Returns:
- MyOrderFromQuoteDraft
-
of
factory method for an instance of MyOrderFromQuoteDraftBuilder- Returns:
- builder
-
of
create builder for MyOrderFromQuoteDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-