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