Interface NewMasterVariantAdditionNotAllowedError
- All Superinterfaces:
ErrorObject
Returned when attempting to create a ProductVariant and set it as the Master Variant in the same ProductVariantImport.
Example to create an instance using the builder pattern
NewMasterVariantAdditionNotAllowedError newMasterVariantAdditionNotAllowedError = NewMasterVariantAdditionNotAllowedError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for NewMasterVariantAdditionNotAllowedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for NewMasterVariantAdditionNotAllowedErrorcreate builder for NewMasterVariantAdditionNotAllowedError instancecopyDeep()factory method to create a deep copy of NewMasterVariantAdditionNotAllowedError@NotNull String"Adding a new variant as master variant is not allowed."of()factory methodof(NewMasterVariantAdditionNotAllowedError template) factory method to create a shallow copy NewMasterVariantAdditionNotAllowedErrorvoidsetMessage(String message) "Adding a new variant as master variant is not allowed."static com.fasterxml.jackson.core.type.TypeReference<NewMasterVariantAdditionNotAllowedError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithNewMasterVariantAdditionNotAllowedError(Function<NewMasterVariantAdditionNotAllowedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, withErrorObject
-
Field Details
-
NEW_MASTER_VARIANT_ADDITION_NOT_ALLOWED
discriminator value for NewMasterVariantAdditionNotAllowedError- See Also:
-
-
Method Details
-
getMessage
"Adding a new variant as master variant is not allowed."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"Adding a new variant as master variant is not allowed."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of NewMasterVariantAdditionNotAllowedError
-
of
factory method to create a shallow copy NewMasterVariantAdditionNotAllowedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
NewMasterVariantAdditionNotAllowedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static NewMasterVariantAdditionNotAllowedError deepCopy(@Nullable NewMasterVariantAdditionNotAllowedError template) factory method to create a deep copy of NewMasterVariantAdditionNotAllowedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for NewMasterVariantAdditionNotAllowedError- Returns:
- builder
-
builder
static NewMasterVariantAdditionNotAllowedErrorBuilder builder(NewMasterVariantAdditionNotAllowedError template) create builder for NewMasterVariantAdditionNotAllowedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withNewMasterVariantAdditionNotAllowedError
default <T> T withNewMasterVariantAdditionNotAllowedError(Function<NewMasterVariantAdditionNotAllowedError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<NewMasterVariantAdditionNotAllowedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-