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
Example to create an instance using the builder pattern
GraphQLPriceChangedError graphQLPriceChangedError = GraphQLPriceChangedError.builder()
.plusLineItems(lineItemsBuilder -> lineItemsBuilder)
.shipping(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLPriceChangedError with checking for non-null required valuesbuilds GraphQLPriceChangedError without checking for non-null required valuesUnique identifiers of the Line Items for which the Price or TaxRate has changed.true
if the ShippingRate has changed.Error-specific additional fields.Unique identifiers of the Line Items for which the Price or TaxRate has changed.Unique identifiers of the Line Items for which the Price or TaxRate has changed.of()
factory method for an instance of GraphQLPriceChangedErrorBuilderof
(GraphQLPriceChangedError template) create builder for GraphQLPriceChangedError instanceplusLineItems
(String... lineItems) Unique identifiers of the Line Items for which the Price or TaxRate has changed.true
if the ShippingRate has changed.Error-specific additional fields.
-
Constructor Details
-
GraphQLPriceChangedErrorBuilder
public GraphQLPriceChangedErrorBuilder()
-
-
Method Details
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
lineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
lineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
plusLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
shipping
true
if the ShippingRate has changed.- Parameters:
shipping
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Returns:
- lineItems
-
getShipping
true
if the ShippingRate has changed.- Returns:
- shipping
-
build
builds GraphQLPriceChangedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLPriceChangedError>
- Returns:
- GraphQLPriceChangedError
-
buildUnchecked
builds GraphQLPriceChangedError without checking for non-null required values- Returns:
- GraphQLPriceChangedError
-
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
-