Interface MyCustomerAddAddressAction

All Superinterfaces:
MyCustomerUpdateAction, ResourceUpdateAction<MyCustomerUpdateAction>

public interface MyCustomerAddAddressAction extends MyCustomerUpdateAction

Adding an address to the Customer produces the CustomerAddressAdded Message.


Example to create an instance using the builder pattern

     MyCustomerAddAddressAction myCustomerAddAddressAction = MyCustomerAddAddressAction.builder()
             .address(addressBuilder -> addressBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getAddress

      @NotNull @Valid @NotNull @Valid BaseAddress getAddress()

      Value to append to the addresses array.

      Returns:
      address
    • setAddress

      void setAddress(BaseAddress address)

      Value to append to the addresses array.

      Parameters:
      address - value to be set
    • of

      factory method
      Returns:
      instance of MyCustomerAddAddressAction
    • of

      factory method to create a shallow copy MyCustomerAddAddressAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of MyCustomerAddAddressAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for MyCustomerAddAddressAction
      Returns:
      builder
    • builder

      create builder for MyCustomerAddAddressAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyCustomerAddAddressAction

      default <T> T withMyCustomerAddAddressAction(Function<MyCustomerAddAddressAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<MyCustomerAddAddressAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference