Class GraphQLPriceChangedErrorBuilder

java.lang.Object
com.commercetools.api.models.error.GraphQLPriceChangedErrorBuilder
All Implemented Interfaces:
Builder<GraphQLPriceChangedError>

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

     GraphQLPriceChangedError graphQLPriceChangedError = GraphQLPriceChangedError.builder()
             .plusLineItems(lineItemsBuilder -> lineItemsBuilder)
             .shipping(true)
             .build()
 
  • Constructor Details

    • GraphQLPriceChangedErrorBuilder

      public GraphQLPriceChangedErrorBuilder()
  • Method Details

    • values

      Error-specific additional fields.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public GraphQLPriceChangedErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • lineItems

      public GraphQLPriceChangedErrorBuilder lineItems(String... lineItems)

      Unique identifiers of the Line Items for which the Price or TaxRate has changed.

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

      public GraphQLPriceChangedErrorBuilder lineItems(List<String> lineItems)

      Unique identifiers of the Line Items for which the Price or TaxRate has changed.

      Parameters:
      lineItems - value to be set
      Returns:
      Builder
    • plusLineItems

      public GraphQLPriceChangedErrorBuilder plusLineItems(String... lineItems)

      Unique identifiers of the Line Items for which the Price or TaxRate has changed.

      Parameters:
      lineItems - value to be set
      Returns:
      Builder
    • shipping

      public GraphQLPriceChangedErrorBuilder shipping(Boolean shipping)

      true if the ShippingRate has changed.

      Parameters:
      shipping - value to be set
      Returns:
      Builder
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • getLineItems

      public List<String> getLineItems()

      Unique identifiers of the Line Items for which the Price or TaxRate has changed.

      Returns:
      lineItems
    • getShipping

      public Boolean getShipping()

      true if the ShippingRate has changed.

      Returns:
      shipping
    • build

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

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

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

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