Class GraphQLOverlappingPriceValidityErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLOverlappingPriceValidityError>
Example to create an instance using the builder pattern
GraphQLOverlappingPriceValidityError graphQLOverlappingPriceValidityError = GraphQLOverlappingPriceValidityError.builder()
.conflictingPrice("{conflictingPrice}")
.currency("{currency}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds GraphQLOverlappingPriceValidityError with checking for non-null required valuesbuilds GraphQLOverlappingPriceValidityError without checking for non-null required valueschannel(ChannelResourceIdentifier channel) Channel for which the Price is valid.Channel for which the Price is valid.conflictingPrice(String conflictingPrice) Unique identifier of the conflicting Embedded Price.conflictingValidFrom(ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Embedded Price is valid.conflictingValidUntil(ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Embedded Price is valid.Country code of the Price.Currency code of the Price.customerGroup(CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Price is valid.customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Price is valid.Channel for which the Price is valid.Unique identifier of the conflicting Embedded Price.Date and time (UTC) from which the conflicting Embedded Price is valid.Date and time (UTC) until which the conflicting Embedded Price is valid.Country code of the Price.Currency code of the Price.CustomerGroup for which the Price is valid.Date and time (UTC) from which the Embedded Price is valid.Date and time (UTC) until which the Embedded Price is valid.Error-specific additional fields.of()factory method for an instance of GraphQLOverlappingPriceValidityErrorBuilderof(GraphQLOverlappingPriceValidityError template) create builder for GraphQLOverlappingPriceValidityError instancevalidFrom(ZonedDateTime validFrom) Date and time (UTC) from which the Embedded Price is valid.validUntil(ZonedDateTime validUntil) Date and time (UTC) until which the Embedded Price is valid.Error-specific additional fields.Channel for which the Price is valid.withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Price is valid.
-
Constructor Details
-
GraphQLOverlappingPriceValidityErrorBuilder
public GraphQLOverlappingPriceValidityErrorBuilder()
-
-
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
-
conflictingPrice
Unique identifier of the conflicting Embedded Price.
- Parameters:
conflictingPrice- value to be set- Returns:
- Builder
-
currency
Currency code of the Price.
- Parameters:
currency- value to be set- Returns:
- Builder
-
country
Country code of the Price.
- Parameters:
country- value to be set- Returns:
- Builder
-
customerGroup
public GraphQLOverlappingPriceValidityErrorBuilder customerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifierBuilder> builder) CustomerGroup for which the Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
withCustomerGroup
public GraphQLOverlappingPriceValidityErrorBuilder withCustomerGroup(Function<CustomerGroupResourceIdentifierBuilder, CustomerGroupResourceIdentifier> builder) CustomerGroup for which the Price is valid.
- Parameters:
builder- function to build the customerGroup value- Returns:
- Builder
-
customerGroup
public GraphQLOverlappingPriceValidityErrorBuilder customerGroup(@Nullable CustomerGroupResourceIdentifier customerGroup) CustomerGroup for which the Price is valid.
- Parameters:
customerGroup- value to be set- Returns:
- Builder
-
channel
public GraphQLOverlappingPriceValidityErrorBuilder channel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Channel for which the Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
withChannel
public GraphQLOverlappingPriceValidityErrorBuilder withChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Channel for which the Price is valid.
- Parameters:
builder- function to build the channel value- Returns:
- Builder
-
channel
public GraphQLOverlappingPriceValidityErrorBuilder channel(@Nullable ChannelResourceIdentifier channel) Channel for which the Price is valid.
- Parameters:
channel- value to be set- Returns:
- Builder
-
validFrom
Date and time (UTC) from which the Embedded Price is valid.
- Parameters:
validFrom- value to be set- Returns:
- Builder
-
validUntil
Date and time (UTC) until which the Embedded Price is valid.
- Parameters:
validUntil- value to be set- Returns:
- Builder
-
conflictingValidFrom
public GraphQLOverlappingPriceValidityErrorBuilder conflictingValidFrom(@Nullable ZonedDateTime conflictingValidFrom) Date and time (UTC) from which the conflicting Embedded Price is valid.
- Parameters:
conflictingValidFrom- value to be set- Returns:
- Builder
-
conflictingValidUntil
public GraphQLOverlappingPriceValidityErrorBuilder conflictingValidUntil(@Nullable ZonedDateTime conflictingValidUntil) Date and time (UTC) until which the conflicting Embedded Price is valid.
- Parameters:
conflictingValidUntil- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingPrice
Unique identifier of the conflicting Embedded Price.
- Returns:
- conflictingPrice
-
getCurrency
Currency code of the Price.
- Returns:
- currency
-
getCountry
Country code of the Price.
- Returns:
- country
-
getCustomerGroup
CustomerGroup for which the Price is valid.
- Returns:
- customerGroup
-
getChannel
Channel for which the Price is valid.
- Returns:
- channel
-
getValidFrom
Date and time (UTC) from which the Embedded Price is valid.
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until which the Embedded Price is valid.
- Returns:
- validUntil
-
getConflictingValidFrom
Date and time (UTC) from which the conflicting Embedded Price is valid.
- Returns:
- conflictingValidFrom
-
getConflictingValidUntil
Date and time (UTC) until which the conflicting Embedded Price is valid.
- Returns:
- conflictingValidUntil
-
build
builds GraphQLOverlappingPriceValidityError with checking for non-null required values- Specified by:
buildin interfaceBuilder<GraphQLOverlappingPriceValidityError>- Returns:
- GraphQLOverlappingPriceValidityError
-
buildUnchecked
builds GraphQLOverlappingPriceValidityError without checking for non-null required values- Returns:
- GraphQLOverlappingPriceValidityError
-
of
factory method for an instance of GraphQLOverlappingPriceValidityErrorBuilder- Returns:
- builder
-
of
public static GraphQLOverlappingPriceValidityErrorBuilder of(GraphQLOverlappingPriceValidityError template) create builder for GraphQLOverlappingPriceValidityError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-