Class CartValueTypeBuilder
java.lang.Object
com.commercetools.api.models.project.CartValueTypeBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartValueType>
public class CartValueTypeBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<CartValueType>
CartValueTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartValueType cartValueType = CartValueType.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartValueType with checking for non-null required valuesbuilds CartValueType without checking for non-null required valuesstatic CartValueTypeBuilder
of()
factory method for an instance of CartValueTypeBuilderstatic CartValueTypeBuilder
of
(CartValueType template) create builder for CartValueType instance
-
Constructor Details
-
CartValueTypeBuilder
public CartValueTypeBuilder()
-
-
Method Details
-
build
builds CartValueType with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CartValueType>
- Returns:
- CartValueType
-
buildUnchecked
builds CartValueType without checking for non-null required values- Returns:
- CartValueType
-
of
factory method for an instance of CartValueTypeBuilder- Returns:
- builder
-
of
create builder for CartValueType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-