Class UpdateActionBuilder

java.lang.Object
com.commercetools.api.models.common.UpdateActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<UpdateAction>

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

     UpdateAction updateAction = UpdateAction.builder()
             .action("{action}")
             .build()
 
  • Constructor Details

    • UpdateActionBuilder

      public UpdateActionBuilder()
  • Method Details

    • action

      public UpdateActionBuilder action(String action)
      set the value to the action
      Parameters:
      action - value to be set
      Returns:
      Builder
    • getAction

      public String getAction()
      value of action}
      Returns:
      action
    • build

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

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

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

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