Class GraphQLOutOfStockErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLOutOfStockErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLOutOfStockError>
public class GraphQLOutOfStockErrorBuilder
extends Object
implements Builder<GraphQLOutOfStockError>
GraphQLOutOfStockErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLOutOfStockError graphQLOutOfStockError = GraphQLOutOfStockError.builder()
.plusLineItems(lineItemsBuilder -> lineItemsBuilder)
.plusSkus(skusBuilder -> skusBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLOutOfStockError with checking for non-null required valuesbuilds GraphQLOutOfStockError without checking for non-null required valuesUnique identifiers of the Line Items that are out of stock.getSkus()
SKUs of the Line Items that are out of stock.Error-specific additional fields.Unique identifiers of the Line Items that are out of stock.Unique identifiers of the Line Items that are out of stock.of()
factory method for an instance of GraphQLOutOfStockErrorBuilderof
(GraphQLOutOfStockError template) create builder for GraphQLOutOfStockError instanceplusLineItems
(String... lineItems) Unique identifiers of the Line Items that are out of stock.SKUs of the Line Items that are out of stock.SKUs of the Line Items that are out of stock.SKUs of the Line Items that are out of stock.Error-specific additional fields.
-
Constructor Details
-
GraphQLOutOfStockErrorBuilder
public GraphQLOutOfStockErrorBuilder()
-
-
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 that are out of stock.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
lineItems
Unique identifiers of the Line Items that are out of stock.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
plusLineItems
Unique identifiers of the Line Items that are out of stock.
- Parameters:
lineItems
- value to be set- Returns:
- Builder
-
skus
SKUs of the Line Items that are out of stock.
- Parameters:
skus
- value to be set- Returns:
- Builder
-
skus
SKUs of the Line Items that are out of stock.
- Parameters:
skus
- value to be set- Returns:
- Builder
-
plusSkus
SKUs of the Line Items that are out of stock.
- Parameters:
skus
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getLineItems
Unique identifiers of the Line Items that are out of stock.
- Returns:
- lineItems
-
getSkus
SKUs of the Line Items that are out of stock.
- Returns:
- skus
-
build
builds GraphQLOutOfStockError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLOutOfStockError>
- Returns:
- GraphQLOutOfStockError
-
buildUnchecked
builds GraphQLOutOfStockError without checking for non-null required values- Returns:
- GraphQLOutOfStockError
-
of
factory method for an instance of GraphQLOutOfStockErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLOutOfStockError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-