Class OrderEditResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.order_edit.OrderEditResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<OrderEditResourceIdentifier>
public class OrderEditResourceIdentifierBuilder
extends Object
implements Builder<OrderEditResourceIdentifier>
OrderEditResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderEditResourceIdentifier orderEditResourceIdentifier = OrderEditResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditResourceIdentifier with checking for non-null required valuesbuilds OrderEditResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced OrderEdit.getKey()
User-defined unique identifier of the referenced OrderEdit.Unique identifier of the referenced OrderEdit.User-defined unique identifier of the referenced OrderEdit.of()
factory method for an instance of OrderEditResourceIdentifierBuilderof
(OrderEditResourceIdentifier template) create builder for OrderEditResourceIdentifier instance
-
Constructor Details
-
OrderEditResourceIdentifierBuilder
public OrderEditResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced OrderEdit. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced OrderEdit. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced OrderEdit. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced OrderEdit. Required if
id
is absent.- Returns:
- key
-
build
builds OrderEditResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditResourceIdentifier>
- Returns:
- OrderEditResourceIdentifier
-
buildUnchecked
builds OrderEditResourceIdentifier without checking for non-null required values- Returns:
- OrderEditResourceIdentifier
-
of
factory method for an instance of OrderEditResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for OrderEditResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-