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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodChangeValue with checking for non-null required valuesbuilds ShippingMethodChangeValue without checking for non-null required valuesgetId()idof the ShippingMethod.getName()Name of the ShippingMethod.idof 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
idof the ShippingMethod.- Parameters:
id- value to be set- Returns:
- Builder
-
name
Name of the ShippingMethod.
- Parameters:
name- value to be set- Returns:
- Builder
-
getId
idof the ShippingMethod.- Returns:
- id
-
getName
Name of the ShippingMethod.
- Returns:
- name
-
build
builds ShippingMethodChangeValue with checking for non-null required values- Specified by:
buildin 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
-