Class QuoteRequestUpdateBuilder

java.lang.Object
com.commercetools.api.models.quote_request.QuoteRequestUpdateBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<QuoteRequestUpdate>

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

     QuoteRequestUpdate quoteRequestUpdate = QuoteRequestUpdate.builder()
             .version(0.3)
             .plusActions(actionsBuilder -> actionsBuilder)
             .build()
 
  • Constructor Details

    • QuoteRequestUpdateBuilder

      public QuoteRequestUpdateBuilder()
  • Method Details

    • version

      public QuoteRequestUpdateBuilder version(Long version)

      Expected version of the QuoteRequest to 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

      Update actions to be performed on the QuoteRequest.

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

      Update actions to be performed on the QuoteRequest.

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

      public QuoteRequestUpdateBuilder plusActions(QuoteRequestUpdateAction... actions)

      Update actions to be performed on the QuoteRequest.

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

      public QuoteRequestUpdateBuilder plusActions(Function<QuoteRequestUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends QuoteRequestUpdateAction>> builder)

      Update actions to be performed on the QuoteRequest.

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

      public QuoteRequestUpdateBuilder withActions(Function<QuoteRequestUpdateActionBuilder,io.vrap.rmf.base.client.Builder<? extends QuoteRequestUpdateAction>> builder)

      Update actions to be performed on the QuoteRequest.

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

      public Long getVersion()

      Expected version of the QuoteRequest to 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<QuoteRequestUpdateAction> getActions()

      Update actions to be performed on the QuoteRequest.

      Returns:
      actions
    • build

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

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

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

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