Class ResourceCreationErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.ResourceCreationErrorBuilder
- All Implemented Interfaces:
Builder<ResourceCreationError>
ResourceCreationErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceCreationError resourceCreationError = ResourceCreationError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ResourceCreationError with checking for non-null required valuesbuilds ResourceCreationError without checking for non-null required valuesA plain language description of the cause of an error.value of resource}A plain language description of the cause of an error.static ResourceCreationErrorBuilder
of()
factory method for an instance of ResourceCreationErrorBuilderstatic ResourceCreationErrorBuilder
of
(ResourceCreationError template) create builder for ResourceCreationError instanceset the value to the resource
-
Constructor Details
-
ResourceCreationErrorBuilder
public ResourceCreationErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
resource
set the value to the resource- Parameters:
resource
- value to be set- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
getResource
value of resource}- Returns:
- resource
-
build
builds ResourceCreationError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceCreationError>
- Returns:
- ResourceCreationError
-
buildUnchecked
builds ResourceCreationError without checking for non-null required values- Returns:
- ResourceCreationError
-
of
factory method for an instance of ResourceCreationErrorBuilder- Returns:
- builder
-
of
create builder for ResourceCreationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-