Class ShippingMethodLabelBuilder
java.lang.Object
com.commercetools.history.models.label.ShippingMethodLabelBuilder
- All Implemented Interfaces:
Builder<ShippingMethodLabel>
ShippingMethodLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodLabel shippingMethodLabel = ShippingMethodLabel.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodLabel with checking for non-null required valuesbuilds ShippingMethodLabel without checking for non-null required valuesgetKey()User-defined unique identifier of the Shipping Method.getName()Unique name identifier of the Shipping Method.User-defined unique identifier of the Shipping Method.Unique name identifier of the Shipping Method.static ShippingMethodLabelBuilderof()factory method for an instance of ShippingMethodLabelBuilderstatic ShippingMethodLabelBuilderof(ShippingMethodLabel template) create builder for ShippingMethodLabel instance
-
Constructor Details
-
ShippingMethodLabelBuilder
public ShippingMethodLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Shipping Method.
- Parameters:
key- value to be set- Returns:
- Builder
-
name
Unique name identifier of the Shipping Method.
- Parameters:
name- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Shipping Method.
- Returns:
- key
-
getName
Unique name identifier of the Shipping Method.
- Returns:
- name
-
build
builds ShippingMethodLabel with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodLabel>- Returns:
- ShippingMethodLabel
-
buildUnchecked
builds ShippingMethodLabel without checking for non-null required values- Returns:
- ShippingMethodLabel
-
of
factory method for an instance of ShippingMethodLabelBuilder- Returns:
- builder
-
of
create builder for ShippingMethodLabel instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-