Class MyCustomerUpdateBuilder

java.lang.Object
com.commercetools.api.models.me.MyCustomerUpdateBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyCustomerUpdate>

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

     MyCustomerUpdate myCustomerUpdate = MyCustomerUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Constructor Details

    • MyCustomerUpdateBuilder

      public MyCustomerUpdateBuilder()
  • Method Details

    • version

      public MyCustomerUpdateBuilder version(Long version)

      Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

      Parameters:
      version - value to be set
      Returns:
      Builder
    • actions

      public MyCustomerUpdateBuilder actions(MyCustomerUpdateAction... actions)

      Update actions to be performed on the Customer.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • actions

      Update actions to be performed on the Customer.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • plusActions

      public MyCustomerUpdateBuilder plusActions(MyCustomerUpdateAction... actions)

      Update actions to be performed on the Customer.

      Parameters:
      actions - value to be set
      Returns:
      Builder
    • plusActions

      public MyCustomerUpdateBuilder plusActions(Function<MyCustomerUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends MyCustomerUpdateAction>> builder)

      Update actions to be performed on the Customer.

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

      public MyCustomerUpdateBuilder withActions(Function<MyCustomerUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends MyCustomerUpdateAction>> builder)

      Update actions to be performed on the Customer.

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

      public Long getVersion()

      Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict error will be returned.

      Returns:
      version
    • getActions

      public List<MyCustomerUpdateAction> getActions()

      Update actions to be performed on the Customer.

      Returns:
      actions
    • build

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

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

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

      public static MyCustomerUpdateBuilder of(MyCustomerUpdate template)
      create builder for MyCustomerUpdate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder