Class CountryNotConfiguredInStoreErrorBuilder
java.lang.Object
com.commercetools.api.models.error.CountryNotConfiguredInStoreErrorBuilder
- All Implemented Interfaces:
Builder<CountryNotConfiguredInStoreError>
public class CountryNotConfiguredInStoreErrorBuilder
extends Object
implements Builder<CountryNotConfiguredInStoreError>
CountryNotConfiguredInStoreErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CountryNotConfiguredInStoreError countryNotConfiguredInStoreError = CountryNotConfiguredInStoreError.builder()
.message("{message}")
.plusStoreCountries(storeCountriesBuilder -> storeCountriesBuilder)
.country("{country}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds CountryNotConfiguredInStoreError with checking for non-null required valuesbuilds CountryNotConfiguredInStoreError without checking for non-null required valuesThe country that is not configured for the Store but referenced on the Cart or Order.The country that is not configured for the Store but referenced on the Cart or Order."The country $country is not configured for the store $store."
Countries configured for the Store.Error-specific additional fields."The country $country is not configured for the store $store."
of()
factory method for an instance of CountryNotConfiguredInStoreErrorBuilderof
(CountryNotConfiguredInStoreError template) create builder for CountryNotConfiguredInStoreError instanceplusStoreCountries
(String... storeCountries) Countries configured for the Store.storeCountries
(String... storeCountries) Countries configured for the Store.storeCountries
(List<String> storeCountries) Countries configured for the Store.Error-specific additional fields.
-
Constructor Details
-
CountryNotConfiguredInStoreErrorBuilder
public CountryNotConfiguredInStoreErrorBuilder()
-
-
Method Details
-
message
"The country $country is not configured for the store $store."
- 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
-
storeCountries
Countries configured for the Store.
- Parameters:
storeCountries
- value to be set- Returns:
- Builder
-
storeCountries
Countries configured for the Store.
- Parameters:
storeCountries
- value to be set- Returns:
- Builder
-
plusStoreCountries
Countries configured for the Store.
- Parameters:
storeCountries
- value to be set- Returns:
- Builder
-
country
The country that is not configured for the Store but referenced on the Cart or Order.
- Parameters:
country
- value to be set- Returns:
- Builder
-
getMessage
"The country $country is not configured for the store $store."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getStoreCountries
Countries configured for the Store.
- Returns:
- storeCountries
-
getCountry
The country that is not configured for the Store but referenced on the Cart or Order.
- Returns:
- country
-
build
builds CountryNotConfiguredInStoreError with checking for non-null required values- Specified by:
build
in interfaceBuilder<CountryNotConfiguredInStoreError>
- Returns:
- CountryNotConfiguredInStoreError
-
buildUnchecked
builds CountryNotConfiguredInStoreError without checking for non-null required values- Returns:
- CountryNotConfiguredInStoreError
-
of
factory method for an instance of CountryNotConfiguredInStoreErrorBuilder- Returns:
- builder
-
of
create builder for CountryNotConfiguredInStoreError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-