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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartKeyReference with checking for non-null required valuesbuilds CartKeyReference without checking for non-null required valuesgetKey()User-defined unique identifier of the referenced Cart.User-defined unique identifier of the referenced Cart.static CartKeyReferenceBuilderof()factory method for an instance of CartKeyReferenceBuilderstatic CartKeyReferenceBuilderof(CartKeyReference template) create builder for CartKeyReference instance
-
Constructor Details
-
CartKeyReferenceBuilder
public CartKeyReferenceBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the referenced Cart.
- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the referenced Cart.
- Returns:
- key
-
build
builds CartKeyReference with checking for non-null required values- Specified by:
buildin 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
-