Class LanguageUsedInStoresErrorBuilder
java.lang.Object
com.commercetools.api.models.error.LanguageUsedInStoresErrorBuilder
- All Implemented Interfaces:
Builder<LanguageUsedInStoresError>
public class LanguageUsedInStoresErrorBuilder
extends Object
implements Builder<LanguageUsedInStoresError>
LanguageUsedInStoresErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LanguageUsedInStoresError languageUsedInStoresError = LanguageUsedInStoresError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds LanguageUsedInStoresError with checking for non-null required valuesbuilds LanguageUsedInStoresError without checking for non-null required values"Language(s) in use by a store cannot be deleted.
Error-specific additional fields."Language(s) in use by a store cannot be deleted.
of()
factory method for an instance of LanguageUsedInStoresErrorBuilderof
(LanguageUsedInStoresError template) create builder for LanguageUsedInStoresError instanceError-specific additional fields.
-
Constructor Details
-
LanguageUsedInStoresErrorBuilder
public LanguageUsedInStoresErrorBuilder()
-
-
Method Details
-
message
"Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."
- 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
-
getMessage
"Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds LanguageUsedInStoresError with checking for non-null required values- Specified by:
build
in interfaceBuilder<LanguageUsedInStoresError>
- Returns:
- LanguageUsedInStoresError
-
buildUnchecked
builds LanguageUsedInStoresError without checking for non-null required values- Returns:
- LanguageUsedInStoresError
-
of
factory method for an instance of LanguageUsedInStoresErrorBuilder- Returns:
- builder
-
of
create builder for LanguageUsedInStoresError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-