Class CartSetBillingAddressActionBuilder

java.lang.Object
com.commercetools.api.models.cart.CartSetBillingAddressActionBuilder
All Implemented Interfaces:
Builder<CartSetBillingAddressAction>

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

     CartSetBillingAddressAction cartSetBillingAddressAction = CartSetBillingAddressAction.builder()
             .build()
 
  • Constructor Details

    • CartSetBillingAddressActionBuilder

      public CartSetBillingAddressActionBuilder()
  • Method Details

    • address

      Value to set. It replaces the entire address, including Custom Fields if custom is not included. To preserve Custom Fields, include the custom object in the request.

      If omitted, any existing value is removed.

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

      Value to set. It replaces the entire address, including Custom Fields if custom is not included. To preserve Custom Fields, include the custom object in the request.

      If omitted, any existing value is removed.

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

      public CartSetBillingAddressActionBuilder address(@Nullable BaseAddress address)

      Value to set. It replaces the entire address, including Custom Fields if custom is not included. To preserve Custom Fields, include the custom object in the request.

      If omitted, any existing value is removed.

      Parameters:
      address - value to be set
      Returns:
      Builder
    • getAddress

      @Nullable public BaseAddress getAddress()

      Value to set. It replaces the entire address, including Custom Fields if custom is not included. To preserve Custom Fields, include the custom object in the request.

      If omitted, any existing value is removed.

      Returns:
      address
    • build

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

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

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

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