Class ShippingMethodBuilder

java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodBuilder
All Implemented Interfaces:
Builder<ShippingMethod>

public class ShippingMethodBuilder extends Object implements Builder<ShippingMethod>
ShippingMethodBuilder
Example to create an instance using the builder pattern

     ShippingMethod shippingMethod = ShippingMethod.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .name("{name}")
             .taxCategory(taxCategoryBuilder -> taxCategoryBuilder)
             .plusZoneRates(zoneRatesBuilder -> zoneRatesBuilder)
             .isDefault(true)
             .build()