Class OrderEditReferenceBuilder
java.lang.Object
com.commercetools.api.models.order_edit.OrderEditReferenceBuilder
- All Implemented Interfaces:
Builder<OrderEditReference>
OrderEditReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderEditReference orderEditReference = OrderEditReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditReference with checking for non-null required valuesbuilds OrderEditReference without checking for non-null required valuesgetId()
Unique identifier of the referenced OrderEdit.getObj()
Contains the representation of the expanded Order Edit.Unique identifier of the referenced OrderEdit.Contains the representation of the expanded Order Edit.obj
(Function<OrderEditBuilder, OrderEditBuilder> builder) Contains the representation of the expanded Order Edit.static OrderEditReferenceBuilder
of()
factory method for an instance of OrderEditReferenceBuilderstatic OrderEditReferenceBuilder
of
(OrderEditReference template) create builder for OrderEditReference instancewithObj
(Function<OrderEditBuilder, OrderEdit> builder) Contains the representation of the expanded Order Edit.
-
Constructor Details
-
OrderEditReferenceBuilder
public OrderEditReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced OrderEdit.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced OrderEdit.
- Returns:
- id
-
getObj
Contains the representation of the expanded Order Edit. Only present in responses to requests with Reference Expansion for Order Edits.
- Returns:
- obj
-
build
builds OrderEditReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditReference>
- Returns:
- OrderEditReference
-
buildUnchecked
builds OrderEditReference without checking for non-null required values- Returns:
- OrderEditReference
-
of
factory method for an instance of OrderEditReferenceBuilder- Returns:
- builder
-
of
create builder for OrderEditReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-