Class EnumValueIsUsedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.EnumValueIsUsedErrorBuilder
- All Implemented Interfaces:
Builder<EnumValueIsUsedError>
EnumValueIsUsedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EnumValueIsUsedError enumValueIsUsedError = EnumValueIsUsedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds EnumValueIsUsedError with checking for non-null required valuesbuilds EnumValueIsUsedError without checking for non-null required values"$enumKeysTranscript is used by some products and cannot be deleted because the $attributeName attribute is required."
Error-specific additional fields."$enumKeysTranscript is used by some products and cannot be deleted because the $attributeName attribute is required."
static EnumValueIsUsedErrorBuilder
of()
factory method for an instance of EnumValueIsUsedErrorBuilderstatic EnumValueIsUsedErrorBuilder
of
(EnumValueIsUsedError template) create builder for EnumValueIsUsedError instanceError-specific additional fields.
-
Constructor Details
-
EnumValueIsUsedErrorBuilder
public EnumValueIsUsedErrorBuilder()
-
-
Method Details
-
message
"$enumKeysTranscript is used by some products and cannot be deleted because the $attributeName attribute is required."
- 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
"$enumKeysTranscript is used by some products and cannot be deleted because the $attributeName attribute is required."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds EnumValueIsUsedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<EnumValueIsUsedError>
- Returns:
- EnumValueIsUsedError
-
buildUnchecked
builds EnumValueIsUsedError without checking for non-null required values- Returns:
- EnumValueIsUsedError
-
of
factory method for an instance of EnumValueIsUsedErrorBuilder- Returns:
- builder
-
of
create builder for EnumValueIsUsedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-