Class ShippingMethodChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ShippingMethodChangeValueBuilder
- All Implemented Interfaces:
Builder<ShippingMethodChangeValue>
public class ShippingMethodChangeValueBuilder
extends Object
implements Builder<ShippingMethodChangeValue>
ShippingMethodChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeValue shippingMethodChangeValue = ShippingMethodChangeValue.builder()
.id("{id}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodChangeValue with checking for non-null required valuesbuilds ShippingMethodChangeValue without checking for non-null required valuesgetId()
id
of the ShippingMethod.getName()
Name of the ShippingMethod.id
of the ShippingMethod.Name of the ShippingMethod.of()
factory method for an instance of ShippingMethodChangeValueBuilderof
(ShippingMethodChangeValue template) create builder for ShippingMethodChangeValue instance
-
Constructor Details
-
ShippingMethodChangeValueBuilder
public ShippingMethodChangeValueBuilder()
-
-
Method Details
-
id
id
of the ShippingMethod.- Parameters:
id
- value to be set- Returns:
- Builder
-
name
Name of the ShippingMethod.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getId
id
of the ShippingMethod.- Returns:
- id
-
getName
Name of the ShippingMethod.
- Returns:
- name
-
build
builds ShippingMethodChangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodChangeValue>
- Returns:
- ShippingMethodChangeValue
-
buildUnchecked
builds ShippingMethodChangeValue without checking for non-null required values- Returns:
- ShippingMethodChangeValue
-
of
factory method for an instance of ShippingMethodChangeValueBuilder- Returns:
- builder
-
of
create builder for ShippingMethodChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-