Class ShippingMethodSetCarrierActionBuilder

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

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

     ShippingMethodSetCarrierAction shippingMethodSetCarrierAction = ShippingMethodSetCarrierAction.builder()
             .build()
 
  • Constructor Details

    • ShippingMethodSetCarrierActionBuilder

      public ShippingMethodSetCarrierActionBuilder()
  • Method Details

    • carrier

      public ShippingMethodSetCarrierActionBuilder carrier(@Nullable String carrier)

      Name of the carrier that delivers the parcel, for example DHL. If carrier is absent or null, it is removed if it exists.

      Parameters:
      carrier - value to be set
      Returns:
      Builder
    • getCarrier

      @Nullable public String getCarrier()

      Name of the carrier that delivers the parcel, for example DHL. If carrier is absent or null, it is removed if it exists.

      Returns:
      carrier
    • build

      builds ShippingMethodSetCarrierAction with checking for non-null required values
      Specified by:
      build in interface Builder<ShippingMethodSetCarrierAction>
      Returns:
      ShippingMethodSetCarrierAction
    • buildUnchecked

      public ShippingMethodSetCarrierAction buildUnchecked()
      builds ShippingMethodSetCarrierAction without checking for non-null required values
      Returns:
      ShippingMethodSetCarrierAction
    • of

      factory method for an instance of ShippingMethodSetCarrierActionBuilder
      Returns:
      builder
    • of

      create builder for ShippingMethodSetCarrierAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder