Package com.commercetools.api.models.me
Class MyOrderFromQuoteDraftBuilder
java.lang.Object
com.commercetools.api.models.me.MyOrderFromQuoteDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyOrderFromQuoteDraft>
public class MyOrderFromQuoteDraftBuilder
extends Object
implements io.vrap.rmf.base.client.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()
Unique identifier of the Quote from which the Order is created.Set totrue
, if thequoteState
of the referenced Quote should be set toAccepted
.version
of the Quote from which the Order is created.Unique identifier 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
.version
of the Quote from which the Order is created.
-
Constructor Details
-
MyOrderFromQuoteDraftBuilder
public MyOrderFromQuoteDraftBuilder()
-
-
Method Details
-
id
Unique identifier of the Quote from which the Order is created.
- Parameters:
id
- value to be set- Returns:
- Builder
-
version
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
Unique identifier of the Quote from which the Order is created.
- Returns:
- id
-
getVersion
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 interfaceio.vrap.rmf.base.client.Builder<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
-