Class ShippingMethodReferenceBuilder

java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodReferenceBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ShippingMethodReference>

public class ShippingMethodReferenceBuilder extends Object implements io.vrap.rmf.base.client.Builder<ShippingMethodReference>
ShippingMethodReferenceBuilder
Example to create an instance using the builder pattern

     ShippingMethodReference shippingMethodReference = ShippingMethodReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • ShippingMethodReferenceBuilder

      public ShippingMethodReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced ShippingMethod.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded ShippingMethod. Only present in responses to requests with Reference Expansion for ShippingMethods.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded ShippingMethod. Only present in responses to requests with Reference Expansion for ShippingMethods.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded ShippingMethod. Only present in responses to requests with Reference Expansion for ShippingMethods.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the referenced ShippingMethod.

      Returns:
      id
    • getObj

      @Nullable public ShippingMethod getObj()

      Contains the representation of the expanded ShippingMethod. Only present in responses to requests with Reference Expansion for ShippingMethods.

      Returns:
      obj
    • build

      public ShippingMethodReference build()
      builds ShippingMethodReference with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ShippingMethodReference>
      Returns:
      ShippingMethodReference
    • buildUnchecked

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

      public static ShippingMethodReferenceBuilder of()
      factory method for an instance of ShippingMethodReferenceBuilder
      Returns:
      builder
    • of

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