Class NewMasterVariantAdditionNotAllowedErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.NewMasterVariantAdditionNotAllowedErrorBuilder
- All Implemented Interfaces:
Builder<NewMasterVariantAdditionNotAllowedError>
public class NewMasterVariantAdditionNotAllowedErrorBuilder
extends Object
implements Builder<NewMasterVariantAdditionNotAllowedError>
NewMasterVariantAdditionNotAllowedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
NewMasterVariantAdditionNotAllowedError newMasterVariantAdditionNotAllowedError = NewMasterVariantAdditionNotAllowedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds NewMasterVariantAdditionNotAllowedError with checking for non-null required valuesbuilds NewMasterVariantAdditionNotAllowedError without checking for non-null required values"Adding a new variant as master variant is not allowed."
"Adding a new variant as master variant is not allowed."
of()
factory method for an instance of NewMasterVariantAdditionNotAllowedErrorBuilderof
(NewMasterVariantAdditionNotAllowedError template) create builder for NewMasterVariantAdditionNotAllowedError instance
-
Constructor Details
-
NewMasterVariantAdditionNotAllowedErrorBuilder
public NewMasterVariantAdditionNotAllowedErrorBuilder()
-
-
Method Details
-
message
"Adding a new variant as master variant is not allowed."
- Parameters:
message
- value to be set- Returns:
- Builder
-
getMessage
"Adding a new variant as master variant is not allowed."
- Returns:
- message
-
build
builds NewMasterVariantAdditionNotAllowedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<NewMasterVariantAdditionNotAllowedError>
- Returns:
- NewMasterVariantAdditionNotAllowedError
-
buildUnchecked
builds NewMasterVariantAdditionNotAllowedError without checking for non-null required values- Returns:
- NewMasterVariantAdditionNotAllowedError
-
of
factory method for an instance of NewMasterVariantAdditionNotAllowedErrorBuilder- Returns:
- builder
-
of
public static NewMasterVariantAdditionNotAllowedErrorBuilder of(NewMasterVariantAdditionNotAllowedError template) create builder for NewMasterVariantAdditionNotAllowedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-