Class ExactLockConflictErrorBuilder
- All Implemented Interfaces:
Builder<ExactLockConflictError>
Example to create an instance using the builder pattern
ExactLockConflictError exactLockConflictError = ExactLockConflictError.builder()
.message("{message}")
.sku("{sku}")
.currency("{currency}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds ExactLockConflictError with checking for non-null required valuesbuilds ExactLockConflictError without checking for non-null required valueschannel(ChannelResourceIdentifier channel) Channel for which the Standalone Price is valid.Channel for which the Standalone Price is valid.Country code of the geographic location.Currency code of the Standalone Price.customerGroup(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Standalone Price is valid.Channel for which the Standalone Price is valid.Country code of the geographic location.Currency code of the Standalone Price.CustomerGroup for which the Standalone Price is valid."Modification already in progress for the combination of SKU and price scope fields."RecurrencePolicy that applies to the Standalone Price.getSku()SKU for which the modification conflict occurred.Date and time (UTC) from which the Standalone Price is valid.Date and time (UTC) until which the Standalone Price is valid.Error-specific additional fields."Modification already in progress for the combination of SKU and price scope fields."of()factory method for an instance of ExactLockConflictErrorBuilderof(ExactLockConflictError template) create builder for ExactLockConflictError instancerecurrencePolicy(RecurrencePolicyReference recurrencePolicy) RecurrencePolicy that applies to the Standalone Price.recurrencePolicy(Function<RecurrencePolicyReferenceBuilder, RecurrencePolicyReferenceBuilder> builder) RecurrencePolicy that applies to the Standalone Price.SKU for which the modification conflict occurred.validFrom(ZonedDateTime validFrom) Date and time (UTC) from which the Standalone Price is valid.validUntil(ZonedDateTime validUntil) Date and time (UTC) until which the Standalone Price is valid.Error-specific additional fields.Channel for which the Standalone Price is valid.withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Standalone Price is valid.RecurrencePolicy that applies to the Standalone Price.
-
Constructor Details
-
ExactLockConflictErrorBuilder
public ExactLockConflictErrorBuilder()
-
-
Method Details
-
message
"Modification already in progress for the combination of SKU and price scope fields."- Parameters:
message- value to be set- Returns:
- Builder
-
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
-
sku
SKU for which the modification conflict occurred.
- Parameters:
sku- value to be set- Returns:
- Builder
-
currency
Currency code of the Standalone Price.
- 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 ExactLockConflictErrorBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Standalone Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public ExactLockConflictErrorBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Standalone Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public ExactLockConflictErrorBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
channel
public ExactLockConflictErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Channel for which the Standalone Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
withChannel
public ExactLockConflictErrorBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Channel for which the Standalone Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
channel
Channel for which the Standalone Price is valid.
- Parameters:
channel- value to be set- Returns:
- Builder
-
validFrom
Date and time (UTC) from which the Standalone Price is valid.
- Parameters:
validFrom- value to be set- Returns:
- Builder
-
validUntil
Date and time (UTC) until which the Standalone Price is valid.
- Parameters:
validUntil- value to be set- Returns:
- Builder
-
recurrencePolicy
public ExactLockConflictErrorBuilder recurrencePolicy(Function<RecurrencePolicyReferenceBuilder, RecurrencePolicyReferenceBuilder> builder) RecurrencePolicy that applies to the Standalone Price.
- Parameters:
builder- function to build the recurrencePolicy value- Returns:
- Builder
-
withRecurrencePolicy
public ExactLockConflictErrorBuilder withRecurrencePolicy(Function<RecurrencePolicyReferenceBuilder, RecurrencePolicyReference> builder) RecurrencePolicy that applies to the Standalone Price.
- Parameters:
builder- function to build the recurrencePolicy value- Returns:
- Builder
-
recurrencePolicy
public ExactLockConflictErrorBuilder recurrencePolicy(@Nullable RecurrencePolicyReference recurrencePolicy) RecurrencePolicy that applies to the Standalone Price.
- Parameters:
recurrencePolicy- value to be set- Returns:
- Builder
-
getMessage
"Modification already in progress for the combination of SKU and price scope fields."- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getSku
SKU for which the modification conflict occurred.
- Returns:
- sku
-
getCurrency
Currency code of the Standalone Price.
- Returns:
- currency
-
getCountry
Country code of the geographic location.
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Standalone Price is valid.
- Returns:
- customerGroup
-
getChannel
Channel for which the Standalone Price is valid.
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Standalone Price is valid.
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Standalone Price is valid.
- Returns:
- validUntil
-
getRecurrencePolicy
RecurrencePolicy that applies to the Standalone Price.
- Returns:
- recurrencePolicy
-
build
builds ExactLockConflictError with checking for non-null required values- Specified by:
buildin interfaceBuilder<ExactLockConflictError>- Returns:
- ExactLockConflictError
-
buildUnchecked
builds ExactLockConflictError without checking for non-null required values- Returns:
- ExactLockConflictError
-
of
factory method for an instance of ExactLockConflictErrorBuilder- Returns:
- builder
-
of
create builder for ExactLockConflictError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-