Package com.commercetools.api.models.me
Class MyOrderFromCartDraftBuilder
java.lang.Object
com.commercetools.api.models.me.MyOrderFromCartDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>
public class MyOrderFromCartDraftBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>
MyOrderFromCartDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyOrderFromCartDraft myOrderFromCartDraft = MyOrderFromCartDraft.builder()
.id("{id}")
.version(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyOrderFromCartDraft with checking for non-null required valuesbuilds MyOrderFromCartDraft without checking for non-null required valuesgetId()
id
of the Cart from which the Order is created.Currentversion
of the Cart from which the Order is created.id
of the Cart from which the Order is created.static MyOrderFromCartDraftBuilder
of()
factory method for an instance of MyOrderFromCartDraftBuilderstatic MyOrderFromCartDraftBuilder
of
(MyOrderFromCartDraft template) create builder for MyOrderFromCartDraft instanceCurrentversion
of the Cart from which the Order is created.
-
Constructor Details
-
MyOrderFromCartDraftBuilder
public MyOrderFromCartDraftBuilder()
-
-
Method Details
-
id
id
of the Cart from which the Order is created.- Parameters:
id
- value to be set- Returns:
- Builder
-
version
Current
version
of the Cart from which the Order is created.- Parameters:
version
- value to be set- Returns:
- Builder
-
getId
id
of the Cart from which the Order is created.- Returns:
- id
-
getVersion
Current
version
of the Cart from which the Order is created.- Returns:
- version
-
build
builds MyOrderFromCartDraft with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>
- Returns:
- MyOrderFromCartDraft
-
buildUnchecked
builds MyOrderFromCartDraft without checking for non-null required values- Returns:
- MyOrderFromCartDraft
-
of
factory method for an instance of MyOrderFromCartDraftBuilder- Returns:
- builder
-
of
create builder for MyOrderFromCartDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-