Class ValidityLockConflictErrorBuilder
- All Implemented Interfaces:
Builder<ValidityLockConflictError>
Example to create an instance using the builder pattern
ValidityLockConflictError validityLockConflictError = ValidityLockConflictError.builder()
.message("{message}")
.sku("{sku}")
.currency("{currency}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds ValidityLockConflictError with checking for non-null required valuesbuilds ValidityLockConflictError 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, price scope fields (but potentially different validity period).RecurrencePolicy for which the Standalone Price is valid.getSku()SKU for which the modification conflict occurred.Error-specific additional fields."Modification already in progress for the combination of SKU, price scope fields (but potentially different validity period).of()factory method for an instance of ValidityLockConflictErrorBuilderof(ValidityLockConflictError template) create builder for ValidityLockConflictError instancerecurrencePolicy(RecurrencePolicyResourceIdentifier recurrencePolicy) RecurrencePolicy for which the Standalone Price is valid.recurrencePolicy(Function<RecurrencePolicyResourceIdentifierBuilder, RecurrencePolicyResourceIdentifierBuilder> builder) RecurrencePolicy for which the Standalone Price is valid.SKU for which the modification conflict occurred.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.withRecurrencePolicy(Function<RecurrencePolicyResourceIdentifierBuilder, RecurrencePolicyResourceIdentifier> builder) RecurrencePolicy for which the Standalone Price is valid.
-
Constructor Details
-
ValidityLockConflictErrorBuilder
public ValidityLockConflictErrorBuilder()
-
-
Method Details
-
message
"Modification already in progress for the combination of SKU, price scope fields (but potentially different validity period). Please retry after the current operation completes."- 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 ValidityLockConflictErrorBuilder 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 ValidityLockConflictErrorBuilder 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 ValidityLockConflictErrorBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Standalone Price is valid.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
channel
public ValidityLockConflictErrorBuilder 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 ValidityLockConflictErrorBuilder 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
-
recurrencePolicy
public ValidityLockConflictErrorBuilder recurrencePolicy(Function<RecurrencePolicyResourceIdentifierBuilder, RecurrencePolicyResourceIdentifierBuilder> builder) RecurrencePolicy for which the Standalone Price is valid.
- Parameters:
builder- function to build the recurrencePolicy value- Returns:
- Builder
-
withRecurrencePolicy
public ValidityLockConflictErrorBuilder withRecurrencePolicy(Function<RecurrencePolicyResourceIdentifierBuilder, RecurrencePolicyResourceIdentifier> builder) RecurrencePolicy for which the Standalone Price is valid.
- Parameters:
builder- function to build the recurrencePolicy value- Returns:
- Builder
-
recurrencePolicy
public ValidityLockConflictErrorBuilder recurrencePolicy(@Nullable RecurrencePolicyResourceIdentifier recurrencePolicy) RecurrencePolicy for which the Standalone Price is valid.
- Parameters:
recurrencePolicy- value to be set- Returns:
- Builder
-
getMessage
"Modification already in progress for the combination of SKU, price scope fields (but potentially different validity period). Please retry after the current operation completes."- 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
-
getRecurrencePolicy
RecurrencePolicy for which the Standalone Price is valid.
- Returns:
- recurrencePolicy
-
build
builds ValidityLockConflictError with checking for non-null required values- Specified by:
buildin interfaceBuilder<ValidityLockConflictError>- Returns:
- ValidityLockConflictError
-
buildUnchecked
builds ValidityLockConflictError without checking for non-null required values- Returns:
- ValidityLockConflictError
-
of
factory method for an instance of ValidityLockConflictErrorBuilder- Returns:
- builder
-
of
create builder for ValidityLockConflictError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-