Class OrderKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.OrderKeyReferenceBuilder
- All Implemented Interfaces:
Builder<OrderKeyReference>
OrderKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderKeyReference orderKeyReference = OrderKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderKeyReference with checking for non-null required valuesbuilds OrderKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keystatic OrderKeyReferenceBuilder
of()
factory method for an instance of OrderKeyReferenceBuilderstatic OrderKeyReferenceBuilder
of
(OrderKeyReference template) create builder for OrderKeyReference instance
-
Constructor Details
-
OrderKeyReferenceBuilder
public OrderKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds OrderKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderKeyReference>
- Returns:
- OrderKeyReference
-
buildUnchecked
builds OrderKeyReference without checking for non-null required values- Returns:
- OrderKeyReference
-
of
factory method for an instance of OrderKeyReferenceBuilder- Returns:
- builder
-
of
create builder for OrderKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-