Class GraphQLMatchingPriceNotFoundErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLMatchingPriceNotFoundErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLMatchingPriceNotFoundError>
public class GraphQLMatchingPriceNotFoundErrorBuilder
extends Object
implements Builder<GraphQLMatchingPriceNotFoundError>
GraphQLMatchingPriceNotFoundErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLMatchingPriceNotFoundError graphQLMatchingPriceNotFoundError = GraphQLMatchingPriceNotFoundError.builder()
.productId("{productId}")
.variantId(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLMatchingPriceNotFoundError with checking for non-null required valuesbuilds GraphQLMatchingPriceNotFoundError without checking for non-null required valueschannel
(ChannelReference channel) Channel associated with the Price.Channel associated with the Price.Country code of the geographic location.Currency code of the country.customerGroup
(CustomerGroupReference customerGroup) Customer Group associated with the Price.Customer Group associated with the Price.Channel associated with the Price.Country code of the geographic location.Currency code of the country.Customer Group associated with the Price.Unique identifier of a Product.Error-specific additional fields.Unique identifier of a ProductVariant in the Product.of()
factory method for an instance of GraphQLMatchingPriceNotFoundErrorBuilderof
(GraphQLMatchingPriceNotFoundError template) create builder for GraphQLMatchingPriceNotFoundError instanceUnique identifier of a Product.Error-specific additional fields.Unique identifier of a ProductVariant in the Product.Channel associated with the Price.Customer Group associated with the Price.
-
Constructor Details
-
GraphQLMatchingPriceNotFoundErrorBuilder
public GraphQLMatchingPriceNotFoundErrorBuilder()
-
-
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
-
productId
Unique identifier of a Product.
- Parameters:
productId
- value to be set- Returns:
- Builder
-
variantId
Unique identifier of a ProductVariant in the Product.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
currency
Currency code of the country.
- Parameters:
currency
- value to be set- Returns:
- Builder
-
country
Country code of the geographic location.
- Parameters:
country
- value to be set- Returns:
- Builder
-
customerGroup
public GraphQLMatchingPriceNotFoundErrorBuilder customerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReferenceBuilder> builder) Customer Group associated with the Price.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public GraphQLMatchingPriceNotFoundErrorBuilder withCustomerGroup(Function<CustomerGroupReferenceBuilder, CustomerGroupReference> builder) Customer Group associated with the Price.
- Parameters:
builder
- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public GraphQLMatchingPriceNotFoundErrorBuilder customerGroup(@Nullable CustomerGroupReference customerGroup) Customer Group associated with the Price.
- Parameters:
customerGroup
- value to be set- Returns:
- Builder
-
channel
public GraphQLMatchingPriceNotFoundErrorBuilder channel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Channel associated with the Price.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
withChannel
public GraphQLMatchingPriceNotFoundErrorBuilder withChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Channel associated with the Price.
- Parameters:
builder
- function to build the channel value- Returns:
- Builder
-
channel
Channel associated with the Price.
- Parameters:
channel
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getProductId
Unique identifier of a Product.
- Returns:
- productId
-
getVariantId
Unique identifier of a ProductVariant in the Product.
- Returns:
- variantId
-
getCurrency
Currency code of the country.
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
Customer Group associated with the Price.
- Returns:
- customerGroup
-
getChannel
Channel associated with the Price.
- Returns:
- channel
-
build
builds GraphQLMatchingPriceNotFoundError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLMatchingPriceNotFoundError>
- Returns:
- GraphQLMatchingPriceNotFoundError
-
buildUnchecked
builds GraphQLMatchingPriceNotFoundError without checking for non-null required values- Returns:
- GraphQLMatchingPriceNotFoundError
-
of
factory method for an instance of GraphQLMatchingPriceNotFoundErrorBuilder- Returns:
- builder
-
of
public static GraphQLMatchingPriceNotFoundErrorBuilder of(GraphQLMatchingPriceNotFoundError template) create builder for GraphQLMatchingPriceNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-