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